History | View | Annotate | Download (105.3 kB)
Adding support for libseccomp in configure and Makefile (v8)
Adding basic options to the configure script to use libseccomp or not.The default is set to 'no'. If the flag --enable-libseccomp is used, thescript will check for its existence using pkg-config....
configure: Don't override user's --cpu on MacOS and Solaris
Both MacOS and Solaris have special case handling for the CPUtype, because the check_define probes will return i386 even ifthe hardware is 64 bit and x86_64 would be preferable. Movethese checks earlier in the configure probing so that we can...
configure: Define OS_OBJECT_USE_OBJC=0 for MacOSX builds
MacOSX 10.8 ("Mountain Lion") defaults to trying to use automatedreference counting on certain objects. This means that the systemheader files will use some Objective C syntax constructs even when...
Support using a different compiler for Objective-C files
MacOSX 10.8 ("Mountain Lion") requires us to compile our oneObjective-C source file with clang even if the rest of QEMUrequires a real gcc, because the system headers we use makeuse of Apple's "Blocks" extension to C/ObjC, and mainline...
audio: Make pcspk card selectable again
[ The following text is in the "ISO-8859-1" character set. ] [ Your display is set for the "KOI8-R" character set. ] [ Some special characters may be displayed incorrectly. ]
Since we moved pcspk into hwlib, CONFIG_PCSPK is no longer defined per...
x86: switch to AREG0 free mode
Add an explicit CPUX86State parameter instead of relying on AREG0.
Remove temporary wrappers and switch to AREG0 free mode.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Merge remote-tracking branch 'qmp/queue/qmp' into staging
monitor: drop unused monitor debug code
In the old QMP days, this code was used to find out QMP commands thatmight be calling monitor_printf() down its call chain.
This is almost impossible to happen today, because the qapi convertedcommands don't even have a monitor object. Besides, it's been more than...
Merge remote-tracking branch 'qemu-kvm/uq/master' into staging
configure: fix double check tests with Clang
Configuring with Clang compiler with Werror would not work afterimproved checks:/tmp/qemu-conf--25992.c:4:32: error: self-comparison always evaluatesto true [-Werror,-Wtautological-compare]int main(void) { return preadv == preadv; }...
configure: Check for -Werror causing failures when compiling tests
Add support for checking whether test case code can compile withoutwarnings, by recompiling each successful test with -Werror. If the-Werror version doesn't pass, we bail out. This gives us the same...
unicore32-softmmu: Add unicore32-softmmu build support
This patch adds unicore32-softmmu build support, include configure,makefile, arch_init, and all missing functions needed by softmmu.Although all missing functions are empty, unicore32-softmmu could...
configure: Don't implicitly hardcode list of KVM architectures
The code creating the symlink from linux-headers/asm to thearchitecture specific linux-headers/asm-$arch directory wasimplicitly hardcoding a list of KVM supporting architectures.Add a default case for the common "Linux architecture name and...
configure: Fix set-but-not-used warning in Xen 4.1 probe
The Xen 4.1 probe never uses the return value from xc_interface_open(),so was provoking a compiler warning on newer gcc. Fix by not botheringto put the return value anywhere.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>...
configure: Don't run Xen compile checks in subshells
The Xen compile checks are currently run inside subshells. Thisis unnecessary and has the effect that if do_cc() exits withan error message then this only causes the subshell to exit,not the whole of configure, which is confusing. Remove the...
configure: Fix xen probe with Xen 4.2 and later
The xs.h header is now deprecated and produces a warning. This prevents theconfigure script from enabling Xen with xen-unstable whom will become 4.2. Asthis header is not anymore common to every version of Xen, we just remove it...
configure: -I\$(SRC_PATH) goes in QEMU_INCLUDES not QEMU_CFLAGS
If the smartcard configure check passes, add '-I\$(SRC_PATH)/libcacard'to QEMU_INCLUDES, not QEMU_CFLAGS. Otherwise the unexpanded SRC_PATHwill cause a warning in every following configure test....
configure: Fix compile warning in utimensat/futimens test
Fix compile warning in the utimensat/futimens test ("implicitdeclaration of function 'utimensat'", ditto futimens) byadding a missing include.
configure: Fix warnings in VDE library probe
Fix compile warnings in the VDE library probe ("passing argument 1 of'vde_open_real' discards 'const' qualifier from pointer target type",ditto argument 2).
configure: Fix compile warning in PNG test
Fix compile warning (variable 'png_ptr' set but not used) in thePNG detection test code.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Reviewed-by: Stefan Weil <sw@weilnetz.de>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
configure: Fix errors in test for__sync_fetch_and_and
The old test code raises two compiler warnings which are errors sincecommit 417c9d72d48275d19c60861896efd4962d21aca2.
These errors could result in compilations with compiler flag-march486 (so all nice features of newer processors got lost)....
configure: -march=i486 belongs in QEMU_CFLAGS, not CFLAGS
The distinction between QEMU_CFLAGS and CFLAGS is that theformer is for flags without which QEMU can't compile, whereasthe latter is for flags like "-g -O2" which the user cansafely override. "-march=i486" is in the former category, and...
configure: Replace bash code by standard shell code
"+=" does not work with dash and other simple /bin/sh implementations.
The new code prepends the flag while the old code either did not work(it continued after an error message which typically was not read) or...
configure: Fix build with capabilities
Since commit 417c9d72d48275d19c60861896efd4962d21aca2 all configure testsnormally run with -Werror. Some of these tests now fail because theyraised a compiler warning.
This patch fixes support for capabilities.
Signed-off-by: Stefan Weil <sw@weilnetz.de>...
configure: Fix build with ALSA audio driver
Since commit 417c9d72d48275d19c60861896efd4962d21aca2,all configure tests normally run with -Werror.
Some of these tests now fail because they raised a compiler warning.
Here a build breakage for ALSA (configure --audio-drv-list=alsa) is fixed....
configure: Don't run configure tests with -Werror enabled
Don't run configure tests with -Werror in the compiler flags. The ideaof -Werror is that it makes problems very obvious to developers, sothey get fixed quickly. However, when running configure tests, failures...
configure: Split valgrind test into pragma test and valgrind.h test
Split the configure test that checks for valgrind into two, onepart checking whether we have the gcc pragma to disable unused-but-setvariables, and the other part checking for the existence of valgrind.h....
target-or32: Add linux user support
Add QEMU OpenRISC linux user support.
Signed-off-by: Jia Liu <proljc@gmail.com>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-or32: Add target stubs and QOM cpu
Add OpenRISC target stubs, QOM cpu and basic machine.
Revert "audio: Make PC speaker audio card available by default"
This reverts commit 504972922da9b562f15e13544d3efca84b46b8fd which broke thebuild for ARM.
I don't think this change is necessary. If I'm wrong, please recommit thischangeset with an appropriate fix for ARM....
audio: Make PC speaker audio card available by default
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>...
coroutine-ucontext: Help valgrind understand coroutines
valgrind tends to get confused and report false positives when youswitch stacks and don't tell it about it.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
configure: add -Werror to QEMU_CFLAGS early
We want all configure tests pass with -Werror if it is enabled. So weneed to update QEMU_CFLAGS early on to make sure we also pass it in toall the compile test jobs.
This fixes a warning-became-error bug in nss for me with the default...
ARM: Make target_phys_addr_t 64 bits and physaddrs 40 bits
Make target_phys_addr_t 64 bits for ARM targets, and setTARGET_PHYS_ADDR_SPACE_BITS to 40. This should have no effect for ARMboards where physical addresses really are 32 bits (except perhaps a...
configure: Remove help for --disable-vnc-thread, --enable-vnc-thread
Commit 2624bab836662d37f08336408a99d97652fc9c4d removed theseconfigure arguments. Now the help text for both is removed, too.
Signed-off-by: Stefan Weil <sw@weilnetz.de>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Remove support for non-threaded VNC server
QEMU now has a fundamental requirement for pthreads, so thereis no compelling reason to retain support for the non-threadedVNC server. Remove the --{enable,disable}-vnc-thread configurearguments, and all CONFIG_VNC_THREAD conditionals...
configure: Assure existence of linux-headers/ build directory
Commit ec5b06d (configure: ensure directory exists when creating symlinks)moved the creation of directories into the symlink() function but forgotthe case where no symlink is created.
This leads to build errors on arm Linux due to -I../linux-headers....
Merge remote-tracking branch 'stefanha/trivial-patches' into staging
Merge remote-tracking branch 'sstabellini/compile-xs' into staging
Merge remote-tracking branch 'sstabellini/xen-pt' into staging
ppc: Move load and store helpers, switch to AREG0 free mode
Add an explicit CPUPPCState parameter instead of relying on AREG0and rename op_helper.c (which only contains load and store helpers)to mem_helper.c. Remove AREG0 swapping intlb_fill().
Switch to AREG0 free mode. Use cpu_ld{l,uw}_code in translation...
configure: Fix typo
The typo did not cause an error because open_by_handle_atwas only compared to "yes".
configure: Introduce --enable-xen-pci-passthrough.
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xenstore: Use <xenstore.h>
In the next release of Xen (4.2), xs.h became deprecated.
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
configure: fix -enable-debug with newer toolchains
Fedora 17's toolchain wants optimization enabled for _FORTIFY_SOURCE;so disable _FORTIFY_SOURCE when debugging.
Signed-off-by: Avi Kivity <avi@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
configure: Fix build for some versions of glibc (9pfs)
Some versions declare open_by_handle_at, but don't define AT_EMPTY_PATH.Extend the check in configure to test both preconditions.
Signed-off-by: Stefan Weil <sw@weilnetz.de>Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>...
target-xtensa: switch to AREG0-free mode
Add env parameter to every helper function that needs it, update'configure' script.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
configure: report missing libraries for virtfs
Signed-off-by: Harsh Prateek Bora <harsh@linux.vnet.ibm.com>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
build: do not create directories at configure time
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configure: ensure directory exists when creating symlink
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
build: libcacard Makefile cleanups
Build vscclient from toplevel Makefile, limit usage of vpath.
build: convert libhw to nested Makefile.objs
After this patch, the libhw* directories will have a hierarchythat mimics the source tree. This is useful because we do havea couple of files there that are in the top source directory.
build: move per-target hw/ objects to nested Makefile.objs
This completes the move to nested Makefiles for virtio and a fewother files that were not part of obj-TARGET-y, but still werecompiled separately for each target.
build: move target-independent hw/ objects to nested Makefile.objs
This patch starts converting the hw/ directory. Some files in hw/are compiled once, some twice (32-/64-bit), some once per target.Each category is moved in a separate patch.
After this patch, the files that are compiled once will show the...
build: move libobj-y variable to nested Makefile.objs
build: move obj-TARGET-y variables to nested Makefile.objs
Also drop duplicate occurrence of device-hotplug.o.
build: move *-user/ objects to nested Makefile.objs
target-i386: Add API to write elf notes to core file
The core file contains register's value. These APIs write registers tocore file, and them will be called in the following patch.
Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
implement cpu_get_memory_mapping()
Walk cpu's page table and collect all virtual address and physical address mapping.Then, add these mapping into memory mapping list. If the guest does not use paging,it will do nothing. Note: the I/O memory will be skipped....
configure: check if environ is declared
Some systems may declare environ automatically, others don't. Check for it.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
configure: Use QEMU instead of Qemu
This new 'Qemu' was recently added.Replace it by the official all upper case 'QEMU'.
Reviewed-by: Andreas Färber <afaerber@suse.de>Signed-off-by: Stefan Weil <sw@weilnetz.de>
configure: Reindent VirtFS check
Avoid tab-indention and fit in with the surrounding code.
Signed-off-by: Andreas Färber <afaerber@suse.de>Cc: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
configure: Assure printing "yes" or "no" for VirtFS support
When auto-detecting VirtFS support, virtfs="". Set it to "no" afterchecking whether it was explicitly requested through --enable-virtfs.
Signed-off-by: Andreas Färber <afaerber@suse.de>Cc: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>...
Merge remote-tracking branch 'bonzini/scsi-next' into staging
ISCSI: Add support for thin-provisioning via discard/UNMAP and bigger LUNs
Update the configure test for libiscsi support to detect version 1.3or later. Version 1.3 of libiscsi provides both READCAPACITY16 as wellas UNMAP commands.
Update the iscsi block layer to use READCAPACITY16 to detect the size of...
spice: require spice-protocol >= 0.8.1
Requiring spice-server >= 0.8.2 is not enough since spice-server.pcdoesn't require spice-protocol (any version). Until that is fixedupstream an explicit requirement in qemu fixes compilation broken since
commit 2e1a98c9c1b90ca093278c6b43244dc46604d7b7...
Merge remote-tracking branch 'stefanha/tracing' into staging
configure: check for supported Python 2.x versions
The tracetool code requires Python 2.4, which was released in 2004.Check for a supported Python version so we can give a clear errormessage.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>...
configure: Add libraries for qemu-ga on Solaris
Move socket-related Solaris libraries to $solarisnetlibs and use themfor both $LIBS and $libs_qga.
Fixes build on illumos without --disable-guest-agent.
Signed-off-by: Lee Essen <lee.essen@nowonline.co.uk>...
configure: Fix creation of symbolic links for MinGW toolchain
The MinGW toolchain on w32/w64 hosts does not create symbolic links,but implements 'ln -s' similar to 'cp -r'.
In incremental out of tree builds, this resulted in files whichwere not updated when their counterparts in the QEMU source tree...
configure: add '--disable-cocoa' switch
When SDL support is disabled, there is no way to build QEMU withoutCocoa support on MacOS X. This patch adds '--disable-cocoa' switch andallows to build QEMU without both SDL and Cocoa frontends.
Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>...
Drop darwin-user
It's been orphaned, not compiling for a long time and despite Apple'sdrop of their Rosetta ppc emulation technology with Mac OS X Lion no onehas stepped up to fix it.
Testing necessary changes wrt QOM'ification thus is impossible, so we...
configure: Don't build bsd-user on Mac OS X by default
Fixes the build when combined with the drop of darwin-user.Enthusiasts can still try building it using --enable-bsd-user.
Signed-off-by: Andreas Färber <andreas.faerber@web.de>Cc: Bernhard Walle <bernhard@bwalle.de>...
Revert "configure: Virtfs doesn't require libcap."
This reverts commit d10f9056bacf7991fd6a5f63ac2e0190e84ea3a7 due to a buildbreakage.
See http://spunk.home.kraxel.org/bb/builders/ubuntu-default/builds/52
config-host.mak: reorder variables a bit
Cosmetic change.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
configure: change meaning of --datadir to Autoconf convention
Autoconf uses --datadir for the /usr/share directory, not theprogram-specific subdirectory inside /usr/share. This changes configureto match autoconf behavior.
Note that this will break compatibility with existing build scripts....
configure: add --with-confsuffix option
This will allow the user to make Qemu use a different subdirectory nameinside $datadir and $sysconfdir, instead of "/qemu".
configure: Virtfs doesn't require libcap.
Only proxy helper does.
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Kusanagi Kouichi <slash@ac.auone-net.jp>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Remove extra pthread switch
remove the extra pthread switch which might be there from the package config check for gthreads.
Signed-off-by: Peter Portante <peter.portante@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
configure: rename $datadir to $qemu_datadir
The variable is used for the qemu-specific directory and has a differentmeaning of the autoconf "datadir" variable (that's used for the$prefix/share directory, not for $prefix/share/PACKAGE).
This doesn't change behavior or interfaces, it's just an internal...
configure: rename $docdir to $qemu_docdir
The autoconf "docdir" variable is used for the program-specificsubdirectory, but anyway it's better to make it clear that the variableis used for the qemu-specific subdirectory path.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>...
configure: rename $confdir to $qemu_confdir
There's no "confdir" variable on Autoconf, but it's good to make itclear that it's a variable for the Qemu-specific subdirectory inside$sysconfdir.
config-host.mak: rename datadir to qemu_datadir
Autoconf concept of "datadir" is supposed to be "$prefix/share", not"$prefix/share/PACKAGE", so using datadir for the Qemu-specificdirectory is confusing.
The current C code that uses CONFIG_QEMU_DATADIR should be safe, as now...
config-host.mak: rename confdir to qemu_confdir
$confdir is a confusing name, as it's not clear if it's "the systemconfig dir" or "the Qemus-specific directory inside the config dir".$qemu_confdir makes it more clear.
The current C code that uses CONFIG_QEMU_CONFDIR should be safe, as now...
config-host.mak: rename docdir to qemu_docdir
config-host.mak: remove CONFIG_QEMU_SHAREDIR
There is no code using that variable according to 'git grep', so killit.
Merge remote-tracking branch 'sstabellini/build_fix' into staging
tracetool: Rewrite infrastructure as python modules
The tracetool script is written in shell and has hit several portabilityproblems due to shell quirks or external tools across host platforms.Additionally the amount of string processing and lack of real data...
xen,configure: detect Xen 4.2
Xen 4.2 is the first to support xc_hvm_inject_msi: use it to determineif we are running on it.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>Acked-by: Anthony PERARD <anthony.perard@citrix.com>
configure: pa_simple is not needed anymore
Signed-off-by: Marc-Andr? Lureau <marcandre.lureau@redhat.com>Signed-off-by: malc <av1474@comtv.ru>
configure: Insist on a Python 2, not Python 3
Our Python scripts require Python 2 and will fail on Python 3, eg: File "/home/petmay01/linaro/qemu-from-laptop/qemu/scripts/qapi-commands.py", line 378 except getopt.GetoptError, err: ^...
configure: Remove useless uses of ARCH_CFLAGS
Remove some useless uses of ARCH_CFLAGS -- this variable was never setso will always be empty. The uses were accidental: in commit 0c439cbf8Juan Quintela removed ARCH_CFLAGS in favour of CFLAGS (which in turn...
configure: Fix wrong preprocessor statement
#abort is not a preprocessor statement. It aborts, but the preprocessorstatement #error is more common to abort a compilation.
Replace Qemu by QEMU in w32 installation path (prefix)
The official spelling is QEMU.
Signed-off-by: Stefan Weil <sw@weilnetz.de>Reviewed-by: Andreas Färber <afaerber@suse.de>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
configure: require glib 2.12, 2.20 for mingw32
These are pretty sane requirements to move forward with glib usage.2.12 is the version found in RHEL/CentOS 5, and 2.20 is thefirst version to support g_poll. Without g_poll, we cannotintegrate well with the glib main loop....
configure: Link qga against UST tracing related libraries
Signed-off-by: Harsh Prateek Bora <harsh@linux.vnet.ibm.com>Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
configure: Link QEMU against 'liburcu-bp'
This library is needed when using 'ust/tracepoint.h'.