History | View | Annotate | Download (113.4 kB)
cpu-exec: Allow "-d exec" in non-debug builds (drop CONFIG_DEBUG_EXEC)
The CONFIG_DEBUG_EXEC define compiles out a single qemu_log_mask()call, which is a pretty trivial cost even for something in the maincpu_exec() loop. Having this be conditionally defined means that...
Merge remote-tracking branch 'bonzini/hw-dirs' into staging
hw: move virtio devices to hw/ subdirectories
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configure: Provide and use convenience error reporting function
Provide a convenience function for reporting an error and exiting,and update various places in the configure script to use it.This allows us to be a little more consistent about how format...
configure: Don't fall back to gthread coroutine backend
The gthread coroutine backend is broken and does not produce a workingQEMU; it is only useful for some very limited debugging situations.Clean up the backend selection logic in configure so that it now runs...
configure: remove unset variables
These variables have not been set for a long time. Do notinclude them in config-host.mak.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Message-id: 1364918276-11866-1-git-send-email-pbonzini@redhat.comSigned-off-by: Anthony Liguori <aliguori@us.ibm.com>
Merge remote-tracking branch 'stefanha/trivial-patches' into staging
w32: Fix build with older gcc (unresolved symbol)
The cross i586-mingw32msvc-gcc 4.4.4 from Debian Squeeze does not support__sync_val_compare_and_swap by default.
Using -march=i686 fixes that and should also result in better code.
Signed-off-by: Stefan Weil <sw@weilnetz.de>...
configure: show debug-info option in --help output
"--enable-debug-info" and "--disable-debug-info" were not shownin --help output.
Signed-off-by: Dunrong Huang <huangdr@cloud-times.com>Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Add top level changes for moxie
Signed-off-by: Anthony Green <green@moxielogic.com>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Merge branch 'for-upstream' of git://github.com/mwalle/qemu
Advertise --libdir in configure --help output
The configure script allows you to supply a libdir via --libdir but wasnot advertising this in --help.
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>CC: qemu-trivial@nongnu.orgSigned-off-by: Stefan Hajnoczi <stefanha@redhat.com>
configure: proper OpenGL/GLX probe
Probe for GL and GLX symbols and X11 library. This fixes a build errorwhere the header files are available but the libraries are not.
Signed-off-by: Michael Walle <michael@walle.cc>
configure: rename OpenGL feature to GLX
As the probe now actually checks for the availability of GLX, rename itaccordingly. The only user of this feature is the milkymist-tmu2 model.
Merge remote-tracking branch 'riku/linux-user-for-upstream' into staging
Build the TPM frontend code
Build the TPM frontend code that has been added so far.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>Reviewed-by: Corey Bryant <coreyb@linux.vnet.ibm.com>Reviewed-by: Joel Schopp <jschopp@linux.vnet.ibm.com>Message-id: 1361987275-26289-5-git-send-email-stefanb@linux.vnet.ibm.com...
linux-user: Implement sendfile and sendfile64
Implement the sendfile and sendfile64 syscalls. This implementationpasses all the LTP test cases for these syscalls.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Reviewed-by: Richard Henderson <rth@twiddle.net>...
configure: Require at least spice-protocol-0.12.3
As of 5a49d3e9 we assume SPICE_PORT_EVENT_BREAK to be defined.However, it is defined not in 0.12.2 what we require now, but in0.12.3. Therefore in order to prevent build failure we mustadjust our minimal requirements....
configure: Create link to icon bitmap for out-of-tree builds
This allows to pick up the icon when starting QEMU directly from anout-of-tree build directory.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>Reviewed-by: Stefan Weil <sw@weilnetz.de>Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
iscsi: look for pkg-config file too
Due to library conflicts, Fedora will have to put libiscsi in/usr/lib/iscsi. Simplify configuration by using a pkg-configfile. The Fedora package will distribute one, and the patchto add it has been sent to upstream libiscsi as well....
Merge branch 'target-arm.next' of git://git.linaro.org/people/pmaydell/qemu-arm
mipsn32-linux-user: Configure the architecture properly
N32 is a 64-bit cpu with a 32-bit address space. We haveexisting cpp defines for this situation, but weren't using them.
This does mean that the linux-user/mipsn32 directory must bemerged with the linux-user/mips64 directory, and differences...
mips-linux-user: Enable mips64 and mipsn32 linux-user targets
At this point we can enable compilation, though thingsstill don't work.
Signed-off-by: Richard Henderson <rth@twiddle.net>Reviewed-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
configure: Enable KVM on ARM
Enable KVM on ARM hosts, now that all the necessary componentsfor it exist.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
build: always link device_tree.o into emulators if libfdt available
ppc: express FDT dependency of pSeries and e500 boards via default-configs/
show --disable-gtk and --enable-gtk in the help message
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>Message-id: 1361759268-16314-1-git-send-email-hutao@cn.fujitsu.comSigned-off-by: Anthony Liguori <aliguori@us.ibm.com>
Add support for enabling build with GTK3
Add a arg to configure to switch from GTK2 (default) toGTK3 (optional) build for QEMU.
./configure --with-gtkabi=3.0
will choose GTK3, while
./configure --with-gtkabi=2.0
will choose GTK2 (and remains the current default)...
ui/gtk: Support versions of VTE before 0.26
This is needed for current Debian stable (Squeeze).
VTE versions before 0.26 did not support VtePty.
Lower the version requirement and use alternate code which works for Debian.
Reenable -Wstrict-prototypes
One part of this patch reverts commit 22bc9a46, which disabled thewarning. The rest of it deals with the warning by adding a #pragma fornewer gcc and by disabling -Werror for compilers that can't deal withthe #pragma.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>...
ui/gtk: require at least GTK 2.18 and VTE 0.26
This gives us the bare amount of features we need. We can add work aroundsfor older versions and lower the requirement but this should be a goodstarting point.
Suggested-by: Daniel Berrange <berrange@redhat.com>...
build: disable Wstrict-prototypes
GTK won't build with strict-prototypes due to gtkitemfactory.h:
/* We use () here to mean unspecified arguments. This is deprecated * as of C99, but we can't change it without breaking compatibility. * (Note that if we are included from a C++ program () will mean...
ui: add basic GTK gui (v5)
This is minimalistic and just contains the basic widget infrastructure. The GUIconsists of a menu and a GtkNotebook. To start with, the notebook has its tabshidden which provides a UI that looks very similar to SDL with the exception of...
gtk: add translation support (v5)
This includes a de_DE translation from Kevin Wolf and an it translation fromPaolo Bonzini.
Cc: Paolo Bonzini <pbonzini@redhat.com>Cc: Kevin Wolf <kwolf@redhat.com>Cc: Stefan Hajnoczi <stefanha@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>...
usb-host: move legacy cmd line bits
The code handling the "-usbdevice host:..." legacy command linesyntax is moved to the new hw/usb/host-legacy.c file.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
host-utils: Use __int128_t for mul[us]64
Replace some x86_64 specific inline assembly with something thatall 64-bit hosts ought to optimize well. At worst this becomesa call to the gcc __multi3 routine, which is no worse than ourimplementation in util/host-utils.c....
configure: Fix build with XFree
The build is broken on ppc64-linux, possibly only with new binutils:
ld: hw/lm32/../milkymist-tmu2.o: undefined reference to symbol 'XFree'ld: note: 'XFree' is defined in DSO /lib64/libX11.so.6 so try \ adding it to the linker command line...
configure: Keep -Werror enabled for Release Candidates
The automatic drop of -Werror during the RC phases has in the past ledto warnings creeping into submaintainer trees.
Last QEMU Summit it was concluded that -Werror should stay on andenabled only as part of the release process....
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>
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
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
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