History | View | Annotate | Download (106.9 kB)
pixman: set --host for cross builds
Set --host when calling pixman configure while doing cross builds sopixman's autoconf picks up the cross build tools correctly.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
pixman: add output dir to include path
Needed to make sure the (generated) pixman-version.h file is found.Based on a patch from Blue Swirl.
tcg/ppc: ld/st optimization
Signed-off-by: malc <av1474@comtv.ru>
configure: Add CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization
Enable CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization only whena host is i386 or x86_64.
Signed-off-by: Yeongkyoon Lee <yeongkyoon.lee@samsung.com>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Merge remote-tracking branch 'kraxel/usb.69' into staging
usb-redir: Add support for 32 bits bulk packet length
Signed-off-by: Hans de Goede <hdegoede@redhat.com>Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
pixman: windup in configure & makefiles
configure: use -Wwombat to test whether gcc recognizes -Wno-wombat
gcc will silently accept unrecognized -Wno-wombat warning suppressionoptions (it only mentions them if it has to print a compiler warningfor some other reason). Since we already run a check for whether gcc...
qemu-timer: Check for usable fields for SIGEV_THREAD_ID
Older glibc (RHEL 5.x, Debian 5.x) does not have the _sigev_un._tidmember in its structure definition, while the accompanying kernelheaders do define SIGEV_THREAD_ID. We need configure to check for...
configure: avoid compiler warning in pipe2 detection
When building qemu-kvm for openSUSE:Factory, I am getting awarning in the pipe2 detection performed by configure, whichprevents using --enable-werror.
Change detection code to use return value of pipe2....
configure: Disable (clang) initializer-overrides warnings
Disable clang's initializer-overrides warnings, as QEMU makes significantuse of the pattern of initializing an array with a range-based defaultentry like [0 ... 0x1ff] = { GPIO_NONE, 0 }followed by specific entries which override that default, and clang...
fix CONFIG_QEMU_HELPERDIR generation again
commit 38f419f35225 fixed a breakage with CONFIG_QEMU_HELPERDIRwhich has been introduced by 8bf188aa18ef7a8. But while techinicallythat fix has been correct, all other similar variables are handleddifferently. Make it consistent, and let scripts/create_config...
configure: Fix CONFIG_QEMU_HELPERDIR generation
We need to evaluate $libexecdir in configure, otherwise we literally endup with "${prefix}/libexec" instead of the absolute path asCONFIG_QEMU_HELPERDIR.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>...
Merge branch 'linux-user-for-upstream' of git://git.linaro.org/people/rikuvoipio/qemu
configure: Remove unused parameters from main function
This modification is required if compiler option -Wunused-parameter is activated.
Signed-off-by: Stefan Weil <sw@weilnetz.de>Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Merge remote-tracking branch 'stefanha/trivial-patches' into staging
Merge remote-tracking branch 'mdroth/qga-pull-10-9-12' into staging
configure: Remove unnecessary host_guest_base code
All TCG hosts now support guest-base functionality, so we canremove the setting of host_guest_base to 'yes' in every armof the case "$cpu" statement, and simply set guest_base todefault to 'yes'.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>...
configure: Tidy up remnants of non-64-bit physaddrs
Tidy up some remnants of code to support non-64-bit physaddrswhich were accidentally omitted from commit 4be403c8.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
configure: add --localstatedir
Next commit wants to use it.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
spice: raise requirement to 0.12
With the next qemu version (1.3) we are going to bump the qxl devicerevision to 4. The new features available require a recent spice-serverversion, so raise up the bar. Otherwise we would end up with differentqxl revisions depending on the spice-server version installed, which...
Merge branch 'trivial-patches' of git://github.com/stefanha/qemu
Remove libhw
The entries for libhw* are no longer needed in .gitignore.
There is also no longer a difference between common-obj-y andhw-obj-y, so one of those two macros is sufficient.
Signed-off-by: Stefan Weil <sw@weilnetz.de>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
configure: Support empty target list (--target-list=)
Specifying an empty target list with --target-list= is shorterthan specifying --disable-user --disable-system.
Both variants should give the same result: no targets at all.
This modification implements that feature....
Merge remote-tracking branch 'kwolf/for-anthony' into staging
Merge remote-tracking branch 'kraxel/usb.66' into staging
Make target_phys_addr_t 64 bits unconditionally
The hassle and compile time overhead of maintaining both 32-bit and 64-bitcapable source isn't worth the tiny performance advantage which is seen ona minority of configurations. Switch to compiling libhw only once, with...
configure: Add a config option for GlusterFS as block backend
GlusterFS support in QEMU depends on libgfapi, libgfrpc andlibgfxdr provided by GlusterFS.
Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>Signed-off-by: Kevin Wolf <kwolf@redhat.com>
usb-redir: Adjust pkg-config check for usbredirparser .pc file rename (v2)
The usbredir 0.5 release introduced the new API for 64 bit packet ids, butit kept the libusbredirparser.pc name as is, meaning that older versions ofqemu will still have their pkg-config check for usbredirparser fulfilled,...
configure: Allow builds without any system or user emulation
The old code aborted configure when no emulation target was selected.Even after removing the 'exit 1', it tried to read from STDINwhen QEMU was configured with
configure' '--disable-user' '--disable-system'...
tcg-sparc: Clean up cruft stemming from attempts to use global registers.
Don't use -ffixed-gN. Don't link statically. Don't save/restoreAREG0 around calls. Don't allocate space on the stack for AREG0 save.
Signed-off-by: Richard Henderson <rth@twiddle.net>
tcg-sparc: Support GUEST_BASE.
tcg-sparc: Assume v9 cpu always, i.e. force v8plus in 32-bit mode.
Current code doesn't actually work in 32-bit mode at all. Sinceno one really noticed, drop the complication of v7 and v8 cpus.Eliminate the --sparc_cpu configure option and standardize macro...
Merge branch 'usb.65' of git://git.kraxel.org/qemu
Merge remote-tracking branch 'spice/spice.v60' into staging
Revert "Add ability to disable build of all targets"
This reverts commit 66d5499b3754b83c09487259c08fe2ce73188a59.
This commit broke --target-list="x86_64-softmmu" and the fix isn't immediatleyobvious.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Remove unused CONFIG_TCG_PASS_AREG0 and dead code
Now that CONFIG_TCG_PASS_AREG0 is enabled for all targets,remove dead code and support for !CONFIG_TCG_PASS_AREG0 case.
Remove dyngen-exec.h and all references to it. Although included byhw/spapr_hcall.c, it does not seem to use it....
target-mips: switch to AREG0 free mode
Add an explicit CPUState parameter instead of relying on AREG0and switch to AREG0 free mode.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>Acked-by: Aurelien Jarno <aurelien@aurel32.net>
target-microblaze: switch to AREG0 free mode
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-cris: Switch to AREG0 free mode
Add an explicit CPUCRISState parameter instead of relying on AREG0, anduse cpu_ld* in translation and interrupt handling. Remove AREG0 swappingin tlb_fill(). Switch to AREG0 free mode
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>...
target-sh4: switch to AREG0 free mode
Acked-by: Aurelien Jarno <aurelien@aurel32.net>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-lm32: switch to AREG0 free mode
target-m68k: switch to AREG0 free mode
target-unicore32: switch to AREG0 free mode
Tested-by: Guan Xuetao <gxt@mprc.pku.edu.cn>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-arm: final conversion to AREG0 free mode
Convert code load functions and switch to AREG0 free mode.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
configure: properly check if -lrt and -lm is needed
Fixes build against uClibc.
uClibc provides 2 versions of clock_gettime(), one with realtimesupport and one without (this is so you can avoid linking in -lrtunless actually needed). This means that the clock_gettime() don't...
configure: fix seccomp check
Currently, if libseccomp is missing but the user explicitly requestedseccomp support using --enable-seccomp, configure silently ignores thesituation and disables seccomp support.
This is unlike all other tests that explicitly fail in such situation....
configure: usbredir fixes
usbredir is only used by system emulation, so add the libraries tolibs_softmmu instead of LIBS.
Cc: Michael Tokarev <mjt@tls.msk.ru>Cc: Gerd Hoffmann <kraxel@redhat.com>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>Signed-off-by: Hans de Goede <hdegoede@redhat.com>...
hw/qxl: support client monitor configuration via device
Until now we used only the agent to change the monitor count and eachmonitor resolution. This patch introduces the qemu part of using thedevice as the mediator instead of the agent via virtio-serial....
usb-redir: Convert to new libusbredirparser 0.5 API
This gives us support for 64 bit ids which is needed for using XHCI withthe new hcd generated ids.
Add ability to force enable/disable of tools build
The qemu-img, qemu-nbd and qemu-io tools are built conditionallybased on whether any softmmu target is enabled. These are usefulself-contained tools which can be used in many other scenarios.Add new --enable-tools/--disable-tools args to configure to allow...
Add ability to disable build of all targets
Allow passing of '--target-list=' to configure to request thatall targets are to be disabled. This allows for doing a veryfast tools-only build of things like qemu-img, qemu-io, qemu-nbd.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>...
Merge remote-tracking branch 'qemu-kvm/uq/master' into staging
use --libexecdir instead of ignoring it first and reinventing it later
Commit 7b93fadf3a38d1ed65ea5536a52efc2772c6e3b8 "Add basic versionof bridge helper" put the bridge helper executable into a fixed${prefix}/libexec/ location, instead of using ${libexecdir} for...
Merge branch 'spice.v59' of git://anongit.freedesktop.org/spice/qemu
target-s390x: switch to AREG0 free mode
Add an explicit CPUState parameter instead of relying on AREG0.
Remove temporary wrappers and switch to AREG0 free mode.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>[agraf: fix conflicts]Signed-off-by: Alexander Graf <agraf@suse.de>
qemu: Use valgrind annotations to mark kvm guest memory as defined
valgrind with kvm produces a big amount of false positives regarding"Conditional jump or move depends on uninitialised value(s)". Thishappens because the guest memory is allocated with qemu_vmalloc which...
configure: print spice-protocol and spice-server versions
Signed-off-by: Alon Levy <alevy@redhat.com>Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
qxl: add QXL_IO_MONITORS_CONFIG_ASYNC
Revision bumped to 4 for new IO support, enabled for spice-server >=0.11.1. New io enabled if revision is 4. Revision can be set to 4.
[ kraxel: 3 continues to be the default revision. Once we have a new stable spice-server release and the qemu patches to enable...
qapi: add 'query-target' command to return target arch
Add a 'query-target' QAPI command to allow management applicationsto determine what target architecture a QEMU binary is emulatingwithout having to parse the binary name or -help output
$ qmp-shell -p /tmp/qemu...
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.
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...
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.
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
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 'sstabellini/compile-xs' into staging