History | View | Annotate | Download (80.4 kB)
Revert "Add support for generating a systemtap tapset static probes"
This reverts commit 2834c3e0140c3b0ed4422909dfa0607b7213d95d.
Conflicts:
Makefile.target
Revert "Add a DTrace tracing backend targetted for SystemTAP compatability"
This reverts commit 4addb1127f6327c7ebcbd150a6b589e7677adc92.
Add a DTrace tracing backend targetted for SystemTAP compatability
This introduces a new tracing backend that targets the SystemTAPimplementation of DTrace userspace tracing. The core functionalityshould be applicable and standard across any DTrace implementation...
Add support for generating a systemtap tapset static probes
This introduces generation of a qemu.stp/qemu-system-XXX.stpfiles which provides tapsets with friendly names for staticprobes & their arguments. Instead of
probe process("qemu").mark("qemu_malloc") {...
Add Intel HD Audio support to qemu.
This patch adds three devices to qemu:
intel-hda Intel HD Audio Controller, the PCI device. Provides a HDA bus. Emulates ICH6 at the moment. Adding a ICH9 PCIE variant shouldn't be hard.
hda-duplex HDA Codec. Attaches to the HDA bus. Supports 16bit stereo,...
rewrite i386 tests Makefile
1) compute path to i386 compiler from configure. If it is found, runthe i386 tests. I use macros so that this approach could be appliedfor other arches as well.
2) provide an easily extensible way to add tests
Most tests fail, but at least "make test" does something meaningful....
unbreak "make" from tests directory
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
signalfd compatibility
Port qemu-kvm's signalfd compat code.
commit 5a7fdd0abd7cd24dac205317a4195446ab8748b5Author: Anthony Liguori <aliguori@us.ibm.com>Date: Wed May 7 11:55:47 2008 -0500
Use signalfd() in io-thread
This patch reworks the IO thread to use signalfd() instead of sigtimedwait()...
configure: Support disabling warnings in $gcc_flags
-Wall enables a bunch of warnings at once. configure puts it after$gcc_flags. This makes it impossible to disable warnings enabled by-Wall there. Fix by putting configured flags last.
Signed-off-by: Markus Armbruster <armbru@redhat.com>...
ppc: remove video.x
Only Mac-on-Linux stuff used video.x, OpenBIOS does not need it.
Remove video.x MoL hacks.
Signed-off-by: Alexander Graf <agraf@suse.de>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
configure: Send error message from spice check to /dev/null
pkg-config is not always available (e.g. on win32 hosts),but we don't want to see the 'command not found' error message.
Redirect stdout and stderr to /dev/null.
v2:
configure: Remove unneeded defines from checks
_GNU_SOURCE is already defined in QEMU_CFLAGS whichis passed to gcc in shell function compile_prog.
Removing the definition from several checks avoids compiler warnings(which are now written to config.log)....
configure: include stddef.h for NULL
This fixes an observed failure to detect madvise() on Linux.
To avoid similar issues, all other tests that use NULL but don't alreadyhave stddef.h (or another header that is defined to provide NULL,such as stdio.h, unistd.h, or time.h) are also fixed....
Merge remote branch 'spice/submit.6' into staging
Conflicts: configure
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
configure: Don't rely on special pthreads library
Haiku has pthreads integrated into its libroot.so library. No linker argumentsare needed for it, so don't fail if -lpthread and similar don't link.
Signed-off-by: Andreas Färber <andreas.faerber@web.de>...
configure: Add basic support for Haiku
For compatibility with BeOS, Haiku's error codes are negative whereas recentPOSIX versions require them to be positive. As spotted by François, someparts of QEMU code rely on this, so use a mapper library to convert them...
mingw: add version information to the executables
Add QEMU version information to the executables, based on earlierwork by C. W. Betts and Robert Riebisch.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Avoid exit in trap as it breaks with some shells
Don't call exit in the trap handler as it causes the return code to bezero with some buggy shells (dash and pdksh at least) and is uselesshere anyway.
Signed-off-by: Loïc Minier <loic.minier@linaro.org>...
Introduce qemu_madvise()
vl.c has a Sun-specific hack to supply a prototype for madvise(),but the call site has apparently moved to arch_init.c.
Haiku doesn't implement madvise() in favor of posix_madvise().OpenBSD and Solaris 10 don't implement posix_madvise() but madvise()....
add spice into the configure file
configure: add logging
Write compile commands and messages to config.log.Useful for debugging configure.
mingw: use ASLR, no-SEH and DEP if available
If the linker supports the flags --dynamicbase, --no-seh,or --nxcompat, use them.
Tested on Windows Vista: Process Explorer reports that ASLR and DEPare in use. No effect seen on Wine or Windows XP.
Use gcc warning flag -Wnested-externs
If the compiler supports the warning flag -Wnested-externs, use it.
Avoid the only warning by moving the declaration of xml_builtin to amore proper place.
Use gcc warning flag -Wempty-body
If the compiler supports the warning flag -Wempty-body, use it.
Adjust the code to avoid the warnings.
Use a few more gcc warning flags
If the compiler supports the following warning flags, use them:
-Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers-Wmissing-include-dirs
Currently, these flags don't produce any warnings.
Use gcc warning flag -Wtype-limits
If the compiler supports the warning flag -Wtype-limits, use it.
trace: Add trace-events file for declaring trace events
This patch introduces the trace-events file where trace events can bedeclared like so:
qemu_malloc(size_t size) "size %zu" qemu_free(void *ptr) "ptr %p"
These trace event declarations are processed by a new tool called...
trace: Add simple built-in tracing backend
This patch adds a simple tracer which produces binary trace files. Totry out the simple backend:
$ ./configure --trace-backend=simple$ make
After running QEMU you can pretty-print the trace:
$ ./simpletrace.py trace-events trace.log...
trace: Support for dynamically enabling/disabling trace events
This patch adds support for dynamically enabling/disabling of trace events.This is done by internally maintaining each trace event's state, andpermitting logging of data from a trace event only if it is in an...
trace: Specify trace file name
Allow users to specify a file for trace-outputs at configuration.Also, allow trace files to be annotated by <pid> so each qemu instance hasunique traces.
The trace file name can be passed as a config option:--trace-file=/path/to/file...
trace: Add LTTng Userspace Tracer backend
This patch adds LTTng Userspace Tracer (UST) backend support. The USTsystem requires no kernel support but libust and liburcu must beinstalled.
$ ./configure --trace-backend ust$ make
Start the UST daemon:$ ustd &...
Fix "make install" with a cross toolchain
We must be able to use a non-native strip executable, but not allversions of 'install' support the --strip-program option (e.g.OpenBSD). Accordingly, we can't use 'install -s', and we must run stripseparately....
vnc: tight add PNG encoding
Introduce a new encoding: VNC_ENCODING_TIGHT_PNG [1] (-269) with a newtight filter VNC_TIGHT_PNG (0x0A). When the client tells it supports the Tight PNGencoding, the server will use tight, but will always send encoding pixels using...
vnc: threaded VNC server
Implement a threaded VNC server using the producer-consumer model.The main thread will push encoding jobs (a list a rectangles to update)in a queue, and the VNC worker thread will consume that queue and sendframebuffer updates to the output buffer....
vnc: better default values for VNC options
vnc_jpeg and vnc_png are now "auto" by default, this means thatif the dependencies are installed (libjpeg or libpng), then theywill be enabled.
vnc_thread is disabled by default. It should be enabled by default...
ui: move all ui components in ui/
Move sdl, vnc, curses and cocoa UI into ui/ to cleanupthe root directory. Also remove some unnecessary explicittargets from Makefile.
aliguori: fix build when srcdir != objdir
Signed-off-by: Corentin Chary <corentincj@iksaif.net>...
vnc: tight: add JPEG and gradient subencoding with smooth image detection
Add gradient filter and JPEG compression with an heuristic to detect howlossy the comppression will be. This code has been adapted fromlibvncserver/tight.c.
JPEG support can be enabled/disabled at compile time with --enable-vnc-jpeg...
tcg-s390: new TCG Target
Original patch from Ulrich Hecht, further work from Alexander Grafand Richard Henderson.
Cc: Ulrich Hecht <uli@suse.de>Cc: Alexander Graf <agraf@suse.de>Signed-off-by: Richard Henderson <rth@twiddle.net>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
virtio-9p: Make infrastructure for the new security model.
This patch adds required infrastructure for the new security model.
- A new configure option for attr/xattr.- if CONFIG_VIRTFS will be defined if both CONFIG_LINUX and CONFIG_ATTR defined.- Defines routines related to both security models....
tcg-s390: correctly detect s390 with a 64-bit kernel
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
tcg-s390: Adjust compilation flags.
Force -m31/-m64 based on s390/s390x target.
Force -march=z990. The TCG backend will always require thelong-displacement facility, so the compiler may as well makeuse of that as well.
Signed-off-by: Richard Henderson <rth@twiddle.net>...
s390x: Don't use a linker script for user-only.
The default placement of the application at 0x80000000 is fine,and will avoid the default placement for most other guests.
Signed-off-by: Richard Henderson <rth@twiddle.net>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
tcg-i386: Merge 64-bit generation.
configure: display sysconfdir in summary
configure: ignore unknown --xyzdir options
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
configure: move directory defaults earlier
Unify with existing special-purpose configure code for win32.
move computation of tools and roms outside of config-host.mak generation
rename CONFIG_QEMU_PREFIX
configure: unify handling of xyzdir variables
Making an xyzdir variable for each directory prepares for the nextpatches introducing config-host.h defines and configure options for them.It also fixes the problem where overriding prefix at "make install"...
configure: move all directory entries in config-host.mak close
configure: expand ${prefix} in create_config
configure: introduce more --xyzdir options
configure: bail out early on invalid -cpu option
It would fail later anyway.
configure: avoid using expr
Just a personal preference against duplicating hieroglyphics.
configure: dyngen is long time gone
configure: introduce sysconfsuffix
configure: introduce confdir and confsuffix
confsuffix was write-only, flesh it out.
configure: remove some bashisms
Fix --enable-user-pie compilation.
We forgot to propagate -fpie to the libdis-user directory.
Signed-off-by: Richard Henderson <rth@twiddle.net>Acked-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
QMP: Introduce commands documentation
One of the most important missing feature in QMP today is itssupported commands documentation.
The plan is to make it part of self-description support, howeverself-description is a big task we have been postponing for a...
Fix cross compilation
This patch enhances the algorithm which finds the correct settings for SDL.For cross compilations (when cross_prefix is set), it looks for sdl-configwith cross prefix. Here is the complete search order:
$(cross_prefix}pkg-config (old, only used for cross compilation)...
Avoid libaio for usermode
Linux AIO is aonly used by system emulation, so should not be linked intothe userspace emulatior.
Signed-off-by: Paul Brook <paul@codesourcery.com>
virtio-9p: Create a commandline option -fsdev
This patch creates a new command line option named -fsdev to hold any filesystem specific information.
The option will currently hold the following attributes:-fsdev fstype id=id,path=path_to_sharewherefstype: Type of the file system....
target-alpha: Enable NPTL.
linux-user: Remove ELFLOAD32.
The ABI-specific types used by linux_binprm and image_infoare different after forcing TARGET_ABI32 on. Which meansthat the parameters that load_elf_binary_multi sees are notthose that loader_exec passed. This is inherently broken...
Use correct cflags for kvm-kmod when cross compiling
Using $pkgconfig instead of pkg-config will use${cross_prefix}pkg-config if that is available.
This fix is needed for cross compilations withoutmodified PATH. Without the fix, PATH must be modifiedto find the cross pkg-config before the native...
tcg-hppa: Finish the port.
Delete inline functions from tcg-target.h that don't need to be there,move the others to tcg-target.c. Add 'Z', 'I', 'J' constraints for0, signed 11-bit, and signed 5-bit respectively. Add GUEST_BASE supportsimilar to ppc64, with the value stored in a register. Add missing...
Split TLB addend and target_phys_addr_t
Historically the qemu tlb "addend" field was used for both RAM and IO accesses,so needed to be able to hold both host addresses (unsigned long) and guestphysical addresses (target_phys_addr_t). However since the introduction of...
ia64 disas support
Taken from binutils SVN, using last GPLv2 version.
tcg: initial ia64 support
vhost: vhost net support
This adds vhost net device support in qemu. Will be tied to tap deviceand virtio by following patches. Raw backend is currently missing,will be worked on/submitted separately.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>...
Get bsd-user host page protection code working on FreeBSD hosts
Use kinfo_getvmmap(3) on FeeBSD >= 7.x and /compat/linux/proc on olderFreeBSD. (kinfo_getvmmap is preferred since /compat/linux/proc isusually only mounted on hosts also using the Linuxolator.)...
tcg-mips: add guest base support
linux-user: add inotify_init1 syscall support
New syscall which gets actively used when you have afresh kernel.
Signed-off-by: Riku Voipio <riku.voipio@nokia.com>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Compile most IDE devices only once
Compile disassemblers only once
configure: fix --sysconfdir specification
--sysconfdir requires a parameter (the path), this should be reflectedin the case pattern.
Reported-by: Frank Arnold <frank.arnold@amd.com>Signed-off-by: Andre Przywara <andre.przywara@amd.com>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Remove userspace target_phys_addr_t
TARGET_PHYS_ADDR_BITS isn't meaningful for userspace emulation, so don'tdefine it.
configure: Fix wrong stderr redirection
Signed-off-by: Stefan Weil <weil@mail.berlios.de>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
configure: Fix code which creates config.mak files
These files are created by configure and growunnecessarily at each new call of configure:
roms/seabios/config.makroms/vgabios/config.maklibhw32/config.maklibhw64/config.mak
libhw32/config.mak and libhw64/config.mak set...
Documentation: Modify rule for html output (better looking output format)
To create html output from texi input, texi2html was used.Output from makeinfo looks cleaner, so replace the old ruleand use makeinfo now.
For those who want to use their own variant of html output,...
mingw32: Enable C99/POSIX format strings
Starting with mingw32-runtime 3.15, C99/POSIXformat strings (%zu, %lld, ...) are supportedby defining __USE_MINGW_ANSI_STDIO=1.
As QEMU uses such format strings, unconditionallydefine this macro. It won't hurt on older revisions...
Monitor: Debugging support
Add configure options (--enable-debug-mon and --disable-debug-mon)plus the MON_DEBUG() macro.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
configure: fix the static compilation for sdl
The static compilation for sdl is broken after79427693174a553d62f3da44aacd3f19ba8df3a7.
Signed-off-by: TeLeMan <geleman@gmail.com>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
configure: Add --enable-docs and --disable-docs to --help
This patch adds the documentation-related options "--enable-docs" and"--disable-docs" to the help message of "configure".
Signed-off-by: Dirk Ullrich <dirk.ullrich@googlemail.com>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Add -static earlier to LDFLAGS for compile_prog()
Add -static to LDFLAGS earlier as to run the compile_prog() tests withthis flags, this will avoid turning on features for which a sharedlibrary is available but not a static one.
Signed-off-by: Loïc Minier <lool@dooz.org>...
configure: remove debugging code introduced in aa527b65d8187b97d73f889b6cae7b6ac6f82d32
configure: fix compilation on hosts without -fstack-protector-all
Commit a0f291fc101a7ab3e40850a329da2cc2f2cd1f2d has enabled-fstack-protector-all on all targets, as the configure test is bogus.GCC only emits a warning and not an error if this option is not...
Solaris: test for presence of commands with has()
Signed-off-by: Loïc Minier <lool@dooz.org>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Add and use has() and path_of() funcs
Add has() and path_of() funcs and use them across configure; has()will test whether a command or builtin is available; path_of() willsearch the PATH for executables and return the full pathname if found.
Signed-off-by: Loïc Minier <lool@dooz.org...
Check for sdl-config before calling it
Check whether sdl-config is available before calling it, otherwise./configure triggers a warning: ./configure: 957: sdl-config: not found
If neither the .pc file not sdl-config are present, disable SDL support....
Enable _FORTIFY_SOURCE=2
_FORTIFY_SOURCE is a Glibc feature which adds memory and string functionprotection.
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>Signed-off-by: Juan Quintela <quintela@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Check availavility of -fstack-protector-all
Signed-off-by: Juan Quintela <quintela@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Support --sysconfdir in configure to specify path to configuration files
The default value is ${prefix}/etc/qemu. --sysconfdir can be used to overridethe default to an absolute path. The expectation is that when installed to/usr, --sysconfdir=/etc/qemu will be used....
use cross-prefix for pkgconfig
Since pkgconfig can give different output for different targets,it should be tried with the cross-compilation prefix first.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
fixes to the static compilation case for sdl
After the next commit, pkg-config could be used for the shared libraryconfiguration case and sdl-config for static libraries. So I preparethe test here by doing two changes:
at the same time I remove useless backslashes from the invocation of...
use pkg-config for sdl whenever available
Together with the first patch this enables using the prefixedpkg-config, thus picking up the correct flags for SDL.
use pkg-config for libcurl whenever available