History | View | Annotate | Download (90.6 kB)
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.
Signed-off-by: Alexander Graf <agraf@suse.de>
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>
rbd: don't link with -lcrypto
rbd support tries to both link with -lrados and -lcrypto. While thefirst one is of course necessary, the second is not necessary (onlylibrados ifself needs to link with libcrypto).
This fixes a licensing issue: qemu as a whole is GPL v2, and thus can't...
remove CONFIG_THREAD
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Add lm32 target to configure
w32: Add support for curses
MinGW optionally includes pdcurses, so add support for it.
Signed-off-by: Stefan Weil <weil@mail.berlios.de>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
microblaze: Allow targeting little-endian mb
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@petalogix.com>
w32: Use additional library libiberty.a
libiberty.a is part of MinGW and provides useful functionslike ffs (MinGW) and getopt (MinGW-w64).
It is needed for w64 compilations and allows simpler code for w32.
Cc: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Stefan Weil <weil@mail.berlios.de>...
target-i386: set target_phys_bits to 64
qemu i386 used to support more than 4GB of RAM through PAE, but it hasbeen disabled for an unknown reason. Reenable it.
Note that simply running qemu x86_64 and emulating a 32-bit CPU is nota solution to this problem as it is about 15% slower (it needs to...
linux-user: Support the epoll syscalls
Support the epoll family of syscalls: epoll_create(), epoll_create1(),epoll_ctl(), epoll_wait() and epoll_pwait(). Note that epoll_create1()and epoll_pwait() are later additions, so we have to test separatelyin configure for their presence....
linux-user: Define target alignment size
Datatype alignment can be found using following application:
int main(void) { printf("alignof(short) %ld\n", alignof(short)); printf("alignof(int) %ld\n", alignof(int)); printf("alignof(long) %ld\n", alignof(long));...
kvm: Fix race between timer signals and vcpu entry under !IOTHREAD
Found by Stefan Hajnoczi: There is a race in kvm_cpu_exec betweenchecking for exit_request on vcpu entry and timer signals arrivingbefore KVM starts to catch them. Plug it by blocking both timer related...
Merge remote branch 'qemu-kvm/uq/master' into staging
aliguori: fix build with !defined(KVM_CAP_ASYNC_PF)
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Merge remote branch 'spice/spice.v29.pull' into staging
Conflicts: trace-events
New trace-event backend: stderr
This backend sends trace events to standard error output during the emulation.
Also add a "--list-backends" option to tracetool, so configure script candisplay the list of available backends.
Signed-off-by: Fabien Chouteau <chouteau@adacore.com>...
configure: Fix spice probe
Non-existent $pkgconfig instead of $pkg_config was used when configureprobes for spice availability.
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
kvm: Consolidate must-have capability checks
Instead of splattering the code with #ifdefs and runtime checks forcapabilities we cannot work without anyway, provide central testinfrastructure for verifying their availability both at build andruntime.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>...
kvm: Enable user space NMI injection for kvm guest
Make use of the new KVM_NMI IOCTL to send NMIs into the KVM guest if theuser space raised them. (example: qemu monitor's "nmi" command)
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>Acked-by: Jan Kiszka <jan.kiszka@siemens.com>...
Add scripts directory
Move build and user scripts into scripts directory.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-sh4: switch sh4 to softfloat
We need to be able to catch exceptions correctly and thus enable softfloaton SH4.
As all machines except i386 and x86_64 are using softfloat, make it thedefault and change the case to detect i386 and x86_64. Note that CRIS...
configure: fix broken test
Since commit d1807a4f836c27f6dc7061e53a834dd27f78e46a ./configure triesto test files and directories with "test -f", which only test for regularfiles. Test with "test -e", which looks for any kind of files.
This unbreak the configure script when not using a separate object...
do not default to non-prefixed pkg-config when cross compiling
This can still be requested with PKG_CONFIG=/path/to/pkg-config.Just do not use it as a default, and print a warning.
reorganize sdl-config tests
This also allows overriding it with SDL_CONFIG, and warning in suspiciouscross-compilation scenarios.
move "ln -sf" emulation to a function
"ln -sf" does not really do anything more than "ln -s" on Solaris.
remove source_path_used
Not necessary since we use mkdir -p and from this patch test -f.
Also, dirname returns "." if a path has no directory component,as is the case for "sh configure".
[PATCH v3 14/15] remove HOST_CC mention from roms/{sea, vga}bios/config.mak
Not used in the submodules.
move --srcdir detection earlier
This will help getting config.guess and config.sub from the srcdir.
make trace options use autoconfy names
These are not in any release, so I am just renaming them.
test cc with the complete set of chosen flags
The "test the C compiler works ok" comes before a bunch of flagsare added for --cpu or just depending on the host. It helpsdebugging if the test is done after these flags are (unconditionally)added.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>...
do not pass bogus $(SRC_PATH) include paths to cc during configure
Non-existent -I paths are dropped silently by the compiler, but stillit is not polite to pass bogus options. Configure-time tests do notneed any include files from the source path, so only include -I flags...
provide portable HOST_LONG_BITS test
Do not hardcode the list of 64-bit CPUs. Use sizeof(void *) tocompute it. Renaming it to HOST_LONG_BITS to HOST_POINTER_BITSis left for later.
fix spelling of $pkg_config, move default together with other cross tools
default compilation tools to environment variables
default make and install to environment variables
move feature variables to the top
fix sparse support (?)
I didn't test with sparse, but the old code using += before a variablewas set was wrong. Sparse support should probably be ripped out orredone, but this at least keeps some sanity.
linux-user: Add configure check for linux/fiemap.h and IOC_FS_FIEMAP
Add a configure check for the existence of linux/fiemap.h and theIOC_FS_FIEMAP ioctl. This fixes a compilation failure on Linuxsystems which don't have that header file.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>...
linux-user: Implement sync_file_range{,2} syscalls
Implement the missing syscalls sync_file_range and sync_file_range2.The latter in particular is used by newer versions of apt on Ubuntufor ARM.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
raw-posix: add discard support
Add support to discard blocks in a raw image residing on an XFS filesystemby calling the XFS_IOC_UNRESVSP64 ioctl to punch holes. Support for otherhole punching mechanisms can be added when they become available.
Signed-off-by: Christoph Hellwig <hch@lst.de>...
ceph/rbd block driver for qemu-kvm
RBD is an block driver for the distributed file system Ceph(http://ceph.newdream.net/). This driver uses librados (which is partof the Ceph server) for direct access to the Ceph object store and isrunning entirely in userspace (Yehuda also wrote a driver for the...
Revert "Add support for generating a systemtap tapset static probes"
This reverts commit 2834c3e0140c3b0ed4422909dfa0607b7213d95d.
Conflicts:
Makefile.target
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 support for generating a systemtap tapset static probes
This introduces generation of a qemu.stp/qemu-system-XXX.stpfiles which provides tapsets with friendly names for staticprobes & their arguments. Instead of
probe process("qemu").mark("qemu_malloc") {...
Add Intel HD Audio support to qemu.
This patch adds three devices to qemu:
intel-hda Intel HD Audio Controller, the PCI device. Provides a HDA bus. Emulates ICH6 at the moment. Adding a ICH9 PCIE variant shouldn't be hard.
hda-duplex HDA Codec. Attaches to the HDA bus. Supports 16bit stereo,...
rewrite i386 tests Makefile
1) compute path to i386 compiler from configure. If it is found, runthe i386 tests. I use macros so that this approach could be appliedfor other arches as well.
2) provide an easily extensible way to add tests
Most tests fail, but at least "make test" does something meaningful....
unbreak "make" from tests directory
signalfd compatibility
Port qemu-kvm's signalfd compat code.
commit 5a7fdd0abd7cd24dac205317a4195446ab8748b5Author: Anthony Liguori <aliguori@us.ibm.com>Date: Wed May 7 11:55:47 2008 -0500
Use signalfd() in io-thread
This patch reworks the IO thread to use signalfd() instead of sigtimedwait()...
configure: Support disabling warnings in $gcc_flags
-Wall enables a bunch of warnings at once. configure puts it after$gcc_flags. This makes it impossible to disable warnings enabled by-Wall there. Fix by putting configured flags last.
Signed-off-by: Markus Armbruster <armbru@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>
configure: Send error message from spice check to /dev/null
pkg-config is not always available (e.g. on win32 hosts),but we don't want to see the 'command not found' error message.
Redirect stdout and stderr to /dev/null.
v2:
configure: Remove unneeded defines from checks
_GNU_SOURCE is already defined in QEMU_CFLAGS whichis passed to gcc in shell function compile_prog.
Removing the definition from several checks avoids compiler warnings(which are now written to config.log)....
configure: include stddef.h for NULL
This fixes an observed failure to detect madvise() on Linux.
To avoid similar issues, all other tests that use NULL but don't alreadyhave stddef.h (or another header that is defined to provide NULL,such as stdio.h, unistd.h, or time.h) are also fixed....
Merge remote branch 'spice/submit.6' into staging
Conflicts: configure
configure: Don't rely on special pthreads library
Haiku has pthreads integrated into its libroot.so library. No linker argumentsare needed for it, so don't fail if -lpthread and similar don't link.
Signed-off-by: Andreas Färber <andreas.faerber@web.de>...
configure: Add basic support for Haiku
For compatibility with BeOS, Haiku's error codes are negative whereas recentPOSIX versions require them to be positive. As spotted by François, someparts of QEMU code rely on this, so use a mapper library to convert them...
mingw: add version information to the executables
Add QEMU version information to the executables, based on earlierwork by C. W. Betts and Robert Riebisch.
Avoid exit in trap as it breaks with some shells
Don't call exit in the trap handler as it causes the return code to bezero with some buggy shells (dash and pdksh at least) and is uselesshere anyway.
Signed-off-by: Loïc Minier <loic.minier@linaro.org>...
Introduce qemu_madvise()
vl.c has a Sun-specific hack to supply a prototype for madvise(),but the call site has apparently moved to arch_init.c.
Haiku doesn't implement madvise() in favor of posix_madvise().OpenBSD and Solaris 10 don't implement posix_madvise() but madvise()....
add spice into the configure file