History | View | Annotate | Download (97.9 kB)
Merge branch 'upstream' of git://qemu.weilnetz.de/qemu
arm: add device tree support
If compiled with CONFIG_FDT, allow user to specify a device tree file usingthe -dtb argument. If the machine supports it then the dtb will be loadedinto memory and passed to the kernel on boot.
Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>...
Merge remote-tracking branch 'spice/spice.v49' into staging
Merge remote-tracking branch 'kraxel/usb.39' into staging
Move definition of HOST_LONG_BITS to qemu-common.h
Like the related macro TCG_TARGET_LONG, HOST_LONG_BITS can be determinedby the C preprocessor. It is also not used in Makefiles.
So there is no need to calculate it in configure, and it can be definedin qemu-common.h....
Merge remote-tracking branch 'aneesh/for-upstream' into staging
usb-redir: Let the usb-host know about our device filtering
libusbredirparser-0.3.4 adds 2 new packets which allows us to notifythe usb-host:-about the usb device filter we have (if any), so that it knows not the even try to redirect certain devices-when we reject a device based on filtering (in case it tries anyways)...
libcacard: link with glib for g_strndup
Without it the produced library for make libcacard.la has an unresolvedsymbol.
Signed-off-by: Alon Levy <alevy@redhat.com>Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
qxl: require spice >= 0.8.2
drop all ifdefs on SPICE_INTERFACE_QXL_MINOR >= 1 as a result,any check for SPICE_SERVER_VERSION that is now always satisfied,and SPICE_INTERFACE_CORE_MINOR >= 3 tests, because0.8.2 has SPICE_INTERFACE_QXL_MINOR 1 andSPICE_INTERFACE_CORE_MINOR 3....
configure: Check whether makecontext() is a glibc stub function
On some systems (notably ARM Linux) glibc provides implementationsof makecontext(), getcontext() and friends which are stubs whichalways return failure. Make the configure test for makecontext()...
build: allow turning off debuginfo
This patch adds --{enable,disable}-debug-info switches to configurewhich allows to include/exclude the '-g' switch on the gcc & ldcommand lines. Not building debug info reduces ressource usage(especially disk) alot and is quite useful for test builds....
./configure: add option for disabling VirtFS
Signed-off-by: Meador Inge <meadori@codesourcery.com>Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
qemu-ga: fixes for win32 build of qemu-ga
Various stubs and #ifdefs to compile for Windows using mingwcross-build. Still has 1 linker error due to a dependency on theforthcoming win32 versions of the GAChannel/transport class.
libcacard configure fixes
libcacard is only used by system emulation.Only define libcacard_libs/cflags once.
Signed-off-by: Paul Brook <paul@codesourcery.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
configure: Remove OpenBSD workaround for curses probe
Remove the OpenBSD workaround for the curses probe. This has not beennecessary for 5 releases now.
Signed-off-by: Brad Smith <brad@comstyle.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
usb-redir: Add the posibility to filter out certain devices from redirecion
This patch adds the posibility to filter out certain devices from redirecion.To use this pass the filter property to -device usb-redir. The filterproperty takes a string consisting of filter rules, the format for a rule is:...
Add support for net bridge
The most common use of -net tap is to connect a tap device to a bridge. Thisrequires the use of a script and running qemu as root in order to allocate atap device to pass to the script.
This model is great for portability and flexibility but it's incredibly...
Add cap reduction support to enable use as SUID
The ideal way to use qemu-bridge-helper is to give it an fscap of using:
setcap cap_net_admin=ep qemu-bridge-helper
Unfortunately, most distros still do not have a mechanism to package fileswith fscaps applied. This means they'll have to SUID the qemu-bridge-helper...
Add basic version of bridge helper
This patch adds a helper that can be used to create a tap device attached toa bridge device. Since this helper is minimal in what it does, it can begiven CAP_NET_ADMIN which allows qemu to avoid running as root while still...
./configure: request pkg-config to provide private libs when static linking
Added wrapper around pkg-config to allow:- safe options injection via ${QEMU_PKG_CONFIG_FLAGS}- spaces in path to pkg-config
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>...
./configure: add link check for nss-smartcard
Current './configure --static && make' fails for me:
LINK qemu-nbd /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lssl3 /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lsmime3...
qom: add the base Object class (v2)
This class provides the main building block for QEMU Object Model and isextensively documented in the header file. It is largely inspired by GObject.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>---v1 -> v2...
./configure: export xfs config via --{enable, disable}-xfsctl
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
kvm: Move kvmclock into hw/kvm folder
More KVM-specific devices will come, so let's start with moving thekvmclock into a dedicated folder.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
configure: Modify detection of supported warning options
Reversing the order of the warning options and -Werror is importantwhen clang is used instead of gcc. It changes nothing for gcc.
Signed-off-by: Stefan Weil <sw@weilnetz.de>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
test: eliminate libcheck tests and have make check use gtester
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
check-qstring: convert to gtest
check-qlist: convert to gtest
check-qjson: convert to gtest
check-qdict: convert to gtest
check-qfloat: convert to gtest
check-qint: convert to gtest
tests: mv tests/* -> tests/tcg
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Merge remote-tracking branch 'stefanha/trivial-patches' into staging
Make python mandatory
The QEMU build depends on Python so make it an explicit requirement.
Reviewed-by: Stefan Weil <sw@weilnetz.de>Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
configure: CONFIG_QEMU_INTERP_PREFIX only for user mode
configure: Fix test for supported host CPU type
The test for whether the host CPU is supported had several problems: * the attempt to fall back to TCI was done as a duplicate test, very late (so "--cpu foo" would fail early but "--cpu unicore32" would fail late, differently, and after configure had already...
hw/9pfs: File system helper process for qemu 9p proxy FS
Provide root privilege access to QEMU 9p proxy filesystem using socketcommunication.
Proxy helper is started by root user as:~ # virtfs-proxy-helper -f|--fd <socket descriptor> -p|--path <path-to-share>...
configure: Fix compiler warning in config.log (value was never used)
configure: Fix compiler warnings in config.log (statement without effect)
configure: Improve Xen autodetection for hosts without Xen
With this patch, it only takes one test (instead of four)to detect that there is no Xen support at all.
For most build hosts, this will reduce the time configure needs.It will also reduce noisy output in config.log....
configure: Fix compiler warnings in config.log (always return a value from main)
Fix several "warning: control reaches end of non-void function".
configure: Fix compiler warnings in config.log (old-style function definition)
warning: function declaration isn’t a prototypeIn function ‘foo’:warning: old-style function definition
The function name was changed, too, to avoid an additional warning....
configure: Fix compiler warning in config.log (integer from pointer)
warning: return makes integer from pointer without a cast
v2: Removed type cast.
configure: Fix compiler warnings in config.log (null arguments)
warning: null argument where non-null required (argument 1)warning: null argument where non-null required (argument 3)
configure: Fix compiler warning in config.log (unused variable)
warning: unused variable ‘iov’
configure: Fix compiler warning in config.log (macro redefined)
warning: "_GNU_SOURCE" redefined
The macro is already defined on the command line.
configure: Fix compiler warnings in config.log (uninitialized variable)
warning: ‘fd’ is used uninitialized in this functionwarning: ‘id’ is used uninitialized in this function
configure: Fix compiler warning in config.log (undefined NULL)
Avoid the warning when probing for xfs.
Merge remote-tracking branch 'stefanha/trivial-patches-next' into staging
Merge remote-tracking branch 'qmp/queue/qmp' into staging
w32: QEMU applications with SDL are always GUI applications
Since commit 1d14ffa97eacd3cb722271eaf6f093038396eac4 (in 2005),QEMU applications on W32 don't use the default SDL compiler flags:
Instead of a GUI application, a console application is created....
configure: Enable build by default PIE / read-only relocation sections on OpenBSD amd64/i386.
Enable build by default PIE / read-only relocation sections for the QEMUbinaries on OpenBSD amd64/i386.
Signed-off-by: Brad Smith <brad@comstyle.com>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
configure: Don't mix glib and libcheck tests
test-coroutine is listed as a libcheck test in the 'checks' variable. Thisis not right because 'make check' won't run test-coroutine if libchecktests are not enabled (either because libcheck isn't detected or because...
Introduce test-qmp-output-visitor
Contains unit-tests for the QMP output visitor implementation.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Introduce test-qmp-input-visitor
Contains unit-tests for the QMP input visitor implementation.
configure: Print a banner comment at the top of config.log
Print a banner comment at the top of config.log identifyingwhen configure was run and the arguments used. This is occasionallyuseful for debugging purposes.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>...
configure: Pull linux-headers/asm symlink creation out of loop
Pull the creation of the linux-headers/asm symlink out of the loopso we don't pointlessly delete and recreate it once for each target.Also move the setting of the includes variable up so that it is...
configure: Include #define name in check_define compiler error
Include the name of the #define being tested for in the compilererror produced when a check_define test is run and fails. Thisappears only in the config.log, but it does make it a little easier...
configure: Drop armv4l/armv4b distinction in $cpu
Drop the distinction between armv4l/armv4b in the $cpu variable(ie host cpu type) in favour of calling everything 'arm'. Thismakes it the same as the ARCH setting and removes some specialcasing. The only thing we were using the distinction for was to...
configure: avoid screening of --{en, dis}able-usb-redir options
--*dir) option pattern precede --{en,dis}able-usb-redir) patterns in theoption analysis switch, making the latter options have no effect.
There were some --*dir that are supported by Autoconf and not by QEMU configure....
configure: tighten pie toolchain support test for tls variables
Some toolchains don't support pie properly when tls variables arein use. Disallow pie when such toolchains are detected.
Signed-off-by: Avi Kivity <avi@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
configure: build position independent executables on x86-Linux hosts
Change the default on x86 Linux hosts to building PIE (positionindependent executables); instead of restricting the option touser-only targets, apply it to all targets.
In addition, set the relocation sections to read-only (relro) when...
configure: check for EFD_NONBLOCK | EFD_CLOEXEC flags
Add check for the EFD_NONBLOCK and EFD_CLOEXEC flags to theCONFIG_EVENTFD test.This fixes the following build failure on Fedora 9:
CC event_notifier.o event_notifier.c: In function `event_notifier_init':...
configure: Do not use 'sed -i'
'sed -i' is not defined in POSIX. It doesn't work on Mac OS X the wayit's used in configure (without suffix argument). This patch implementsPeter Maydell's idea of xattr.h detection.
Cc: Peter Maydell <peter.maydell@linaro.org>...
configure: Show --cpu option on the help list
Signed-off-by: Chen Wen-Ren (陳韋任) <chenwj@iis.sinica.edu.tw>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
configure: fix detection for xattr.h on modern distributions
Modern distributions place xattr.h in /usr/include/sys, and foldlibattr.so into libc. They also don't have an ENOATTR.
Make configure detect this, and add a qemu-xattr.h file thatdirects the #include to the right place....
Merge branch 'tci' of git://qemu.weilnetz.de/qemu
configure: Suppress messages from pkg_config probe for check
Suppress confusing messages from pkg_config when probing for'check' by sending them to /dev/null as we do with othersimilar probes.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Revert "PPC: Fail configure when libfdt is not available"
This reverts commit f90a9d02401eeeec18a122b61ccccb91244f321c.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Merge branch 'ppc-next' of git://repo.or.cz/qemu/agraf
add test-coroutine to checks
There is a "test-coroutine" which isn't in the list.Add it so "make check" runs it too.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
move checks to separate variable
Create a new CHECKS variable. Put the checks there insteadof adding them to the TOOLS variable.
Probe for libcheck by default.
Probe for libcheck and build checks (if found) by default.Can be explicitly disabled using --disable-check-utests.
tcg: Add tcg interpreter to configure / make
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Merge remote-tracking branch 'kwolf/for-anthony' into staging
Conflicts: block/vmdk.c
configure: Update configure so that open_by_handle_at check returns correct value
According to David Gibson for some compiler/libc combinations, open_by_handle_attest in configure isn't quite right: because the file_handle pointer is neverdereferenced, gcc doesn't complain even if it is undefined. Change the test...
PPC: Fail configure when libfdt is not available
We have several targets in the PPC tree now that basically require libfdtto function properly, namely the pseries and the e500 targets. This dependencywill rather increase than decrease in the future, so I want to make sure...
PPC: Bump qemu-system-ppc to 64-bit physical address space
Some 32-bit PPC CPUs can use up to 36 bit of physical address space.Treat them accordingly in the qemu-system-ppc binary type.
Signed-off-by: Alexander Graf <agraf@suse.de>
iSCSI block driver
This provides built-in support for iSCSI to QEMU.
This has the advantage that the iSCSI devices need not be made visible to the host, which is useful if you have very many virtual machines and very many iscsi devices.It also has the benefit that non-root users of QEMU can access iSCSI devices across the network without requiring root privilege on the host....
hw/9pfs: Add st_gen support in getattr reply
This patch use file system specific ioctl for getting i_generationvalue. Not all file system support the ioctl. So we add an exportspecific extended operation and assign right callback for thefile system that support i_generation ioctl...
hw/9pfs: Fix build error on platform that don't support futimens
Also don't do glibc version check to find handle support. Insteaddo handle syscall support in configure.
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
target-alpha: Add custom PALcode image for CLIPPER emulation.
Signed-off-by: Richard Henderson <rth@twiddle.net>
PPC: Add new target config for pseries
We only support -M pseries when certain prerequisites are met, suchas a PPC64 guest and libfdt. To only gather these requirements ina single place, this patch introduces a new CONFIG_PSERIES variablethat gets set when all prerequisites are met....
configure: Detect predefined compiler symbols for ARM and HPPA
To be able to detect some ARM / HPPA based architectures such as withOpenBSD/(armish / zaurus) or OpenBSD/hppa.
Fix and clean code which tests the gcc version
The code which tests whether gcc supports warn_unused_result was wrong.Remove the wrong test from configure and replace it by code usingmacro QEMU_GNUC_PREREQ in compiler.h.
Signed-off-by: Stefan Weil <weil@mail.berlios.de>...
build: fix race with creating qapi-generated
Since qapi-generated/ is a global QEMU include path, we need to makesure it is created before anything is compiled, so do this in theconfigure phase rather than via the Makefile.
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>...
configure: Make missing pkg-config an error rather than a warning
If pkg-config doesn't exist then make configure fail immediatelywith a useful error message. Now that glib is a required dependency,proceeding despite the missing pkg-config will just cause us to...
Revert "alpha-softmmu: Disable for the 0.15 release branch."
This reverts commit 46f08792bb4a69ab8aab897c174d82b006026140.
This was not supposed to be applied to mainline.
Signed-off-by: Richard Henderson <rth@twiddle.net>Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
build: Move tracing objects into libuser on usermode emulation targets
This will apply libuser-specific compilation flags (like the ones added by--enable-user-pie), but keep softmmu emulation targets "as-is".
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>...
target-xtensa: add target to the configure script
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
configure: Avoid duplicate flags when calling compile_prog
This patch removes redundant shell code and cleans it a little bit.
Shell macro compile_prog takes two arguments:local_cflags and local ldflags.
$QEMU_CFLAGS is added automatically to the cflags, so there is no need...
configure: Remove relicts from --enable-io-thread
Commit 12d4536f7d911b6d87a766ad7300482ea663cea2 removedconfigure option --enable-io-thread.
Remove help message which is now no longer valid.
Cc: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Stefan Weil <weil@mail.berlios.de>...
configure: Copy test data to build directory
The QDict unit-tests (check-qdict) will fail when ran on a differentbuild directory. That's, it only works when ran on the source dir.
This happens because its data file (qdict-test-data.txt) is notcopied to the build dir. Fix it....
Allow overriding the location of Samba's smbd.
Pretty much every OS I look at has some means ofchanging this path (patching) so lets just makeit easier for OS developers creating packagesand/or end users to override the location....
main: force enabling of I/O thread
Enabling the I/O thread by default seems like an important part of declaring1.0. Besides allowing true SMP support with KVM, the I/O thread means that theTCG VCPU doesn't have to multiplex itself with the I/O dispatch routines which...
Fix install(1) usage to be compatible with OpenBSD's install(1).
When creating a directory via the -d flag the -p flag cannot beused at the same time. Also in the context of installing QEMU it...
trace: fix out-of-tree builds
Reported-by: Lluis Vilanova <vilanova@ac.upc.edu>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
trace: [stderr] add support for dynamically enabling/disabling events
Uses the generic interface provided in "trace/control.h" in order to providea programmatic interface as well as command line and monitor controls.
Signed-off-by: Fabien Chouteau <chouteau@adacore.com>...
trace: avoid conditional code compilation during option parsing
A default implementation for backend-specific routines is provided in"trace/default.c", which backends can override by setting "trace_default=no" in"configure".
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>