History | View | Annotate | Download (117 kB)
usb-host: raise libusbx minimum version to 1.0.13
Allows to remove one FIXME. Makes LIBUSB_LOG_LEVEL_WARNING build errorsgo away. And starting with that version libusb has a LIBUSBX_API_VERSIONdefine which allows to easily #ifdef version dependencies should that...
vhost-scsi: new device supporting the tcm_vhost Linux kernel module
The WWPN specified in configfs is passed to "-device vhost-scsi-pci".The tgpt field of the SET_ENDPOINT ioctl is obsolete now, so it is notavailable from the QEMU command-line. Instead, I hardcode it to zero....
configure: QEMU_INCLUDES are the same for all subtargets
Reviewed-by: Peter Maydell <peter.maydell@redhat.com>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
elfload: use abi_short/ushort instead of target_short/ushort
The alignment is a characteristic of the ABI, not the CPU.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
elfload: use abi_int/uint instead of target_int/uint
elfload: only give abi_long/ulong the alignment specified by the target
Previously, this was done for target_long/ulong, and propagated toabi_long/ulong via a typedef. But target_long/ulong should nothave any specific alignment, it is never used to access guest...
elfload: use abi_llong/ullong instead of target_llong/ullong
configure: move CONFIG_QEMU_LDST_OPTIMIZATION to config-host.mak
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
configure: move common libraries to config-host.mak
Move -lm to the end of the line, so that it can be picked up as adependency by pixman in the static build case.
Reviewed-by: Peter Maydell <peter.maydell@redhat.com>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>...
configure: eliminate target_libs_softmmu
configure: CONFIG_NO_XEN is duplicated
We already define it in Makefile.target. But we need to avoid acurious double negation in order to eliminate it.
Tested-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>Reviewed-by: Peter Maydell <peter.maydell@linaro.org>...
configure: remove duplicate test
We already had a test to add -march=i486 when needed. Make theexisting test independent of vhost-net, so that it is also usedunder Win32.
configure: Put cross compile flags in EXTRA_CFLAGS
The cross compile CFLAGS are needed to properly build pixman (and any othersubmodules). Only the EXTRA_CFLAGS set is passed to submodules not QEMU_CFLAGS,so put the cross compile flags in EXTRA_CFLAGS instead....
configure/Make: Build libfdt from submodule DTC
Configure to use the DTC submodule to build libfdt when no system libfdtis found. Prompt to install the DTC submodule if --enable-fdt is set butno DTC can be found.
DTC has no out-of-tree build capability, so the configure will symlink...
Fix warnings suppressors to honor --disable-werror
Replace
#pragma GCC diagnostic ignored FOO [Troublesome code...] #pragma GCC diagnostic error FOO
by
#pragma GCC diagnostic push #pragma GCC diagnostic ignored FOO [Troublesome code...]...
qtest: add libqos including PCI support
This includes basic PCI support for the PC platform. Enoughabstraction should be present to support non-PC platforms too.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>Message-id: 1366123521-4330-3-git-send-email-aliguori@us.ibm.com
use libusb for usb-host
Reimplement usb-host on top of libusb.Reasons to do this:
(1) Largely rewritten from scratch, nice opportunity to kill historical cruft. (2) Offload usbfs handling to libusb. (3) Have a single portable code base instead of bsd + linux variants....
Merge remote-tracking branch 'bonzini/hw-dirs' into staging
tcg-ppc64: Use getauxval for ISA detection
Glibc 2.16 includes an easy way to get feature bits previouslyburied in /proc or the program startup auxiliary vector. Use it.
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>Signed-off-by: Richard Henderson <rth@twiddle.net>
configure: fix TPM logic
A non-native i386 or x86_64 emulator should not have TPM passthroughsupport, since the TPM is only present for those hosts.
Reviewed-by: Andreas Färber <afaerber@suse.de>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Add linux-headers to QEMU_INCLUDES
virtio/dataplane/vring.c requires the Linux headers and is built for alltargets. So we need to add the corresponding include to QEMU_INCLUDES toavoid that outdated distribution headers are used.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>...
block: Add support for Secure Shell (ssh) block device.
qemu-system-x86_64 -drive file=ssh://hostname/some/image
QEMU will ssh into 'hostname' and open '/some/image' which is madeavailable as a standard block device.
You can specify a username (ssh://user@host/...) and/or a port number...
block: ssh: Use libssh2_sftp_fsync (if supported by libssh2) to flush to disk.
libssh2_sftp_fsync is an extension to libssh2 to support fsync(2) oversftp, which is itself an extension of OpenSSH.
If both libssh2 and the ssh daemon support it, this will allow...
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...
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.