Statistics
| Branch: | Revision:

root / oslib-posix.c @ 992aeb8e

History | View | Annotate | Download (6 kB)

# Date Author Comment
9c17d615 12/19/2012 09:32 am Paolo Bonzini

softmmu: move include files to include/sysemu/

Signed-off-by: Paolo Bonzini <>

1de7afc9 12/19/2012 09:32 am Paolo Bonzini

misc: move include files to include/qemu/

Signed-off-by: Paolo Bonzini <>

22bfa75e 10/30/2012 10:30 am Paolo Bonzini

aio: clean up now-unused functions

Some cleanups can now be made, now that the main loop does not anymore need
hooks into the bottom half code.

Reviewed-by: Anthony Liguori <>
Signed-off-by: Paolo Bonzini <>

fdec9918 07/10/2012 07:27 pm Christian Borntraeger

s390: autodetect map private

By default qemu will use MAP_PRIVATE for guest pages. This will write
protect pages and thus break on s390 systems that dont support this feature.
Therefore qemu has a hack to always use MAP_SHARED for s390. But MAP_SHARED
has other problems (no dirty pages tracking, a lot more swap overhead etc.)...

71ea2e01 06/28/2012 11:28 pm Blue Swirl

bsd-user: fix build

Link in oslib objects also for BSD user, but avoid using the version of
qemu_vmalloc() defined in oslib-posix.c.

Signed-off-by: Blue Swirl <>

cbcfa041 12/22/2011 12:53 pm Paolo Bonzini

link the main loop and its dependencies into the tools

Using the main loop code from QEMU enables tools to operate fully
asynchronously. Advantages include better Windows portability (for some
definition of portability) over glib's.

Signed-off-by: Paolo Bonzini <>

ae0f940e 11/28/2011 07:36 pm Paolo Bonzini

9pfs: improve portability to older systems

Small requirements on "new" features have percolated to virtio-9p-local.c.
In particular, the utimensat wrapper actually only supports dirfd = AT_FDCWD
and flags = AT_SYMLINK_NOFOLLOW in the fallback code. Remove the arguments...

c2a8238a 11/01/2011 05:04 pm Stefan Weil

Support running QEMU on Valgrind

Valgrind is a tool which can automatically detect many kinds of bugs.

Running QEMU on Valgrind with x86_64 hosts was not possible because
Valgrind aborts when memalign is called with an alignment larger than
1 MiB. QEMU normally uses 2 MiB on Linux x86_64....

154b9a0c 10/21/2011 06:34 pm Paolo Bonzini

add socket_set_block

Cc: MORITA Kazutaka <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Kevin Wolf <>

36b58628 09/09/2011 08:58 pm Avi Kivity

qemu_vmalloc: align properly for transparent hugepages and KVM

To make good use of transparent hugepages, KVM requires that guest-physical
and host-virtual addresses share the low 21 bits (as opposed to just the low
12 bits normally required).

Adjust qemu_vmalloc() to honor that requirement. Ignore it for small regions...

c7f4111a 07/29/2011 05:33 pm Jes Sorensen

Add missing trace call to oslib-posix.c:qemu_vmalloc()

Acked-by: Stefan Hajnoczi <>
Signed-off-by: Jes Sorensen <>
Signed-off-by: Anthony Liguori <>

f97742d0 06/14/2011 04:10 am Alexandre Raymond

Darwin: Fix compilation warning regarding the deprecated daemon() function

Changes since v1: create a wrapper function named qemu_daemon() in oslib-posix.c
instead of putting the OS specific workaround in qemu-nbd.c directly.

On OSX >= 10.5, daemon() is deprecated, resulting in the following warning:...

38671423 12/03/2010 02:08 am Hidetoshi Seto

virtio-9p: fix build on !CONFIG_UTIMENSAT

This patch introduce a fallback mechanism for old systems that do not
support utimensat(). This fix build failure with following warnings:

hw/virtio-9p-local.c: In function 'local_utimensat':
hw/virtio-9p-local.c:479: warning: implicit declaration of function 'utimensat'...

b152aa84 10/30/2010 11:02 am Jes Sorensen

Consolidate oom_check() functions

This consolidates the duplicated oom_check() functions, as well as
splitting them into OS dependant versions to avoid the #ifdef
grossness that was present in the old osdep.c version.

Signed-off-by: Jes Sorensen <>...

70e72ce4 10/30/2010 11:02 am Jes Sorensen

qemu_pipe() is used only by POSIX code, so move to oslib-posix.c

Signed-off-by: Jes Sorensen <>
Signed-off-by: Blue Swirl <>

c1b0b93b 10/30/2010 11:02 am Jes Sorensen

Move QEMU OS dependant library functions to OS specific files

This moves library functions used by both QEMU and the QEMU tools,
such as qemu-img, qemu-nbd etc. from osdep.c to oslib-{posix,win32}.c

In addition it introduces oslib-obj.y to the Makefile set to be...

9549e764 10/30/2010 11:02 am Jes Sorensen

Move osdep socket code to oslib-{posix,win32}.c

Signed-off-by: Jes Sorensen <>
Signed-off-by: Blue Swirl <>