History | View | Annotate | Download (92.4 kB)
configure: Make missing pkg-config an error rather than a warning
If pkg-config doesn't exist then make configure fail immediatelywith a useful error message. Now that glib is a required dependency,proceeding despite the missing pkg-config will just cause us to...
Revert "alpha-softmmu: Disable for the 0.15 release branch."
This reverts commit 46f08792bb4a69ab8aab897c174d82b006026140.
This was not supposed to be applied to mainline.
Signed-off-by: Richard Henderson <rth@twiddle.net>Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
build: Move tracing objects into libuser on usermode emulation targets
This will apply libuser-specific compilation flags (like the ones added by--enable-user-pie), but keep softmmu emulation targets "as-is".
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>...
target-xtensa: add target to the configure script
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
configure: Avoid duplicate flags when calling compile_prog
This patch removes redundant shell code and cleans it a little bit.
Shell macro compile_prog takes two arguments:local_cflags and local ldflags.
$QEMU_CFLAGS is added automatically to the cflags, so there is no need...
configure: Remove relicts from --enable-io-thread
Commit 12d4536f7d911b6d87a766ad7300482ea663cea2 removedconfigure option --enable-io-thread.
Remove help message which is now no longer valid.
Cc: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Stefan Weil <weil@mail.berlios.de>...
configure: Copy test data to build directory
The QDict unit-tests (check-qdict) will fail when ran on a differentbuild directory. That's, it only works when ran on the source dir.
This happens because its data file (qdict-test-data.txt) is notcopied to the build dir. Fix it....
Allow overriding the location of Samba's smbd.
Pretty much every OS I look at has some means ofchanging this path (patching) so lets just makeit easier for OS developers creating packagesand/or end users to override the location....
main: force enabling of I/O thread
Enabling the I/O thread by default seems like an important part of declaring1.0. Besides allowing true SMP support with KVM, the I/O thread means that theTCG VCPU doesn't have to multiplex itself with the I/O dispatch routines which...
Fix install(1) usage to be compatible with OpenBSD's install(1).
When creating a directory via the -d flag the -p flag cannot beused at the same time. Also in the context of installing QEMU it...
trace: fix out-of-tree builds
Reported-by: Lluis Vilanova <vilanova@ac.upc.edu>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
trace: [stderr] add support for dynamically enabling/disabling events
Uses the generic interface provided in "trace/control.h" in order to providea programmatic interface as well as command line and monitor controls.
Signed-off-by: Fabien Chouteau <chouteau@adacore.com>...
trace: [configure] rename CONFIG_*_TRACE into CONFIG_TRACE_*
Provides a more hierarchical view of the variable domain.
Also adds the CONFIG_TRACE_* variables for all backends.
[Stefan added missing 'test' in stap if statement]
trace: avoid conditional code compilation during option parsing
A default implementation for backend-specific routines is provided in"trace/default.c", which backends can override by setting "trace_default=no" in"configure".
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
Improvements to libtool support.
Improvements to the libtool support in QEMU. Replace hard codedlibtool in the infrastructure with $(LIBTOOL) and allowoverriding the libtool binary used via the configurescript.
Reviewed-by: Andreas F=E4rber <andreas.faerber@web.de>...
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...
Check for presence of compiler -pthread flag.
OpenBSD / FreeBSD and some other OS's require the use ofcc -pthread to link threaded programs so have QEMU'sconfigure script check for the presence of the flagand use it if so.
Signed-off-by: Brad Smith <brad@comstyle.com>...
Make glib mandatory and fixup utils appropriately
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
configure: Disable guest_agent for mingw32
guest_agent is not supported for mingw32, so the default valueshould be 'no', not 'yes'.
This removes the dependencies to glib-2.0 and python whichmakes native and cross builds for w32 much easier (no needto get and install these extra packages)....
coroutine: add gthread dependency
Commit 1fc7bd4a86a2bfeafcec29445871eb97469a2699 removed the gthread andgio dependency since qemu-ga did not require it. Coroutines requiregthread, so add it back in.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
when overriding default tool names don't add cross-prefix
When overriding a tool name via a shell variable, don'ttack on the cross-prefix. This specifically allows thepkg-config command to be overridden and work where itdoes not exist in some cross build environments....
Merge remote-tracking branch 'stefanha/trivial-patches' into staging
Merge remote-tracking branch 'kwolf/for-anthony' into staging
configure: Fix bad shell expression for non-Linux hosts
With vhost_net="" (most non-Linux hosts), configure prints anerror message:
test: 2551: =: unexpected operator
Fix this and similar code by adding the missing "".
Cc: Wolfgang Mauerer <wolfgang.mauerer@siemens.com>...
alpha-softmmu: Disable for the 0.15 release branch.
The system emulation code was not merged before the branch.Let's leave that work for the next release.
Signed-off-by: Richard Henderson <rth@twiddle.net>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Add support for finding libpng via pkg-config.
Signed-off-by: Brad Smith <brad@comstyle.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
guest agent: add --enable-guest-agent config option
QAPI will require glib/python, but for now the guest agent is the onlyuser. For now, make these dependencies an explicit guest agent one, andgive users the option to disable it if need be.
Once QAPI is adopted in core QEMU code, we would basically revert this...
configure: display "no" for disabled kvm/vhost-net
Fix configure display for non-Linux OS's and the KVM /vhost-net features to show "no" output instead of nothingat the end of the line.
Signed-off-by: Brad Smith <brad@comstyle.com>Acked-by: Jan Kiszka <jan.kiszka@siemens.com>...
coroutine: implement coroutines using gthread
On platforms that don't support makecontext(3) use gthread basedcoroutine implementation.
Darwin has makecontext(3) but getcontext(3) is stubbed out to returnENOTSUP. Andreas Färber <andreas.faerber@web.de> debugged this and...
Merge remote-tracking branch 'alon/pull-libcacard.afe' into staging
Merge remote-tracking branch 'agraf/xen-next' into staging
configure: add --disable-zlib-test
This is required for building libcacard which doesn't itself requirezlib without bringing in this requirement to the build environment.
Signed-off-by: Alon Levy <alevy@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
move unaligned memory access functions to bswap.h
This is just code movement, and moving the fpu/ include path fromtarget-dependent to target-independent Make variables.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vhost build fix for i386
vhost.c uses __sync_fetch_and_and(), which is onlyavailable for -march=i486 and above (seehttps://bugzilla.redhat.com/show_bug.cgi?id=624279).
Signed-off-by: Wolfgang Mauerer <wolfgang.mauerer@siemens.com>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
libcacard: add pc file, install it + includes
Additionally: + add --includedir configure parameters + make install-libcacard install vscclient as well
xen: make xen_enabled even more clever
When using xen_enabled() we're currently only checking if xen is enabledat all during the build. But what if you want to build multiple targetsout of which only one can potentially run xen code?
That means that for generic code we'll still have to fall back to the...
xen: remove CONFIG_XEN_MAPCACHE
We were still exporting CONFIG_XEN_MAPCACHE, even though it's completelyunused by now. Remove it.
Signed-off-by: Alexander Graf <agraf@suse.de>
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.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
qemu-ga: remove dependency on gio and gthread
As far as I can tell, there isn't a dependency on gthread. Also, the only useof gio was to enable GSocket to accept a unix domain socket.
Since GSocket isn't available on OpenSuSE 11.1, let's just remove that...
Merge remote-tracking branch 'qmp/for-anthony' into staging
USB: add usb network redirection support
This patch adds support for a usb-redir device, which takes a chardevas a communication channel to an actual usbdevice using the usbredir protocol.
Compiling the usb-redir device requires usbredir-0.3 to be installed for...
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....
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....
qapi: add QAPI visitor core
Base definitions/includes for Visiter interface used by generatedvisiter/marshalling code.
Includes a GenericList type. Our lists require an embedded element.Since these types are generated, if you want to use them in a different...
xen: Clean up build system
Introduce CONFIG_XEN_BACKEND so that this new config solely controls thetarget-independent backend build and CONFIG_XEN can focus on per-targetbuilding.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>Signed-off-by: Alexander Graf <agraf@suse.de>
Fix fallouts from Linux header inclusion
This is an all-in-one fix for the smaller and bigger mistakes of thebuild system changes for accompanied Linux headers: - only enable KVM and vhost on Linux hosts - fix powerpc asm header symlink - do not use Linux headers on non-Linux hosts...
qemu-kvm: fix pulseaudio detection in configure
pulse/simple.h does not include stdlib.hWe cannot use NULL since it may not be definedUse 0 instead
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>Reviewed-by: Peter Maydell <peter.maydell@linaro.org>...
configure: Don't create symlinks to nonexistent targets
When we create the symlinks to source tree files, don't create themif the file is not actually present in the source tree; this willhappen if the file is in a git submodule that wasn't checked out....
Merge remote-tracking branch 'qemu-kvm/uq/master' into staging
kvm: ppc: Drop CONFIG_KVM_PPC_PVR
Required header support is now unconditionally available.
CC: Alexander Graf <agraf@suse.de>Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>Reviewed-by: Alexander Graf <agraf@suse.de>Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
kvm: Drop CONFIG_KVM_PARA
The kvm_para.h header is now always available.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Switch build system to accompanied kernel headers
This helps reducing our build-time checks for feature support in theavailable Linux kernel headers. And it helps users that do not havesufficiently recent headers installed on their build machine.
Consequently, the patch removes and build-time checks for kvm and vhost...
xen: Add xc_domain_add_to_physmap to xen_interface.
This function will be used to support sync dirty bitmap.
This come with a check against every Xen release, and specialimplementation for Xen version that doesn't have this specific call.
This function will not be usable with Xen 3.3 because the behavior is...
Introduce format string for pid_t
BeOS and Haiku on i386 use long for 32-bit types, including pid_t.Using %d with pid_t therefore results in a warning.
Unfortunately POSIX:2008 does not define a PRId* string for pid_t.
In some places pid_t was previously casted to long and %ld hardcoded....
Merge branch 'cocoa-for-upstream' of git://repo.or.cz/qemu/afaerber
configure: add libdir and --libdir
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...
configure: Fix check for fdatasync()
Under Darwin, a symbol exists for the fdatasync() function, so that ourlink test succeeds. However _POSIX_SYNCHRONIZED_IO is set to '-1'.
According to POSIX:2008, a value of -1 means the feature is not supported.A value of 0 means supported at compilation time, and a value greater 0...
configure: Detect and don't try to use older libcurl
Older versions of libcurl don't have some of the features we try touse, in particular curl_multi_setopt(). Check for this in the 'islibcurl available?' configure test so we disable curl support if the...
Merge remote branch 'rth/axp-next' into alpha-merge
Merge remote-tracking branch 'spice/spice.v37' into staging
Conflicts: vl.c
rbd: use the higher level librbd instead of just librados
librbd stacks on top of librados to provide accessto rbd images.
Using librbd simplifies the qemu code, and allowsqemu to use new versions of the rbd formatwith few (if any) changes.
Reviewed-by: Christian Brunner <chb@muc.de>...
spice: require spice 0.6.0 or newer.
This patch raises the minimum required spice version to 0.6.0 and dropsa few ifdefs.
0.6.0 is the first stable release with the current libspice-server API,there shouldn't be any 0.5.x development versions deployed any more....
configure: check for -Wendif-labels support
Older gcc compilers do not support -Wendif-labels, so move it from thehardcoded list to the dynamically detected list.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>...
softfloat-native: remove
Remove softfloat-native support, all targets are now using softfloatinstead.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-alpha: Enable the alpha-softmmu target.
With all of the pre-existing code that would not compile gone,this is the earliest point at which the target can be enabled.
There is no machine defined yet, so this will crash on startup.Enable the target anyway, to make sure that further compilation...
configure: Document --disable-slirp option in --help
The --disable-slirp option was undocumented; add it to configure's--help output.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
s390x: build s390x by default
This patch enables building of s390x-softmmu and s390x-linux-usertargets by default.
configure: List available targets in --help output
Include the list of available targets in the --help outputfor the --target-list= option.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Acked-by: Stefan Weil <weil@mail.berlios.de>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
configure: quote kvm_ppc_pvr
Merge branch 'ppc-next' of git://repo.or.cz/qemu/agraf
kvm: ppc: detect old headers
When compiling Qemu with older kernel headers, the PVR settingmechanism isn't available yet. Unfortunately, back then I didn't adda capability we could check against, so all we can do is add a configuretest to see if we support PVR setting. For BookE, we don't care yet....
ppc64: Fix out-of-tree builds
On ppc64 host, recursion into pc-bios/spapr-rtas/ fails forout-of-tree builds. Add missing dir and symlink.
Cc: David Gibson <david@gibson.dropbear.id.au>Cc: Alexander Graf <agraf@suse.de>Signed-off-by: Andreas Färber <andreas.faerber@web.de>...
ppc64: Don't try to build sPAPR RTAS on Darwin
The Darwin assembler fails to build it.
Cc: David Gibson <david@gibson.dropbear.id.au>Cc: Alexander Graf <agraf@suse.de>Signed-off-by: Andreas Färber <andreas.faerber@web.de>Signed-off-by: Alexander Graf <agraf@suse.de>
xen: Introduce the Xen mapcache
On IA32 host or IA32 PAE host, at present, generally, we can't createan HVM guest with more than 2G memory, because generally it's almostimpossible for Qemu to find a large enough and consecutive virtualaddress space to map an HVM guest's whole physical address space....
configure: Always use 64bits target physical addresses with xen enabled.
With MapCache, we can handle a 64b target, even with a 32b host/qemu.So, we need to have target_phys_addr_t to 64bits.
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>Acked-by: Alexander Graf <agraf@suse.de>...
xen: Support new libxc calls from xen unstable.
This patch updates the libxenctrl calls in Qemu to use the new interface,otherwise Qemu wouldn't be able to build against new versions of thelibrary.
We check libxenctrl version in configure, from Xen 3.3.0 to Xen...
virtio-9p: move 9p files around
Now that we start adding more files related to 9pfsit make sense to move them to a separate directory
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
configure: reenable opengl by default
Because the opengl library is only linked to for the lm32 target, we cannow safely enable opengl by default again.
Signed-off-by: Michael Walle <michael@walle.cc>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
configure: support target dependent linking
This patch is the first attempt to make configure more intelligent withregard to how it links to libraries. It divides the softmmu libraries intotwo lists, a general one and a list which depends on the target...
configure: Make epoll_create1 test work around SPARC glibc bug
Work around a SPARC glibc bug which caused the epoll_create1 configuretest to wrongly claim that the function was present. Some versions ofSPARC glibc provided the function in the library but didn't declare...
Merge remote-tracking branch 'awilliam/ipxe' into staging
target-i386: switch to softfloat
This increase the correctness (precision, NaN values, corner cases) onnon-x86 machines, and add the possibility to handle the exceptioncorrectly.
PXE: Use consistent naming for PXE ROMs
And add missing ROMs to tarbin build target.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
configure: disable opengl per default
There is a bug in nvidia's binary GPU driver, which causes a segmentationfault if linked to libGL.
unicore32: necessary modifications for other files to support unicore32
Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
s390x: set alignment for long to 8
The alignment for longs on s390x is 8. That's the only place where it differsfrom the default alignments found in configure already. The example alignmentprogram from Laurent printed the following on a real s390x:
alignof(short) 2...
configure: avoid basename usage message
basename prints a missing-argument error when sdlconfig is emptyand we're cross-compiling.
Signed-off-by: Scott Wood <scottwood@freescale.com>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
configure: add --version flag
Standard autoconf scripts include a --version flag so people can easilyquery things. Add this to qemu's configure so it too can integrate withbuild systems that have standard autotool helpers.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>...
lm32: add Milkymist AC97 support
This patch adds support for the Milkymist AC97 compatible sound output andinput core.
Signed-off-by: Michael Walle <michael@walle.cc>Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
configure: add opengl detection
This patch introduce a new config option CONFIG_OPENGL.
s390x: Enable nptl for s390x
S390x user emulation can do nptl. Reflect this in the configure script.
Signed-off-by: Ulrich Hecht <uli@suse.de>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
usb-ccid: add CCID bus
A CCID device is a smart card reader. It is a USB device, defined at [1].This patch introduces the usb-ccid device that is a ccid bus. Next patches willintroduce two card types to use it, a passthru card and an emulated card.
[1] http://www.usb.org/developers/devclass_docs/DWG_Smart-Card_CCID_Rev110....
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>...
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...
Make VNC support optional
Per default VNC is enabled.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
enable kvm for ppc(32) on ppc64
ppc64 is backward compatible, likewise.
Signed-off-by: René Rebe <rene@exactcode.de>Acked-by: Alexander Graf <agraf@suse.de>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>