History | View | Annotate | Download (100.3 kB)
configure: rename $datadir to $qemu_datadir
The variable is used for the qemu-specific directory and has a differentmeaning of the autoconf "datadir" variable (that's used for the$prefix/share directory, not for $prefix/share/PACKAGE).
This doesn't change behavior or interfaces, it's just an internal...
configure: rename $docdir to $qemu_docdir
The autoconf "docdir" variable is used for the program-specificsubdirectory, but anyway it's better to make it clear that the variableis used for the qemu-specific subdirectory path.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>...
configure: rename $confdir to $qemu_confdir
There's no "confdir" variable on Autoconf, but it's good to make itclear that it's a variable for the Qemu-specific subdirectory inside$sysconfdir.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
config-host.mak: rename datadir to qemu_datadir
Autoconf concept of "datadir" is supposed to be "$prefix/share", not"$prefix/share/PACKAGE", so using datadir for the Qemu-specificdirectory is confusing.
The current C code that uses CONFIG_QEMU_DATADIR should be safe, as now...
config-host.mak: rename confdir to qemu_confdir
$confdir is a confusing name, as it's not clear if it's "the systemconfig dir" or "the Qemus-specific directory inside the config dir".$qemu_confdir makes it more clear.
The current C code that uses CONFIG_QEMU_CONFDIR should be safe, as now...
config-host.mak: rename docdir to qemu_docdir
Merge remote-tracking branch 'sstabellini/build_fix' into staging
tracetool: Rewrite infrastructure as python modules
The tracetool script is written in shell and has hit several portabilityproblems due to shell quirks or external tools across host platforms.Additionally the amount of string processing and lack of real data...
xen,configure: detect Xen 4.2
Xen 4.2 is the first to support xc_hvm_inject_msi: use it to determineif we are running on it.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>Acked-by: Anthony PERARD <anthony.perard@citrix.com>
configure: pa_simple is not needed anymore
Signed-off-by: Marc-Andr? Lureau <marcandre.lureau@redhat.com>Signed-off-by: malc <av1474@comtv.ru>
configure: Insist on a Python 2, not Python 3
Our Python scripts require Python 2 and will fail on Python 3, eg: File "/home/petmay01/linaro/qemu-from-laptop/qemu/scripts/qapi-commands.py", line 378 except getopt.GetoptError, err: ^...
configure: Remove useless uses of ARCH_CFLAGS
Remove some useless uses of ARCH_CFLAGS -- this variable was never setso will always be empty. The uses were accidental: in commit 0c439cbf8Juan Quintela removed ARCH_CFLAGS in favour of CFLAGS (which in turn...
configure: Fix wrong preprocessor statement
#abort is not a preprocessor statement. It aborts, but the preprocessorstatement #error is more common to abort a compilation.
Signed-off-by: Stefan Weil <sw@weilnetz.de>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Merge remote-tracking branch 'stefanha/trivial-patches' into staging
Replace Qemu by QEMU in w32 installation path (prefix)
The official spelling is QEMU.
Signed-off-by: Stefan Weil <sw@weilnetz.de>Reviewed-by: Andreas Färber <afaerber@suse.de>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
configure: require glib 2.12, 2.20 for mingw32
These are pretty sane requirements to move forward with glib usage.2.12 is the version found in RHEL/CentOS 5, and 2.20 is thefirst version to support g_poll. Without g_poll, we cannotintegrate well with the glib main loop....
configure: Link qga against UST tracing related libraries
Signed-off-by: Harsh Prateek Bora <harsh@linux.vnet.ibm.com>Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
configure: Link QEMU against 'liburcu-bp'
This library is needed when using 'ust/tracepoint.h'.
configure: fix mingw32 libs_qga typo
It's typical to prepend or append parameters to an argument string sothat other places in ./configure can add parameters without clobberingthe string. In the mingw32 libs_qga case there is a typo "$lib_qga" instead of "$libs_qga"....
target-lm32: add simple disassembler
Because binutils disassembler is based on libopcode, this is a rewrite fromscratch.
Signed-off-by: Michael Walle <michael@walle.cc>
tests: fix out-of-tree building for lm32 target
buildfix: check for old pod2man versions
Older pod2man don't have a --utf8 switch, check for this in conffigureand use it only when present. Fixes build on RHEL-5.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Fix conversion from lower to upper case with Turkish locale
Some locale settings let make fail or create wrong resultsbecause tr '[:lower:]' '[:upper:]' which is used to convertfrom lower to upper case depends on the locale.
With locale tr_TR.UTF-8, lower case 'i' is not converted to 'I'....
target-alpha: Move memory helpers to mem_helper.c.
This completes the transition away from AREG0. This patch mustbe last because it requires CONFIG_TCG_PASS_AREG0 set too.
Signed-off-by: Richard Henderson <rth@twiddle.net>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Sparc: avoid AREG0 wrappers for memory access helpers
Adjust generation of load and store templates so that the functionstake a parameter for CPUState instead of relying on global env.
Remove wrappers. Move remaining memory helpers to ldst_helper.c.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
qom: Introduce CPU class
Reintroduce CPUState as QOM object: It's abstract and derived directlyfrom TYPE_OBJECT for compatibility with the user emulators.The identifier CPUState avoids conflicts between CPU and the struct.
Introduce $(qom-twice-y) to build it separately for system and for user...
usb: the big rename
Reorganize usb source files. Create a new hw/usb/ directory and moveall usb source code to that place. Also make filenames a bit moredescriptive. Host adapters are prefixed with "hch-" now, usb deviceemulations are prefixed with "dev-". Fixup paths Makefile and include...
Merge remote-tracking branch 'mdroth/qga-pull-3-12-2012' into staging
qemu-ga: add win32 guest-suspend-disk command.
Implement guest-suspend-disk RPC for Windows. Functionally this should beequivalent to the posix implementation.
Signed-off-by: Gal Hammer <ghammer@redhat.com>
coroutine: adding configure choose mechanism for coroutine backend
Configure tries, as a default, ucontext functions for thecoroutines. But now the user can force another backend by--with-coroutine=BACKEND option
v2: Using --with-coroutine=BACKEND instead of enable...
coroutine: adding configure option for sigaltstack coroutine backend
It's possible to use sigaltstack backend with --with-coroutine=sigaltstack
v2: changed from enable/disable configure flags
Signed-off-by: Alex Barcelo <abarcelo@ac.upc.edu>Signed-off-by: Kevin Wolf <kwolf@redhat.com>
configure: Test for libiberty.a (mingw32)
MinGW-w64 and some versions of MinGW32 don't provide libiberty.a,so add this library only if it was found.
Signed-off-by: Stefan Weil <sw@weilnetz.de>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
osdep: Remove local definition of macro offsetof
The macro offsetof is defined in stddef.h. It is conforming tothe standards C89, C99 and POSIX.1-2001 (see man page), so itis a sufficiently old standard.
Therefore chances are very high that QEMU never needs a local...
configure: Quote the configure args printed in config.log
Use the same mechanism we use for printing the configure commandline to config-host.mak to print it to config.log. This fixes abug where the config.log version didn't quote arguments with spaces....
Spelling fixes in comments (it's -> its)
Reviewed-by: Andreas Färber <afaerber@suse.de>Signed-off-by: Stefan Weil <sw@weilnetz.de>...
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.
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>
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>...