History | View | Annotate | Download (14 kB)
Merge remote-tracking branch 'qemu-kvm/uq/master' into staging
Merge remote-tracking branch 'aneesh/for-upstream' into staging
./configure: add option for disabling VirtFS
Signed-off-by: Meador Inge <meadori@codesourcery.com>Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
qemu-ga: fixes for win32 build of qemu-ga
Various stubs and #ifdefs to compile for Windows using mingwcross-build. Still has 1 linker error due to a dependency on theforthcoming win32 versions of the GAChannel/transport class.
Makefile: Add dependency to fix linux-user-only build
Make qemu-bridge-helper explicitly depend on $(GENERATED_HEADERS)so that it doesn't fail to build when we configured for linux-usertargets only. (Build breakage introduced in commit 7b93fad.)
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>...
kvmvapic: Add option ROM
This imports and builds the original VAPIC option ROM of qemu-kvm.Its interaction with QEMU is described in the commit that introduces thecorresponding device model.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>Signed-off-by: Avi Kivity <avi@redhat.com>
make: Remove duplicate use of GLIB_CFLAGS
Makefile, Makefile.hw, Makefile.target and libcacard/Makefileadded GLIB_CFLAGS to QEMU_CFLAGS.
Makefile.objs does this, too, and is included by all otherMakefiles, so GLIB_CFLAGS were added twice (reported by malc)....
Add basic version of bridge helper
This patch adds a helper that can be used to create a tap device attached toa bridge device. Since this helper is minimal in what it does, it can begiven CAP_NET_ADMIN which allows qemu to avoid running as root while still...
Makefile: Remove linux-headers/asm symlink on distclean
configure creates a linux-headers/asm symlink. Remove this whendoing a distclean.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qom: add the base Object class (v2)
This class provides the main building block for QEMU Object Model and isextensively documented in the header file. It is largely inspired by GObject.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>---v1 -> v2...
Makefile: Remove generated headers on clean
Running `make distclean' followed by a new out-of-tree build would faildue to stale generated QMP headers in the tree.
Commit 611b727374ad76fb0078ea65bc1387194913980e (Makefile: remove moregenerated files on clean) made sure generated sources are removed....
Makefile: Exclude tests/Makefile in unconfigured tree
Since commit dbfe06c62ccedc5b64e1c6466445133dd50f6de1 (build:split unit test builds to a separate makefile fragment),in absence of config-host.mak an undefined $(SRC_PATH) breaks`make distclean' due to /tests/Makefile not being include'able....
test: eliminate libcheck tests and have make check use gtester
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
build: split unit test builds to a separate makefile fragment
Fix qapi code generation fix
The fixes to qapi code generation had multiple bugs:- the Null class used to drop output was missing some methods- in some scripts it was never instantiated, leading to a None return, which is missing even more methods- the --source and --header options were swapped...
tests: mv tests/* -> tests/tcg
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/9pfs: man page for proxy helper
Signed-off-by: M. Mohan Kumar <mohan@in.ibm.com>Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
hw/9pfs: File ownership and others
Add file ownership interfaces like chmod/chown, utime update, rename,remove and truncating files for proxy FS
hw/9pfs: File system helper process for qemu 9p proxy FS
Provide root privilege access to QEMU 9p proxy filesystem using socketcommunication.
Proxy helper is started by root user as:~ # virtfs-proxy-helper -f|--fd <socket descriptor> -p|--path <path-to-share>...
Fix qapi code generation wrt parallel build
Make's multiple output syntax
x.c x.h: x.template gen < x.template
actually invokes the command once for x.c and once for x.h (with differing $@in each invocation). During a parallel build, the two commands may be invoked...
link the main loop and its dependencies into the tools
Using the main loop code from QEMU enables tools to operate fullyasynchronously. Advantages include better Windows portability (for somedefinition of portability) over glib's.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Introduce test-qmp-output-visitor
Contains unit-tests for the QMP output visitor implementation.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Introduce test-qmp-input-visitor
Contains unit-tests for the QMP input visitor implementation.
Drop test-visitor
It has been superseded by the two previous commits, which introducedthe test-qmp-output-visitor and test-qmp-input-visitor tests.
Makefile: use full path for qapi-generated directory
Generally $(BUILD_DIR) == $(CURDIR), but that isn't necessarilly thecase, so use $(BUILD_DIR)/qapi-generated for generated files toavoid potentionally sticking generating files in odd places outsidethe build's include paths....
Revert "fix out of tree build"
This reverts commit be85c90b74f56dca51782fa3080fcdf88593e045.
This patch is incorrect and breaks the build with a freshly cloned git tree.
fix out of tree build
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Makefile: remove more generated files on clean
make clean missed the source qmp files generatedby python. Fix that.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Makefile: fix dependencies for generated .h, .c
We have a single rule generating .c and .h files,so .h doesn't depend on .c: both depend on thesource schema.
Fix Makefile to reflect that - without this,if .c is there and .h is missing, Makefile doesnot know how to remake .h and assumes it's...
Makefile: dependency fix
qga/guest-agent-commands.c includes qga-qmp-commands.h,but it was missing in its dependencies. Add it in QGALIB_GEN.
Makefile: fix qga dependencies
.c files include .h files, so .o depends on .h,and the linked result depends on .o.We got it wrong for qga rules, fix it up.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>...
add sgabios blob and submodule
The rom was not added together with the sgabios device and isnot installed.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
move checks to separate variable
Create a new CHECKS variable. Put the checks there insteadof adding them to the TOOLS variable.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
add "make check" target
Add some Makefile glue so we have a simple "make check" to run the unit tests.
tools: reorganize Makefile variables
- Add all dependencies of the block layer to block-obj-y, and all dependencies of QObject to qobject-obj-y
- Remove the block layer from tools-obj-y, add it to qemu-img, qemu-nbd, qemu-io
- Add qobject-obj-y and tools-obj-y wherever useful, remove duplicates...
Merge remote-tracking branch 'qmp/queue/qmp' into staging
Merge remote-tracking branch 'stefanha/trivial-patches' into staging
target-alpha: Add custom PALcode image for CLIPPER emulation.
Signed-off-by: Richard Henderson <rth@twiddle.net>
makefile: extract tools-obj-y
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
qapi: use middle mode in QMP server
Use the new middle mode within the existing QMP server.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Makefile: Remove 'tarbin' target
Remove the 'tarbin' target -- it isn't used as part of the officialQEMU release process, and it's out of date (various new bios fileswere never added to its list of files). It's better not to provideit at all than to have a broken makefile target we never use or test....
Makefile: Fix broken build
make -C mybuilddir no longer works (regression caused by commit)388d475815c23901010a25c845eb078d47ee0740.
PWD is the directory of the caller (not mybuilddir),so BUILD_DIR is set to the wrong value.
GNU make sets CURDIR to the correct value....
build: Always have 'BUILD_DIR' variable pointing to the root of the build tree
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
win32: improve version.o dependency
Actually, version.rc doesn't need config-host.mak but config-host.h, fix it.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Rename qemu -> qemu-system-i386
This has been discussed before in the past. The special casing really makes nosense anymore. This seems like a good change to make for 1.0.
trace: move backend-specific code into the trace/ directory
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
guest agent: remove uneeded dependencies
This patch tries to cull any uneeded library dependencies from the guestagent to improve portability across various distros. We do so by beingas explicit as possible about in-tree dependencies rather than relying...
Remove remenants of qemu_malloc
This covers the various check commands
Remove qemu_malloc/qemu_free
Makefile: delete config.log in distclean
Distclean should remove anything created by the configure script.
Signed-off-by: Alexandre Raymond <cerbere@gmail.com>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
coroutine: add test-coroutine automated tests
To run automated tests for coroutines:
make test-coroutine ./test-coroutine
On success the program terminates with exit status 0. On failure anerror message is written to stderr and the program exits with exit...
Makefile: add missing deps on $(GENERATED_HEADERS)
This fixes a build issue with make -j6+ due to qapi-generated filesbeing built before $(GENERATED_HEADERS) have been created.
Tested-by: Stefan Berger <stefanb@linux.vnet.ibm.com>Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>...
Makefile: Minor cscope fixups
Create cscope symbols for assembly files in addition to .c/.h files.Create cscope database with full path instead of relative path so cscopecan be used with CSCOPE_DB in any directory.
Signed-off-by: Alexandre Raymond <cerbere@gmail.com>...
Let users select their pythons
Add configure check for python, exit if not found. Add switchesfor specifying the path to python, use the path in Makefile.
guest agent: command state class
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>Signed-off-by: Luiz Capitulino <lcapitulino@gmail.com>
guest agent: qemu-ga daemon
This is the actual guest daemon, it listens for requests over avirtio-serial/isa-serial/unix socket channel and routes them throughto dispatch routines, and writes the results back to the channel ina manner similar to QMP....
guest agent: add guest agent RPCs/commands
This adds the initial set of QMP/QAPI commands provided by the guestagent:
guest-syncguest-pingguest-infoguest-shutdownguest-file-openguest-file-readguest-file-writeguest-file-seekguest-file-flushguest-file-close...
qapi: add test-visitor, tests for gen. visitor code
qapi: add test-qmp-commands, tests for gen. marshalling/dispatch code
Add hard build dependency on glib
GLib is an extremely common library that has a portable thread implementationalong with tons of other goodies.
GLib and GObject have a fantastic amount of infrastructure we can leverage inQEMU including an object oriented programming infrastructure....
libcacard: add libcacard.la target
No flag to configure is required. Instead, added a libcacard.la target thatis not built by default, only when requested explicitly via:
mkdir buildcd build../configuremake libcacard.lamake install-libcacard
Uses libtool to do actual linking of object files and shared library, and...
json-parser: propagate error from parser
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
PPC: install mpc8544ds.dtb
We don't install mpc8544ds.dtb, which means that -M mpc8544ds doesn'twork when installed. Fix it by installing the file.
Signed-off-by: Alexander Graf <agraf@suse.de>
libcacard: add correct subdirectory dependencies
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Cc: qemu-trivial@nongnu.orgSigned-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Merge remote-tracking branch 'awilliam/ipxe' into staging
PXE: Use consistent naming for PXE ROMs
And add missing ROMs to tarbin build target.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Makefile: Clean up after "make pdf"
Signed-off-by: Brad Hards <bradh@frogmouth.net>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
trace: move trace objects from Makefile to Makefile.objs
libcacard: initial commit
libcacard emulates a Common Access Card (CAC) which is a standardfor smartcards. It is used by the emulated ccid card introduced ina following patch. Docs are available in docs/libcacard.txt
Signed-off-by: Alon Levy <alevy@redhat.com>...
Add SLOF-based partition firmware for pSeries machine, allowing more boot options
Currently, the emulated pSeries machine requires the use of the-kernel parameter in order to explicitly load a guest kernel. Thismeans booting from the virtual disk, cdrom or network is not possible....
Implement hcall based RTAS for pSeries machines
On pSeries machines, operating systems can instantiate "RTAS" (Run-TimeAbstraction Services), a runtime component of the firmware which implementsa number of low-level, infrequently used operations. On logical partitions...
microblaze: Add PetaLogix ml605 MMU little-endian ref design
Add the first Microblaze little endian platform.Platform uses uart16550, axi ethernet, timer, intc.
Signed-off-by: Michal Simek <monstr@monstr.eu>Signed-off-by: Edgar E. Iglesias <edgar.iglesias@petalogix.com>
Add scripts directory
Move build and user scripts into scripts directory.
spice: add qxl vgabios binary.
Just compiled from vgabios git repo @ git.qemu.org,copyed over and committed. Also added to the listof blobs in the Makefile.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Merge remote branch 'origin/master' into pci
Conflicts: Makefile.objs hw/virtio.c
Include directives in default configs
Allow default configs to be split into several files.
Signed-off-by: Paul Brook <paul@codesourcery.com>
Add missing dependency.
Teach Makefile that cmd.o depends on a generated header (specificallyconfig-host.h).
eepro100: Use a single rom file for all i825xx devices
Patching the rom data during load (in qemu) nowalso supports i82801 (which had no rom file).
We only need a single rom file for the whole device family,so remove the second one which is no longer needed....
Makefile: Fix check dependency breakage
Commit b152aa84d52882bb1846485a89baf13aa07c86bc broke the unit-testsbuild, fix it.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Revert "Add a DTrace tracing backend targetted for SystemTAP compatability"
This reverts commit 4addb1127f6327c7ebcbd150a6b589e7677adc92.
Add a DTrace tracing backend targetted for SystemTAP compatability
This introduces a new tracing backend that targets the SystemTAPimplementation of DTrace userspace tracing. The core functionalityshould be applicable and standard across any DTrace implementation...
Add new vgabios binaries to blobs list.
aliguori: update VGA BIOS
Fix out of tree build
df2943ba3c73ca21dbda063f15fa3e80064af864 broke out of tree build.
Fix breakage by adding $(SRC_PATH).
Merge remote branch 'mst/for_anthony' into staging
Move QEMU OS dependant library functions to OS specific files
This moves library functions used by both QEMU and the QEMU tools,such as qemu-img, qemu-nbd etc. from osdep.c to oslib-{posix,win32}.c
In addition it introduces oslib-obj.y to the Makefile set to be...
qemu-options.def: add to generated header list
All files include qemu-options.h which pulls in qemu-options.def fromthe root directory. Thus generating qemu-options.def from Makefile.objsunder the target directory is not effective.
Further, people expect .def file to get cleaned with make clean:...
Merge remote branch 'qmp/for-anthony' into staging
qemu-timer: move commonly used timer code to qemu-timer-common
Move timer init functions to a new file, qemu-timer-common.c. Make othercritical timer functions inlined to preserve performance inqemu-timer.c, also move muldiv64() (used by the inline functions)...
Fix test suite build with tracing enabled
qemu_malloc instrumentations require linking against the trace objects.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>Acked-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
ppc: remove video.x
Only Mac-on-Linux stuff used video.x, OpenBIOS does not need it.
Remove video.x MoL hacks.
Signed-off-by: Alexander Graf <agraf@suse.de>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
trace: remove timestamp files when cleaning up
'make clean' did not remove trace.[ch]-timestamp files,only trace.[ch]. But 'make' did not know how to make trace.[ch]files if the timestamp files were present.
Fix by removing the timestamp files along with trace.[ch]....
trace: avoid unnecessary recompilation if nothing changed
Add logic to detect changes in generated files. If the oldand new files are identical, don't touch the generated file.This avoids a lot of churn since many files depend on trace.h.
Based on suggestion by Paolo Bonzini....
Makefile: fix config-devices.mak generation
The logic of detecting changes in default-configs/*.mak isflawed as can be demonstrated by 'touch default-configs/*.mak'followed by make. This results in a message claiming that usermade changes to the */config-devices.mak files....
Monitor: Rename the qemu-monitor.hx file
Let's be consistent and call it hmp-commands.hx, so that we haveqmp-commands.hx for QMP and hmp-commands.hx for HMP.
Please, note that this commit doesn't touch qemu-monitor.texi. Alltexi files have the qemu- prefix and I don't think it's worth...
Monitor: Introduce the qmp-commands.hx file
This file contains a copy of the following information from theqemu-monitor.hx file:
o QObject handlers entries o QMP documentation (all SQMP/EQMP sections)
Right now it's only used to generate the QMP docs in QMP/, but...
mingw: add version information to the executables
Add QEMU version information to the executables, based on earlierwork by C. W. Betts and Robert Riebisch.
trace: Fix user emulator dependency on trace objects
On a clean build, after generating trace.h, make would recurse into *-*-userwithout a clue how to build ../trace.o (added to $(obj-y) in Makefile.target)since its generation rule is in the main Makefile....