History | View | Annotate | Download (106.9 kB)
Merge branch 'usb.65' of git://git.kraxel.org/qemu
Merge remote-tracking branch 'stefanha/trivial-patches' into staging
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.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
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.
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 '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
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...