History | View | Annotate | Download (110.4 kB)
link seccomp only with softmmu targets
Now, if seccomp is detected, it is linked into every executable,but is used only by softmmu targets (from vl.c). So link itonly where it is actually needed.
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
vnc: added initial websocket protocol support
This patch adds basic Websocket Protocol version 13 - RFC 6455 - supportto QEMU VNC. Binary encoding support on the client side is mandatory.
Because of the GnuTLS requirement the Websockets implementation is...
configure: silence pkg-config's check for curses
Signed-off-by: Vadim Evard <v.e.evard@gmail.com>Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Merge remote-tracking branch 'stefanha/trivial-patches' into staging
configure: try pkg-config for curses
Static linkikng against ncurses may require explicit -ltinfo.In case -lcurses and -lncurses both didn't work give pkg-config achance.
Fixes #1094786 for me.
raw-posix: support discard on more filesystems
Linux 2.6.38 introduced the filesystem independent interface todeallocate part of a file. As of Linux 3.7, btrfs, ext4, ocfs2,tmpfs and xfs support it.
Even though the system calls here are in practice issued on Linux,...
Merge remote-tracking branch 'kraxel/pixman.v6' into staging
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
pixman: pass extra cflags and ldflags
Store --extra-cflags and --extra-ldflags in config-host.mak,then pass them on to the pixman configure script.
Cc: Scott Wood <scottwood@freescale.com>Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
libcacard: rewrite Makefile in non-recursive style
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
build: remove CONFIG_SMARTCARD
The passthru smartcard does not have the shared library dependency, buildit unconditionally.
libcacard: require libtool to build it
Do not fail at build time, instead just disable the library if libtoolis not present.
build: support linking with libtool objects/libraries
This patch moves the complication of using libtool to the genericrules.mak file.
gcc: rename CONFIG_PRAGMA_DISABLE_UNUSED_BUT_SET to CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
optionrom: build with discrete CPP and AS steps
Build option ROM .S files with separate preprocessor andassembler steps because the C compiler could be unsuitable.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
configure: Fix comment (copy+paste bug)
Signed-off-by: Stefan Weil <sw@weilnetz.de>Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
usbredir: Add support for buffered bulk input (v2)
Buffered bulk mode is intended for bulk input endpoints, where the data isof a streaming nature (not part of a command-response protocol). Theseendpoints' input buffer may overflow if data is not read quickly enough....
tests: add gcov support
Add support for compiling for GCOV test coverage, enabledwith '--enable-gcov' during configure.
Test coverage will be reported after each test.
Remove --sparc_cpu option from the configure list
commit 9b9c37c36439ee0452632253dac7a31897f27f70 always assume sparcv9,the others are no longer supported. Remove --sparc_cpu option from theconfigure list.
Signed-off-by: Chen Wei-Ren <chenwj@iis.sinica.edu.tw>...
configure: also symlink *.aml files
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
configure: Write new file "config-all-disas.mak" when running configure
Incremental builds added new lines to that file each time when configurewas run.
Now a new file with a comment line is written.
Signed-off-by: Stefan Weil <sw@weilnetz.de>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
configure: add CONFIG_VIRTIO_BLK_DATA_PLANE
The virtio-blk-data-plane feature only works with Linux AIO. Thereforeadd a ./configure option and necessary checks to implement thisdependency.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
tcg-i386: Perform cmov detection at runtime for 32-bit.
Existing compile-time detection is spotty at best. Convertit all to runtime detection instead.
Signed-off-by: Richard Henderson <rth@twiddle.net>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
configure: allow disabling pixman if not needed
When we build neither any system emulation targets nor the tools thereis actually no need for pixman library. In that case do not enforcepresence of that library on the system.
Reviewed-by: Andreas F=E4rber <afaerber@suse.de>...
build: fix includes for VNC
vnc-tls.h is included by vnc.h, and it includes gnutls/gnutls.h.Hence, GnuTLS header files are needed by all files that includevnc.h, most notably qmp.c. Move these flags to QEMU_CFLAGS forsimplicity.
Reported-by: Peter Maydell <peter.maydell@linaro.org>...
Merge remote-tracking branch 'bonzini/header-dirs' into staging
fpu: move public header file to include/fpu
build: adjust setting of QEMU_INCLUDES
Make it correct for nested directories, and move the static partfrom Makefile to configure.
build: create ldscripts/
build: kill libdis, move disassemblers to disas/
build: kill libuser
configure: Earlier pkg-config probe
Probe pkg-config before it is used for the first time (libseccomp check).
Revert "pixman: require 0.18.4 or newer"
This reverts commit 288fa40736e6eb63132d01aa6dc21ee831b796ae.
The only reason old pixman versions didn't work was the missingPIXMAN_TYPE_BGRA, which is properly #ifdef'ed now. So we don'thave to require a minimum pixman version....
configure: Default to 'cc', not 'gcc'
Default to 'cc' as our compiler, rather than 'gcc'. We used to haveto insist on gcc when we still kept the CPU env in a fixed globalregister, but this is no longer necessary and we will now compile OKon clang as well as gcc. Using 'cc' should generally result in us...
pixman: require 0.18.4 or newer
When older versions are found the internal pixman version is prefered.
configure: Remove stray debug output
Rather than printing a message saying we're silently fallingback to gthread coroutines when running on MacOS, actuallydo it silently.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Fix spelling (prefered -> preferred)
build: compile translate.o with -fno-gcse option on GCC 4.6.x and 4.7.[012]
These versions of GCC require insane (>2GB) amounts of memory to compiletranslate.o. As a countermeasure, disable the culprit optimization pass.This should fix the buildbot failure for default_x86_64_fedora16. Anyway...
tci: Fix build breakage (unresolved symbol tcg_out_tb_finalize)
Commit 32761257c0b9fa7ee04d2871a6e48a41f119c469 enabledqemu_ld/st optimization unconditionally for some hosts.
The TCG interpreter still does not support this kind ofoptimization. Therefore builds with TCI fail with an...
libseccomp: require version 1.0.0
Debian Wheezy has version 0.1.0 which is not compatible, avoid it.
pixman: build internal version early
Signed-off-by: Eric Johnson <ericj@mips.com>Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
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.
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.
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.
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.
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.
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
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>