History | View | Annotate | Download (100.8 kB)
target-i386: Add API to write elf notes to core file
The core file contains register's value. These APIs write registers tocore file, and them will be called in the following patch.
Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
implement cpu_get_memory_mapping()
Walk cpu's page table and collect all virtual address and physical address mapping.Then, add these mapping into memory mapping list. If the guest does not use paging,it will do nothing. Note: the I/O memory will be skipped....
configure: check if environ is declared
Some systems may declare environ automatically, others don't. Check for it.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
configure: Use QEMU instead of Qemu
This new 'Qemu' was recently added.Replace it by the official all upper case 'QEMU'.
Reviewed-by: Andreas Färber <afaerber@suse.de>Signed-off-by: Stefan Weil <sw@weilnetz.de>
configure: Reindent VirtFS check
Avoid tab-indention and fit in with the surrounding code.
Signed-off-by: Andreas Färber <afaerber@suse.de>Cc: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
configure: Assure printing "yes" or "no" for VirtFS support
When auto-detecting VirtFS support, virtfs="". Set it to "no" afterchecking whether it was explicitly requested through --enable-virtfs.
Signed-off-by: Andreas Färber <afaerber@suse.de>Cc: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>...
Merge remote-tracking branch 'bonzini/scsi-next' into staging
ISCSI: Add support for thin-provisioning via discard/UNMAP and bigger LUNs
Update the configure test for libiscsi support to detect version 1.3or later. Version 1.3 of libiscsi provides both READCAPACITY16 as wellas UNMAP commands.
Update the iscsi block layer to use READCAPACITY16 to detect the size of...
spice: require spice-protocol >= 0.8.1
Requiring spice-server >= 0.8.2 is not enough since spice-server.pcdoesn't require spice-protocol (any version). Until that is fixedupstream an explicit requirement in qemu fixes compilation broken since
commit 2e1a98c9c1b90ca093278c6b43244dc46604d7b7...
Merge remote-tracking branch 'stefanha/tracing' into staging
Merge remote-tracking branch 'stefanha/trivial-patches' into staging
configure: check for supported Python 2.x versions
The tracetool code requires Python 2.4, which was released in 2004.Check for a supported Python version so we can give a clear errormessage.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>...
configure: Add libraries for qemu-ga on Solaris
Move socket-related Solaris libraries to $solarisnetlibs and use themfor both $LIBS and $libs_qga.
Fixes build on illumos without --disable-guest-agent.
Signed-off-by: Lee Essen <lee.essen@nowonline.co.uk>...
configure: Fix creation of symbolic links for MinGW toolchain
The MinGW toolchain on w32/w64 hosts does not create symbolic links,but implements 'ln -s' similar to 'cp -r'.
In incremental out of tree builds, this resulted in files whichwere not updated when their counterparts in the QEMU source tree...
configure: add '--disable-cocoa' switch
When SDL support is disabled, there is no way to build QEMU withoutCocoa support on MacOS X. This patch adds '--disable-cocoa' switch andallows to build QEMU without both SDL and Cocoa frontends.
Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>...
Drop darwin-user
It's been orphaned, not compiling for a long time and despite Apple'sdrop of their Rosetta ppc emulation technology with Mac OS X Lion no onehas stepped up to fix it.
Testing necessary changes wrt QOM'ification thus is impossible, so we...
configure: Don't build bsd-user on Mac OS X by default
Fixes the build when combined with the drop of darwin-user.Enthusiasts can still try building it using --enable-bsd-user.
Signed-off-by: Andreas Färber <andreas.faerber@web.de>Cc: Bernhard Walle <bernhard@bwalle.de>...
Revert "configure: Virtfs doesn't require libcap."
This reverts commit d10f9056bacf7991fd6a5f63ac2e0190e84ea3a7 due to a buildbreakage.
See http://spunk.home.kraxel.org/bb/builders/ubuntu-default/builds/52
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
config-host.mak: reorder variables a bit
Cosmetic change.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
configure: change meaning of --datadir to Autoconf convention
Autoconf uses --datadir for the /usr/share directory, not theprogram-specific subdirectory inside /usr/share. This changes configureto match autoconf behavior.
Note that this will break compatibility with existing build scripts....
configure: add --with-confsuffix option
This will allow the user to make Qemu use a different subdirectory nameinside $datadir and $sysconfdir, instead of "/qemu".
configure: Virtfs doesn't require libcap.
Only proxy helper does.
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Kusanagi Kouichi <slash@ac.auone-net.jp>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Remove extra pthread switch
remove the extra pthread switch which might be there from the package config check for gthreads.
Signed-off-by: Peter Portante <peter.portante@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
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.
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
config-host.mak: remove CONFIG_QEMU_SHAREDIR
There is no code using that variable according to 'git grep', so killit.
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>
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
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....