Statistics
| Branch: | Revision:

root / configure @ 023367e6

History | View | Annotate | Download (90.4 kB)

# Date Author Comment
023367e6 07/27/2011 10:58 am Wolfgang Mauerer

vhost build fix for i386

vhost.c uses __sync_fetch_and_and(), which is only
available for -march=i486 and above (see
https://bugzilla.redhat.com/show_bug.cgi?id=624279).

Signed-off-by: Wolfgang Mauerer <>
Signed-off-by: Stefan Hajnoczi <>

c886edfb 07/25/2011 07:50 pm Blue Swirl

Let users select their pythons

Add configure check for python, exit if not found. Add switches
for specifying the path to python, use the path in Makefile.

Signed-off-by: Blue Swirl <>

1fc7bd4a 07/24/2011 02:24 am Anthony Liguori

qemu-ga: remove dependency on gio and gthread

As far as I can tell, there isn't a dependency on gthread. Also, the only use
of gio was to enable GSocket to accept a unix domain socket.

Since GSocket isn't available on OpenSuSE 11.1, let's just remove that...

44129530 07/22/2011 05:23 pm Anthony Liguori

Merge remote-tracking branch 'qmp/for-anthony' into staging

69354a83 07/22/2011 02:36 pm Hans de Goede

USB: add usb network redirection support

This patch adds support for a usb-redir device, which takes a chardev
as a communication channel to an actual usbdevice using the usbredir protocol.

Compiling the usb-redir device requires usbredir-0.3 to be installed for...

13a286d5 07/21/2011 10:48 pm Michael Roth

guest agent: command state class

Signed-off-by: Michael Roth <>
Signed-off-by: Luiz Capitulino <>

48ff7a62 07/21/2011 10:48 pm Michael Roth

guest agent: qemu-ga daemon

This is the actual guest daemon, it listens for requests over a
virtio-serial/isa-serial/unix socket channel and routes them through
to dispatch routines, and writes the results back to the channel in
a manner similar to QMP.
...

e18df141 07/21/2011 10:48 pm Anthony Liguori

Add hard build dependency on glib

GLib is an extremely common library that has a portable thread implementation
along with tons of other goodies.

GLib and GObject have a fantastic amount of infrastructure we can leverage in
QEMU including an object oriented programming infrastructure....

2345c77c 07/21/2011 10:48 pm Michael Roth

qapi: add QAPI visitor core

Base definitions/includes for Visiter interface used by generated
visiter/marshalling code.

Includes a GenericList type. Our lists require an embedded element.
Since these types are generated, if you want to use them in a different...

6dbd588a 07/17/2011 02:54 am Jan Kiszka

xen: Clean up build system

Introduce CONFIG_XEN_BACKEND so that this new config solely controls the
target-independent backend build and CONFIG_XEN can focus on per-target
building.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Alexander Graf <>

bb820c03 06/27/2011 07:25 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/trivial-patches' into staging

af2be207 06/26/2011 08:35 pm Jan Kiszka

Fix fallouts from Linux header inclusion

This is an all-in-one fix for the smaller and bigger mistakes of the
build system changes for accompanied Linux headers:
- only enable KVM and vhost on Linux hosts
- fix powerpc asm header symlink
- do not use Linux headers on non-Linux hosts...

20fa53ec 06/24/2011 05:36 pm Marc-Antoine Perennou

qemu-kvm: fix pulseaudio detection in configure

pulse/simple.h does not include stdlib.h
We cannot use NULL since it may not be defined
Use 0 instead

Signed-off-by: Marc-Antoine Perennou <>
Reviewed-by: Peter Maydell <>...

f9245e10 06/24/2011 11:13 am Peter Maydell

configure: Don't create symlinks to nonexistent targets

When we create the symlinks to source tree files, don't create them
if the file is not actually present in the source tree; this will
happen if the file is in a git submodule that wasn't checked out....

d6034a3a 06/22/2011 03:13 pm Anthony Liguori

Merge remote-tracking branch 'qemu-kvm/uq/master' into staging

0bed3bba 06/20/2011 09:17 pm Jan Kiszka

kvm: ppc: Drop CONFIG_KVM_PPC_PVR

Required header support is now unconditionally available.

CC: Alexander Graf <>
Signed-off-by: Jan Kiszka <>
Reviewed-by: Alexander Graf <>
Signed-off-by: Marcelo Tosatti <>

5802e066 06/20/2011 09:16 pm Jan Kiszka

kvm: Drop CONFIG_KVM_PARA

The kvm_para.h header is now always available.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Marcelo Tosatti <>

e205c790 06/20/2011 09:16 pm Jan Kiszka

Switch build system to accompanied kernel headers

This helps reducing our build-time checks for feature support in the
available Linux kernel headers. And it helps users that do not have
sufficiently recent headers installed on their build machine.

Consequently, the patch removes and build-time checks for kvm and vhost...

b87de24e 06/19/2011 05:40 am Anthony PERARD

xen: Add xc_domain_add_to_physmap to xen_interface.

This function will be used to support sync dirty bitmap.

This come with a check against every Xen release, and special
implementation for Xen version that doesn't have this specific call.

This function will not be usable with Xen 3.3 because the behavior is...

953ffe0f 06/15/2011 10:58 pm Andreas Färber

Introduce format string for pid_t

BeOS and Haiku on i386 use long for 32-bit types, including pid_t.
Using %d with pid_t therefore results in a warning.

Unfortunately POSIX:2008 does not define a PRId* string for pid_t.

In some places pid_t was previously casted to long and %ld hardcoded....

22e1e729 06/15/2011 09:31 pm Blue Swirl

Merge branch 'cocoa-for-upstream' of git://repo.or.cz/qemu/afaerber

  • 'cocoa-for-upstream' of git://repo.or.cz/qemu/afaerber:
    Darwin: Fix compilation warning regarding the deprecated daemon() function
    cocoa: Avoid warning related to multiple handleEvent: definitions...
3aa5d2be 06/14/2011 05:34 pm Alon Levy

configure: add libdir and --libdir

44dc0ca3 06/14/2011 05:34 pm Alon Levy

libcacard: add libcacard.la target

No flag to configure is required. Instead, added a libcacard.la target that
is not built by default, only when requested explicitly via:

mkdir build
cd build
../configure
make libcacard.la
make install-libcacard

Uses libtool to do actual linking of object files and shared library, and...

d1722a27 06/14/2011 04:08 am Alexandre Raymond

configure: Fix check for fdatasync()

Under Darwin, a symbol exists for the fdatasync() function, so that our
link test succeeds. However _POSIX_SYNCHRONIZED_IO is set to '-1'.

According to POSIX:2008, a value of -1 means the feature is not supported.
A value of 0 means supported at compilation time, and a value greater 0...

0b862ced 06/13/2011 10:16 pm Peter Maydell

configure: Detect and don't try to use older libcurl

Older versions of libcurl don't have some of the features we try to
use, in particular curl_multi_setopt(). Check for this in the 'is
libcurl available?' configure test so we disable curl support if the...

44829396 06/10/2011 11:21 pm Edgar E. Iglesias

Merge remote branch 'rth/axp-next' into alpha-merge

  • rth/axp-next: (26 commits)
    target-alpha: Implement TLB flush primitives.
    target-alpha: Use a fixed frequency for the RPCC in system mode.
    target-alpha: Trap for unassigned and unaligned addresses....
ac779fe2 06/08/2011 08:15 pm Anthony Liguori

Merge remote-tracking branch 'spice/spice.v37' into staging

Conflicts:
vl.c

ad32e9c0 06/08/2011 12:56 pm Josh Durgin

rbd: use the higher level librbd instead of just librados

librbd stacks on top of librados to provide access
to rbd images.

Using librbd simplifies the qemu code, and allows
qemu to use new versions of the rbd format
with few (if any) changes.

Reviewed-by: Christian Brunner <>...

012b80d3 06/06/2011 10:14 am Gerd Hoffmann

spice: require spice 0.6.0 or newer.

This patch raises the minimum required spice version to 0.6.0 and drops
a few ifdefs.

0.6.0 is the first stable release with the current libspice-server API,
there shouldn't be any 0.5.x development versions deployed any more....

f9188227 06/04/2011 12:50 am Mike Frysinger

configure: check for -Wendif-labels support

Older gcc compilers do not support -Wendif-labels, so move it from the
hardcoded list to the dynamically detected list.

Signed-off-by: Mike Frysinger <>
Reviewed-by: Stefan Hajnoczi <>...

cf67c6ba 06/03/2011 05:07 pm Aurelien Jarno

softfloat-native: remove

Remove softfloat-native support, all targets are now using softfloat
instead.

Reviewed-by: Peter Maydell <>
Signed-off-by: Aurelien Jarno <>

b758aca1 05/31/2011 08:18 pm Richard Henderson

target-alpha: Enable the alpha-softmmu target.

With all of the pre-existing code that would not compile gone,
this is the earliest point at which the target can be enabled.

There is no machine defined yet, so this will crash on startup.
Enable the target anyway, to make sure that further compilation...

6093d3d4 05/24/2011 12:36 am Peter Maydell

configure: Document --disable-slirp option in --help

The --disable-slirp option was undocumented; add it to configure's
--help output.

Signed-off-by: Peter Maydell <>
Signed-off-by: Aurelien Jarno <>

0f3301d4 05/20/2011 06:35 pm Alexander Graf

s390x: build s390x by default

This patch enables building of s390x-softmmu and s390x-linux-user
targets by default.

Signed-off-by: Alexander Graf <>

60e0df25 05/15/2011 02:02 am Peter Maydell

configure: List available targets in --help output

Include the list of available targets in the --help output
for the --target-list= option.

Signed-off-by: Peter Maydell <>
Acked-by: Stefan Weil <>
Signed-off-by: Aurelien Jarno <>

7dd31902 05/15/2011 01:35 am Aurelien Jarno

configure: quote kvm_ppc_pvr

091959de 05/14/2011 05:54 pm Aurelien Jarno

Merge branch 'ppc-next' of git://repo.or.cz/qemu/agraf

  • 'ppc-next' of git://repo.or.cz/qemu/agraf:
    PPC: Qdev'ify e500 pci
    PPC MPC7544DS: Use new TLB helper function
    PPC: Implement e500 (FSL) MMU
    PPC: Add another 64 bits to instruction feature mask...
64e07be5 05/09/2011 11:31 pm Alexander Graf

kvm: ppc: detect old headers

When compiling Qemu with older kernel headers, the PVR setting
mechanism isn't available yet. Unfortunately, back then I didn't add
a capability we could check against, so all we can do is add a configure
test to see if we support PVR setting. For BookE, we don't care yet....

446b9165 05/09/2011 11:31 pm Andreas Färber

ppc64: Fix out-of-tree builds

On ppc64 host, recursion into pc-bios/spapr-rtas/ fails for
out-of-tree builds. Add missing dir and symlink.

Cc: David Gibson <>
Cc: Alexander Graf <>
Signed-off-by: Andreas Färber <>...

d0384d1d 05/09/2011 11:31 pm Andreas Färber

ppc64: Don't try to build sPAPR RTAS on Darwin

The Darwin assembler fails to build it.

Cc: David Gibson <>
Cc: Alexander Graf <>
Signed-off-by: Andreas Färber <>
Signed-off-by: Alexander Graf <>

432d268c 05/08/2011 11:10 am Jun Nakajima

xen: Introduce the Xen mapcache

On IA32 host or IA32 PAE host, at present, generally, we can't create
an HVM guest with more than 2G memory, because generally it's almost
impossible for Qemu to find a large enough and consecutive virtual
address space to map an HVM guest's whole physical address space....

64b3cfdb 05/08/2011 11:10 am Anthony PERARD

configure: Always use 64bits target physical addresses with xen enabled.

With MapCache, we can handle a 64b target, even with a 32b host/qemu.
So, we need to have target_phys_addr_t to 64bits.

Signed-off-by: Anthony PERARD <>
Acked-by: Alexander Graf <>...

d5b93ddf 05/08/2011 11:09 am Anthony PERARD

xen: Support new libxc calls from xen unstable.

This patch updates the libxenctrl calls in Qemu to use the new interface,
otherwise Qemu wouldn't be able to build against new versions of the
library.

We check libxenctrl version in configure, from Xen 3.3.0 to Xen...

353ac78d 04/27/2011 06:24 pm Aneesh Kumar K.V

virtio-9p: move 9p files around

Now that we start adding more files related to 9pfs
it make sense to move them to a separate directory

Signed-off-by: Aneesh Kumar K.V <>
Signed-off-by: Venkateswararao Jujjuri <>

430a3c18 04/27/2011 12:26 am Michael Walle

configure: reenable opengl by default

Because the opengl library is only linked to for the lm32 target, we can
now safely enable opengl by default again.

Signed-off-by: Michael Walle <>
Signed-off-by: Aurelien Jarno <>

de3a354a 04/27/2011 12:26 am Michael Walle

configure: support target dependent linking

This patch is the first attempt to make configure more intelligent with
regard to how it links to libraries. It divides the softmmu libraries into
two lists, a general one and a list which depends on the target...

19e83f6b 04/26/2011 09:48 pm Peter Maydell

configure: Make epoll_create1 test work around SPARC glibc bug

Work around a SPARC glibc bug which caused the epoll_create1 configure
test to wrongly claim that the function was present. Some versions of
SPARC glibc provided the function in the library but didn't declare...

dbf352ad 04/25/2011 06:26 pm Anthony Liguori

Merge remote-tracking branch 'awilliam/ipxe' into staging

347ac8e3 04/25/2011 12:18 pm Aurelien Jarno

target-i386: switch to softfloat

This increase the correctness (precision, NaN values, corner cases) on
non-x86 machines, and add the possibility to handle the exception
correctly.

Reviewed-by: Peter Maydell <>
Signed-off-by: Aurelien Jarno <>

5ee8ad71 04/18/2011 08:46 pm Alex Williamson

PXE: Use consistent naming for PXE ROMs

And add missing ROMs to tarbin build target.

Signed-off-by: Alex Williamson <>

f50ee4e0 04/12/2011 10:51 pm Michael Walle

configure: disable opengl per default

There is a bug in nvidia's binary GPU driver, which causes a segmentation
fault if linked to libGL.

Signed-off-by: Michael Walle <>
Signed-off-by: Aurelien Jarno <>

d2fbca94 04/12/2011 09:49 pm Guan Xuetao

unicore32: necessary modifications for other files to support unicore32

Signed-off-by: Guan Xuetao <>
Signed-off-by: Blue Swirl <>

7b3da903 04/10/2011 10:23 pm Alexander Graf

s390x: set alignment for long to 8

The alignment for longs on s390x is 8. That's the only place where it differs
from the default alignments found in configure already. The example alignment
program from Laurent printed the following on a real s390x:

alignof(short) 2...
29e5bada 04/09/2011 12:57 pm Scott Wood

configure: avoid basename usage message

basename prints a missing-argument error when sdlconfig is empty
and we're cross-compiling.

Signed-off-by: Scott Wood <>
Signed-off-by: Stefan Hajnoczi <>

99123e13 04/07/2011 11:50 am Mike Frysinger

configure: add --version flag

Standard autoconf scripts include a --version flag so people can easily
query things. Add this to qemu's configure so it too can integrate with
build systems that have standard autotool helpers.

Signed-off-by: Mike Frysinger <>...

25a8bb96 04/04/2011 11:26 am Michael Walle

lm32: add Milkymist AC97 support

This patch adds support for the Milkymist AC97 compatible sound output and
input core.

Signed-off-by: Michael Walle <>
Signed-off-by: Edgar E. Iglesias <>

20ff075b 04/04/2011 11:26 am Michael Walle

configure: add opengl detection

This patch introduce a new config option CONFIG_OPENGL.

Signed-off-by: Michael Walle <>
Signed-off-by: Edgar E. Iglesias <>

bc434676 04/04/2011 01:34 am Ulrich Hecht

s390x: Enable nptl for s390x

S390x user emulation can do nptl. Reflect this in the configure script.

Signed-off-by: Ulrich Hecht <>
Signed-off-by: Aurelien Jarno <>

36707144 04/02/2011 03:07 am Alon Levy

usb-ccid: add CCID bus

A CCID device is a smart card reader. It is a USB device, defined at [1].
This patch introduces the usb-ccid device that is a ccid bus. Next patches will
introduce two card types to use it, a passthru card and an emulated card.

[1] http://www.usb.org/developers/devclass_docs/DWG_Smart-Card_CCID_Rev110....
111a38b0 04/02/2011 03:07 am Robert Relyea

libcacard: initial commit

libcacard emulates a Common Access Card (CAC) which is a standard
for smartcards. It is used by the emulated ccid card introduced in
a following patch. Docs are available in docs/libcacard.txt

Signed-off-by: Alon Levy <>...

39ac8455 04/01/2011 07:34 pm David Gibson

Implement hcall based RTAS for pSeries machines

On pSeries machines, operating systems can instantiate "RTAS" (Run-Time
Abstraction Services), a runtime component of the firmware which implements
a number of low-level, infrequently used operations. On logical partitions...

821601ea 03/22/2011 03:39 pm Jes Sorensen

Make VNC support optional

Per default VNC is enabled.

Signed-off-by: Jes Sorensen <>
Signed-off-by: Anthony Liguori <>

adf82011 03/22/2011 08:33 am René Rebe

enable kvm for ppc(32) on ppc64

ppc64 is backward compatible, likewise.

Signed-off-by: René Rebe <>
Acked-by: Alexander Graf <>
Signed-off-by: Aurelien Jarno <>

cc4e8741 03/21/2011 10:27 pm Aurelien Jarno

rbd: don't link with -lcrypto

rbd support tries to both link with -lrados and -lcrypto. While the
first one is of course necessary, the second is not necessary (only
librados ifself needs to link with libcrypto).

This fixes a licensing issue: qemu as a whole is GPL v2, and thus can't...

38a42e7c 03/13/2011 04:44 pm Paolo Bonzini

remove CONFIG_THREAD

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

613a22c9 03/07/2011 02:42 pm Michael Walle

Add lm32 target to configure

Signed-off-by: Michael Walle <>
Signed-off-by: Edgar E. Iglesias <>

e095e2f3 03/06/2011 09:22 pm Stefan Weil

w32: Add support for curses

MinGW optionally includes pdcurses, so add support for it.

Signed-off-by: Stefan Weil <>
Signed-off-by: Aurelien Jarno <>

877fdc12 02/23/2011 01:31 pm Edgar E. Iglesias

microblaze: Allow targeting little-endian mb

Signed-off-by: Edgar E. Iglesias <>

08f3896a 02/20/2011 10:18 pm Stefan Weil

w32: Use additional library libiberty.a

libiberty.a is part of MinGW and provides useful functions
like ffs (MinGW) and getopt (MinGW-w64).

It is needed for w64 compilations and allows simpler code for w32.

Cc: Anthony Liguori <>
Signed-off-by: Stefan Weil <>...

71deff27 02/20/2011 04:13 pm Aurelien Jarno

target-i386: set target_phys_bits to 64

qemu i386 used to support more than 4GB of RAM through PAE, but it has
been disabled for an unknown reason. Reenable it.

Note that simply running qemu x86_64 and emulating a 32-bit CPU is not
a solution to this problem as it is about 15% slower (it needs to...

3b6edd16 02/17/2011 11:46 am Peter Maydell

linux-user: Support the epoll syscalls

Support the epoll family of syscalls: epoll_create(), epoll_create1(),
epoll_ctl(), epoll_wait() and epoll_pwait(). Note that epoll_create1()
and epoll_pwait() are later additions, so we have to test separately
in configure for their presence....

c2e3dee6 02/17/2011 11:46 am Laurent Vivier

linux-user: Define target alignment size

Datatype alignment can be found using following application:

int main(void) {
printf("alignof(short) %ld\n", alignof(short));
printf("alignof(int) %ld\n", alignof(int));
printf("alignof(long) %ld\n", alignof(long));...

de758970 02/14/2011 04:39 pm Jan Kiszka

kvm: Fix race between timer signals and vcpu entry under !IOTHREAD

Found by Stefan Hajnoczi: There is a race in kvm_cpu_exec between
checking for exit_request on vcpu entry and timer signals arriving
before KVM starts to catch them. Plug it by blocking both timer related...

b3a98367 02/01/2011 11:32 pm Anthony Liguori

Merge remote branch 'qemu-kvm/uq/master' into staging

aliguori: fix build with !defined(KVM_CAP_ASYNC_PF)

Signed-off-by: Anthony Liguori <>

9363ee31 02/01/2011 11:22 pm Anthony Liguori

Merge remote branch 'spice/spice.v29.pull' into staging

Conflicts:
trace-events

320fba2a 01/30/2011 12:52 am Fabien Chouteau

New trace-event backend: stderr

This backend sends trace events to standard error output during the emulation.

Also add a "--list-backends" option to tracetool, so configure script can
display the list of available backends.

Signed-off-by: Fabien Chouteau <>...

710fc4f5 01/24/2011 04:41 pm Jiri Denemark

configure: Fix spice probe

Non-existent $pkgconfig instead of $pkg_config was used when configure
probes for spice availability.

Signed-off-by: Jiri Denemark <>

94a8d39a 01/23/2011 06:27 am Jan Kiszka

kvm: Consolidate must-have capability checks

Instead of splattering the code with #ifdefs and runtime checks for
capabilities we cannot work without anyway, provide central test
infrastructure for verifying their availability both at build and
runtime.

Signed-off-by: Jan Kiszka <>...

276ce815 01/21/2011 06:05 pm Lai Jiangshan

kvm: Enable user space NMI injection for kvm guest

Make use of the new KVM_NMI IOCTL to send NMIs into the KVM guest if the
user space raised them. (example: qemu monitor's "nmi" command)

Signed-off-by: Lai Jiangshan <>
Acked-by: Jan Kiszka <>...

4c3b5a48 01/20/2011 10:54 pm Blue Swirl

Add scripts directory

Move build and user scripts into scripts directory.

Signed-off-by: Blue Swirl <>

eb8f7776 01/14/2011 09:39 pm Aurelien Jarno

target-sh4: switch sh4 to softfloat

We need to be able to catch exceptions correctly and thus enable softfloat
on SH4.

As all machines except i386 and x86_64 are using softfloat, make it the
default and change the case to detect i386 and x86_64. Note that CRIS...

eae30c8f 01/14/2011 09:21 pm Aurelien Jarno

configure: fix broken test

Since commit d1807a4f836c27f6dc7061e53a834dd27f78e46a ./configure tries
to test files and directories with "test -f", which only test for regular
files. Test with "test -e", which looks for any kind of files.

This unbreak the configure script when not using a separate object...

08421541 01/14/2011 06:11 pm Paolo Bonzini

do not default to non-prefixed pkg-config when cross compiling

This can still be requested with PKG_CONFIG=/path/to/pkg-config.
Just do not use it as a default, and print a warning.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

3ec87ffe 01/14/2011 06:11 pm Paolo Bonzini

reorganize sdl-config tests

This also allows overriding it with SDL_CONFIG, and warning in suspicious
cross-compilation scenarios.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

11568d6d 01/14/2011 06:11 pm Paolo Bonzini

move "ln -sf" emulation to a function

"ln -sf" does not really do anything more than "ln -s" on Solaris.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

d1807a4f 01/14/2011 06:11 pm Paolo Bonzini

remove source_path_used

Not necessary since we use mkdir -p and from this patch test -f.

Also, dirname returns "." if a path has no directory component,
as is the case for "sh configure".

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

ddc09664 01/14/2011 06:11 pm Paolo Bonzini

[PATCH v3 14/15] remove HOST_CC mention from roms/{sea, vga}bios/config.mak

Not used in the submodules.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

ca4deeb1 01/14/2011 06:11 pm Paolo Bonzini

move --srcdir detection earlier

This will help getting config.guess and config.sub from the srcdir.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

74242e0f 01/14/2011 06:11 pm Paolo Bonzini

make trace options use autoconfy names

These are not in any release, so I am just renaming them.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

8d05095c 01/14/2011 06:11 pm Paolo Bonzini

test cc with the complete set of chosen flags

The "test the C compiler works ok" comes before a bunch of flags
are added for --cpu or just depending on the host. It helps
debugging if the test is done after these flags are (unconditionally)
added.

Signed-off-by: Paolo Bonzini <>...

f9728943 01/14/2011 06:11 pm Paolo Bonzini

do not pass bogus $(SRC_PATH) include paths to cc during configure

Non-existent -I paths are dropped silently by the compiler, but still
it is not polite to pass bogus options. Configure-time tests do not
need any include files from the source path, so only include -I flags...

70be1a2e 01/14/2011 06:11 pm Paolo Bonzini

provide portable HOST_LONG_BITS test

Do not hardcode the list of 64-bit CPUs. Use sizeof(void *) to
compute it. Renaming it to HOST_LONG_BITS to HOST_POINTER_BITS
is left for later.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

a8bd70ad 01/14/2011 06:11 pm Paolo Bonzini

fix spelling of $pkg_config, move default together with other cross tools

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

3d8df640 01/14/2011 06:11 pm Paolo Bonzini

default compilation tools to environment variables

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

0db4a067 01/14/2011 06:11 pm Paolo Bonzini

default make and install to environment variables

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

377529c0 01/14/2011 06:11 pm Paolo Bonzini

move feature variables to the top

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

e39f0062 01/14/2011 06:11 pm Paolo Bonzini

fix sparse support (?)

I didn't test with sparse, but the old code using += before a variable
was set was wrong. Sparse support should probably be ripped out or
redone, but this at least keeps some sanity.

Signed-off-by: Paolo Bonzini <>...

dace20dc 01/12/2011 01:06 am Peter Maydell

linux-user: Add configure check for linux/fiemap.h and IOC_FS_FIEMAP

Add a configure check for the existence of linux/fiemap.h and the
IOC_FS_FIEMAP ioctl. This fixes a compilation failure on Linux
systems which don't have that header file.

Signed-off-by: Peter Maydell <>...

c727f47d 01/07/2011 05:13 pm Peter Maydell

linux-user: Implement sync_file_range{,2} syscalls

Implement the missing syscalls sync_file_range and sync_file_range2.
The latter in particular is used by newer versions of apt on Ubuntu
for ARM.

Signed-off-by: Peter Maydell <>
Signed-off-by: Riku Voipio <>

dce512de 12/17/2010 05:11 pm Christoph Hellwig

raw-posix: add discard support

Add support to discard blocks in a raw image residing on an XFS filesystem
by calling the XFS_IOC_UNRESVSP64 ioctl to punch holes. Support for other
hole punching mechanisms can be added when they become available.

Signed-off-by: Christoph Hellwig <>...