History | View | Annotate | Download (96.5 kB)
./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: [configure] rename CONFIG_*_TRACE into CONFIG_TRACE_*
Provides a more hierarchical view of the variable domain.
Also adds the CONFIG_TRACE_* variables for all backends.
[Stefan added missing 'test' in stap if statement]
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>
Improvements to libtool support.
Improvements to the libtool support in QEMU. Replace hard codedlibtool in the infrastructure with $(LIBTOOL) and allowoverriding the libtool binary used via the configurescript.
Reviewed-by: Andreas F=E4rber <andreas.faerber@web.de>...
guest agent: remove uneeded dependencies
This patch tries to cull any uneeded library dependencies from the guestagent to improve portability across various distros. We do so by beingas explicit as possible about in-tree dependencies rather than relying...
Check for presence of compiler -pthread flag.
OpenBSD / FreeBSD and some other OS's require the use ofcc -pthread to link threaded programs so have QEMU'sconfigure script check for the presence of the flagand use it if so.
Signed-off-by: Brad Smith <brad@comstyle.com>...
Make glib mandatory and fixup utils appropriately
configure: Disable guest_agent for mingw32
guest_agent is not supported for mingw32, so the default valueshould be 'no', not 'yes'.
This removes the dependencies to glib-2.0 and python whichmakes native and cross builds for w32 much easier (no needto get and install these extra packages)....
coroutine: add gthread dependency
Commit 1fc7bd4a86a2bfeafcec29445871eb97469a2699 removed the gthread andgio dependency since qemu-ga did not require it. Coroutines requiregthread, so add it back in.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
when overriding default tool names don't add cross-prefix
When overriding a tool name via a shell variable, don'ttack on the cross-prefix. This specifically allows thepkg-config command to be overridden and work where itdoes not exist in some cross build environments....
configure: Fix bad shell expression for non-Linux hosts
With vhost_net="" (most non-Linux hosts), configure prints anerror message:
test: 2551: =: unexpected operator
Fix this and similar code by adding the missing "".
Cc: Wolfgang Mauerer <wolfgang.mauerer@siemens.com>...
alpha-softmmu: Disable for the 0.15 release branch.
The system emulation code was not merged before the branch.Let's leave that work for the next release.
Signed-off-by: Richard Henderson <rth@twiddle.net>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Add support for finding libpng via pkg-config.
Signed-off-by: Brad Smith <brad@comstyle.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
guest agent: add --enable-guest-agent config option
QAPI will require glib/python, but for now the guest agent is the onlyuser. For now, make these dependencies an explicit guest agent one, andgive users the option to disable it if need be.
Once QAPI is adopted in core QEMU code, we would basically revert this...
configure: display "no" for disabled kvm/vhost-net
Fix configure display for non-Linux OS's and the KVM /vhost-net features to show "no" output instead of nothingat the end of the line.
Signed-off-by: Brad Smith <brad@comstyle.com>Acked-by: Jan Kiszka <jan.kiszka@siemens.com>...
coroutine: implement coroutines using gthread
On platforms that don't support makecontext(3) use gthread basedcoroutine implementation.
Darwin has makecontext(3) but getcontext(3) is stubbed out to returnENOTSUP. Andreas Färber <andreas.faerber@web.de> debugged this and...
Merge remote-tracking branch 'alon/pull-libcacard.afe' into staging
Merge remote-tracking branch 'agraf/xen-next' into staging