Blue Swirl
de5071c551
Fix a Sparse warning about redefinition of offsetof()
...
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2009-09-12 09:58:46 +00:00
Juan Quintela
f0d99ad711
move useful type definitons to osdep.h
...
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-08-27 20:30:20 -05:00
Blue Swirl
636aa20056
Replace always_inline with inline
...
We define inline as always_inline.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2009-08-16 09:06:54 +00:00
aliguori
f7b4a940a4
snapshot subcommand for qemu-img (Kevin Wolf)
...
Add snapshot subcommand to qemu-img which allows to list, create, apply
and delete snapshots on qcow2 images.
Signed-off-by: Kevin Wolf <kwolf@suse.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6215 c046a42c-6fe2-441c-8c8c-71466251a162
2009-01-07 17:40:15 +00:00
balrog
80fe30ed34
Fix a typo preventing GNUC builtins usage.
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5842 c046a42c-6fe2-441c-8c8c-71466251a162
2008-12-01 01:53:55 +00:00
pbrook
3dec6ecd31
Only force inlining when optimizing.
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5751 c046a42c-6fe2-441c-8c8c-71466251a162
2008-11-19 01:31:52 +00:00
aliguori
c2b48b69cb
Fix -linux-user build by reverting r5701
...
Unfortunately, -linux-user doesn't use osdep as it replaces some of those
functions with specific ones. The code #ifdef code in exec.c needs to
remain in place so instead of introducing a qemu_getpagesize() let's just
use getpagesize() in the non-Windows implementation of qemu_vmalloc.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5703 c046a42c-6fe2-441c-8c8c-71466251a162
2008-11-11 22:06:42 +00:00
aliguori
15ed71bae2
Define OS-dependent qemu_getpagesize() (Hollis Blanchard)
...
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5701 c046a42c-6fe2-441c-8c8c-71466251a162
2008-11-11 21:48:59 +00:00
aurel32
bad5b1ec8e
Define macro QEMU_GNUC_PREREQ and use it
...
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5467 c046a42c-6fe2-441c-8c8c-71466251a162
2008-10-12 16:15:04 +00:00
balrog
ac509d8887
Move offsetof to osdep.h, remove local defintions.
...
With this container_of can actually be used without causing build errors.
Reformat container_of.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5234 c046a42c-6fe2-441c-8c8c-71466251a162
2008-09-16 13:36:57 +00:00
aliguori
62a6e3e19a
add container_of() macro to osdep.h (Gerd Hoffmann)
...
From linux kernel sources, xen bits will use it, put it
into a place where others can see and use it too ;)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5057 c046a42c-6fe2-441c-8c8c-71466251a162
2008-08-21 20:11:11 +00:00
blueswir1
128ab2ff50
Preliminary OpenBSD host support (based on OpenBSD patches by Todd T. Fries)
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5012 c046a42c-6fe2-441c-8c8c-71466251a162
2008-08-15 18:33:42 +00:00
ths
cebdff772d
Fix always_inline definition for Darwin, by Andreas Faerber.
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4674 c046a42c-6fe2-441c-8c8c-71466251a162
2008-06-05 22:55:54 +00:00
aurel32
ca10f86763
Remove osdep.c/qemu-img code duplication
...
(Kevin Wolf)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4191 c046a42c-6fe2-441c-8c8c-71466251a162
2008-04-11 21:35:42 +00:00
blueswir1
0954d0d9e2
Remove blank elements in tcg_target_reg_alloc_order[] (Stuart Brady)
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4039 c046a42c-6fe2-441c-8c8c-71466251a162
2008-03-11 21:01:02 +00:00
bellard
d656469f44
use simpler REGPARM convention - make CPUTLBEntry size a power of two
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3935 c046a42c-6fe2-441c-8c8c-71466251a162
2008-01-31 09:22:27 +00:00
balrog
33f002714b
Add "cache" parameter to "-drive" (Laurent Vivier).
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3848 c046a42c-6fe2-441c-8c8c-71466251a162
2007-12-24 14:33:24 +00:00
balrog
c6d29ad6e2
Add missing ffs() declaration for Win32 hosts, by Stefan Weil.
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3821 c046a42c-6fe2-441c-8c8c-71466251a162
2007-12-16 12:55:24 +00:00
j_mayer
df2542c737
Avoid duplicated definitions: move common definitions from exec-all.h
...
and qemu-common.h to osdep.h.
Include this header in translate-op.c.
Make sure it's included first in darwin-user/qemu.h.
To avoid discarded inlining bug, define inline as always_inline and
always_inline as (( attribute (always_inline) )) __inline__.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3698 c046a42c-6fe2-441c-8c8c-71466251a162
2007-11-19 00:38:33 +00:00
pbrook
29b3a6627e
Windows build fixes.
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2959 c046a42c-6fe2-441c-8c8c-71466251a162
2007-06-07 23:09:47 +00:00
ths
aa26bb2dac
qemu_create_pidfile implementation for Win32, based on a patch by
...
Carlos O'Donell.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2540 c046a42c-6fe2-441c-8c8c-71466251a162
2007-03-25 21:33:06 +00:00
bellard
7f1a8398ab
removed unused code
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2080 c046a42c-6fe2-441c-8c8c-71466251a162
2006-08-03 17:53:19 +00:00
bellard
d62ca2bb9b
removed unused code
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2072 c046a42c-6fe2-441c-8c8c-71466251a162
2006-08-01 15:50:14 +00:00
bellard
755d13753b
removed warning
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2016 c046a42c-6fe2-441c-8c8c-71466251a162
2006-06-25 18:02:02 +00:00
bellard
49b470eb96
shared pages memory allocation
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1279 c046a42c-6fe2-441c-8c8c-71466251a162
2005-02-10 21:59:25 +00:00
bellard
d2bfb39ad2
use the kernel sigaction syscall to avoid relying on glibc one
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1044 c046a42c-6fe2-441c-8c8c-71466251a162
2004-08-03 22:09:30 +00:00
bellard
2571929a77
added qemu_strdup()
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1021 c046a42c-6fe2-441c-8c8c-71466251a162
2004-07-14 17:21:57 +00:00
bellard
0fb48229a7
added qemu_mallocz()
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@665 c046a42c-6fe2-441c-8c8c-71466251a162
2004-03-14 21:48:47 +00:00
bellard
ea88812f4f
added OS dependent functions (temporary as most functions are generic in fact)
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@624 c046a42c-6fe2-441c-8c8c-71466251a162
2004-02-16 22:12:40 +00:00