Statistics
| Branch: | Revision:

root @ 57448a97

# Date Author Comment
57448a97 03/27/2010 08:18 pm Blue Swirl

Compile vmware_vga only once

Signed-off-by: Blue Swirl <>

cc01cc8e 03/27/2010 06:31 pm Aurelien Jarno

tcg-mips: add guest base support

Signed-off-by: Aurelien Jarno <>

489722cf 03/27/2010 05:50 pm Aurelien Jarno

tcg/mips: implement the not_i32 op the same way as gcc

Signed-off-by: Aurelien Jarno <>

2b79487a 03/27/2010 05:32 pm Aurelien Jarno

tcg-mips: implement nor

Signed-off-by: Aurelien Jarno <>

6adc0549 03/27/2010 04:26 pm Michael Tokarev

be more specific in -mem-path error messages

Signed-Off-By: Michael Tokarev <>
Signed-off-by: Aurelien Jarno <>

44459349 03/27/2010 03:38 pm Juergen Lock

Add a missing #include for FreeBSD hosts

Signed-off-by: Juergen Lock <>
Signed-off-by: Aurelien Jarno <>

526f0ac1 03/27/2010 03:30 pm Markus Armbruster

error: Link qemu-img, qemu-nbd, qemu-io with qemu-error.o

The location tracking interface is used by code shared with qemi-img,
qemu-nbd and qemu-io, so it needs to be available there. Commit
827b0813 provides it in a rather hamfisted way: it adds a dummy...

0167f772 03/27/2010 03:30 pm Markus Armbruster

error: Move qerror_report() from qemu-error.[ch] to qerror.[ch]

Signed-off-by: Markus Armbruster <>
Signed-off-by: Aurelien Jarno <>

fc2377ea 03/27/2010 03:30 pm Markus Armbruster

error: Trim includes after "Infrastructure to track locations..."

Missed in commit 827b0813.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Aurelien Jarno <>

6627f645 03/27/2010 03:30 pm Markus Armbruster

error: Make use of error_set_progname() optional

Signed-off-by: Markus Armbruster <>
Signed-off-by: Aurelien Jarno <>

9f59b566 03/27/2010 03:30 pm Markus Armbruster

error: Trim includes after "Move qemu_error & friends..."

Missed in commit 2f792016.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Aurelien Jarno <>

c8bfe7db 03/27/2010 03:30 pm Markus Armbruster

error: Trim includes in qerror.c

Signed-off-by: Markus Armbruster <>
Signed-off-by: Aurelien Jarno <>

703e0e89 03/27/2010 03:16 pm Richard Henderson

linux-user: Use RLIMIT_STACK for default stack size.

The current default stack limit of 512kB is far too small; a fair
number of gcc testsuite failures (for all guests) are directly
attributable to this. Using the -s option in every invocation of
the emulator is annoying to say the least....

3ad493fc 03/27/2010 03:14 pm Rabin Vincent

target-arm: disable PAGE_EXEC for XN pages

Don't set PAGE_EXEC for XN pages, to avoid a bypass of XN protection
checking if the page is already in the TLB.

Signed-off-by: Rabin Vincent <>
Signed-off-by: Aurelien Jarno <>

ca5a2a4b 03/27/2010 03:05 pm Paolo Bonzini

fix race between timer firing vs. alarm_timer->pending = 0

The period for Win32 timers is very short and always the same
independent of dynticks, so it's possible that the timer fires
before qemu_run_all_timers has reset alarm_timer->pending to zero.
Reset alarm_timer->pending before rearming....

06b611c4 03/27/2010 03:02 pm Ryota Ozaki

qemu-io: Fix return value handling of bdrv_open

bdrv_open may return -errno so we have to check
if the return value is '< 0', not '== -1'.

Signed-off-by: Ryota Ozaki <>
Signed-off-by: Aurelien Jarno <>

b6353bea 03/27/2010 03:02 pm Ryota Ozaki

qemu-nbd: Fix invalid usage of the first argument of errx

errx takes the exit status of a process as the first
argument. Passing errno to it is wrong. Instead the
patch lets errx take EXIT_FAILURE.

Signed-off-by: Ryota Ozaki <>
Signed-off-by: Aurelien Jarno <>

a16c174c 03/27/2010 02:56 pm Ryota Ozaki

qemu-nbd: Fix return value handling of bdrv_open

bdrv_open may return -errno so we have to check
if the return value is '< 0', not '== -1'.

Signed-off-by: Ryota Ozaki <>
Signed-off-by: Aurelien Jarno <>

bd12ff9d 03/27/2010 02:53 pm Adam Litke

balloon: Fix overflow when reporting actual memory size

Beginning with its introduction, the virtio balloon has had an overflow error
that causes 'info balloon' to misreport the actual memory size when the balloon
itself becomes larger than 4G. Use a cast when converting dev->actual from...

c96c84a9 03/27/2010 02:51 pm Amos Kong

json-parser: Output the content of invalid keyword

When input some invalid word 'unknowcmd' through QMP port, qemu outputs
this error message:
"parse error: invalid keyword `%s'"

This patch makes qemu output the content of invalid keyword, like:

"parse error: invalid keyword `unknowcmd'"...
57e69b7d 03/27/2010 01:00 pm Kevin Wolf

raw-posix: Better error return values for hdev_create

Now that we output an error message according to the returned error code in
qemu-img, let's return the real error codes. "Input/output error" for
everything isn't helpful.

Signed-off-by: Kevin Wolf <>...

8d533561 03/27/2010 12:52 pm Aurelien Jarno

qemu-options.hx: fix a typo

Signed-off-by: Aurelien Jarno <>

b970ea8f 03/27/2010 09:26 am Blue Swirl

Compile some MIPS devices only once

Move CPU specific declarations to a separate file.

Signed-off-by: Blue Swirl <>

6450a334 03/27/2010 08:58 am Blue Swirl

Fix build

Actually some systems don't define PAGE_SIZE. Fixes build breakage
by f7736b91c40a617e93505e32dcbd2cb56aad8a23.

Signed-off-by: Blue Swirl <>

f7736b91 03/27/2010 08:20 am Blue Swirl

Compile ide/core only once

Make win2k install hack unconditional as it is still restricted to
x86 only in vl.c.

Replace TARGET_PAGE_SIZE and 4096 with PAGE_SIZE.

Signed-off-by: Blue Swirl <>

b305b9d7 03/27/2010 12:41 am Alexander Graf

target-s390: Don't compile in virtio-pci

As soon as virtio-pci.c gets compiled and used on S390 the internal qdev magic
gets confused and tries to give us PCI devices instead of S390 virtio devices.

Since we don't have PCI on S390, we can safely not compile virtio-pci at all....

de6a1dec 03/27/2010 12:37 am Dmitry Ilyevsky

target-ppc: generic PowerPC TBL

Time base SPRs TBL/TBU should be accessible in user/priv modes for reading
as specified in POWER ISA documentation. Therefore SPRs permissions were
changed in gen_tbl function.

Signed-off-by: Dmitry Ilyevsky <>...

86feb1c8 03/27/2010 12:01 am Richard Henderson

tcg: Disambiguate qemu_ld32u with 32-bit and 64-bit outputs.

Some targets (e.g. Alpha and MIPS64) need to keep 32-bit operands
sign-extended in 64-bit registers (regardless of the "real" sign
of the operand). For that, we need to be able to distinguish
between a 32-bit load with a 32-bit result and a 32-bit load with...

32d98fbd 03/26/2010 10:52 pm Richard Henderson

tcg: Allow target-specific implementation of NOR.

Signed-off-by: Richard Henderson <>
Signed-off-by: Aurelien Jarno <>

9940a96b 03/26/2010 10:44 pm Richard Henderson

tcg: Allow target-specific implementation of NAND.

Signed-off-by: Richard Henderson <>
Signed-off-by: Aurelien Jarno <>

8d625cf1 03/26/2010 10:42 pm Richard Henderson

tcg: Allow target-specific implementation of EQV.

Signed-off-by: Richard Henderson <>
Signed-off-by: Aurelien Jarno <>

a10f9f4f 03/26/2010 10:29 pm Richard Henderson

tcg: Use not_i32 to implement not_i64.

Signed-off-by: Richard Henderson <>
Signed-off-by: Aurelien Jarno <>

c02244a5 03/26/2010 10:29 pm Richard Henderson

tcg: Change TCGType to an enumeration.

The TCGType name was already used consistently. Changing it
to an enumeration instead of a set of defines aids debugging.

Signed-off-by: Aurelien Jarno <>

8a56e840 03/26/2010 10:29 pm Richard Henderson

tcg: Use TCGCond where appropriate.

Use the TCGCond enumeration type in the brcond and setcond
related prototypes in tcg-op.h and each code generator.

Signed-off-by: Richard Henderson <>
Signed-off-by: Aurelien Jarno <>

a9751609 03/26/2010 10:28 pm Richard Henderson

tcg: Name the opcode enumeration.

Give the enumeration formed from tcg-opc.h a name: TCGOpcode.
Use that enumeration type instead of "int" whereever appropriate.

Signed-off-by: Richard Henderson <>
Signed-off-by: Aurelien Jarno <>

7270547f 03/26/2010 09:48 pm Michael Casadevall

linux-user: Add the syscall id for pselect6 on ARM

As this is now supported in newer linux kernels.

Signed-off-by: Michael Casadevall <>
Signed-off-by: Riku Voipio <>
Signed-off-by: Aurelien Jarno <>

a63b5829 03/26/2010 09:48 pm Paolo Bonzini

remove remaining occurrences AREG[1-9] and TCG_AREG[1-9]

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Aurelien Jarno <>

c05c7a73 03/26/2010 06:15 pm Riku Voipio

linux-user: add inotify_init1 syscall support

New syscall which gets actively used when you have a
fresh kernel.

Signed-off-by: Riku Voipio <>
Signed-off-by: Aurelien Jarno <>

bedd2912 03/23/2010 11:10 pm Johan Bengtsson

target-arm: Fix handling of AL condition in IT instruction

Do not try to insert a conditional jump over next instruction when the
condition code is AL as this will trigger an internal error.

Signed-off-by: Johan Bengtsson <>
Signed-off-by: Aurelien Jarno <>

3f90f252 03/23/2010 11:00 pm Richard Henderson

tcg-hppa: Fix 64-bit argument ordering

Signed-off-by: Richard Henderson <>
Signed-off-by: Aurelien Jarno <>

3436332e 03/23/2010 11:00 pm Richard Henderson

tcg-hppa: Fix const errors in hppa-dis.c

Signed-off-by: Richard Henderson <>
Signed-off-by: Aurelien Jarno <>

0c62de2f 03/23/2010 09:44 pm Juergen Lock

Fix bsd-user broken by commit b5ec5ce0e39d6e7ea707d5604a5f6d567dfd2f48

Signed-off-by: Juergen Lock <>
Signed-off-by: Blue Swirl <>

6725f3fa 03/23/2010 09:26 pm Lars Munch

Fix recent pxa270 serial breakage

This fixes a copy/paste bug introduced in commit
2d48377a8531de63ec1d0c4b9b1959dc4b78356c that pushed TARGET_WORDS_BIGENDIAN
dependency to board level.

Signed-off-by: Lars Munch <>
Signed-off-by: Blue Swirl <>

bb334b12 03/23/2010 05:13 pm Edgar E. Iglesias

qemu-error: Avoid build warning.

CC    qemu-error.o
cc1: warnings being treated as errors
/home/edgar/src/c/qemu/git/qemu/qemu-error.c: In function 'error_print_loc':
/home/edgar/src/c/qemu/git/qemu/qemu-error.c:191: error: format not a string literal and no format arguments...
4dcf7d87 03/23/2010 10:59 am Aurelien Jarno

pci_host: fix breakage

This has been broken by commit 952760bb7bce7fbfe0afcf04fee268745f297b87

Signed-off-by: Aurelien Jarno <>

8f51bdab 03/22/2010 10:18 pm Blue Swirl

Compile virtio-pci only once

Signed-off-by: Blue Swirl <>

70615c38 03/22/2010 10:18 pm Blue Swirl

Compile sound devices only once

Signed-off-by: Blue Swirl <>

c9a43af9 03/21/2010 10:37 pm Blue Swirl

Fix Sparc64 build

952760bb7bce7fbfe0afcf04fee268745f297b87 missed one change.

Signed-off-by: Blue Swirl <>

952760bb 03/21/2010 09:47 pm Blue Swirl

Compile pci_host only once

Convert pci_host_conf_register_mmio_noswap(x) to
pci_host_conf_register_mmio(x, 0).

Convert pci_host_conf_register_mmio(x) to
pci_host_conf_register_mmio(x, 1) for big endian hosts, all cases
happen to be BE.

Signed-off-by: Blue Swirl <>

c1f63a9d 03/21/2010 09:47 pm Blue Swirl

Compile pcie_host only once

Signed-off-by: Blue Swirl <>

6842a08e 03/21/2010 09:47 pm Blue Swirl

Compile pci only once

Move coalesced_mmio declarations to a more accessible location.

Signed-off-by: Blue Swirl <>

f1698408 03/21/2010 09:47 pm Blue Swirl

Compile usb-ohci only once

Push TARGET_WORDS_BIGENDIAN dependency to board level.

Signed-off-by: Blue Swirl <>

2d48377a 03/21/2010 09:47 pm Blue Swirl

Compile serial only once

Push TARGET_WORDS_BIGENDIAN dependency to board level.

Signed-off-by: Blue Swirl <>

d3ffc7a6 03/21/2010 09:47 pm Blue Swirl

Compile ne2000_isa only once

Signed-off-by: Blue Swirl <>

84108e12 03/21/2010 09:47 pm Blue Swirl

Compile isa_mmio only once

Push TARGET_WORDS_BIGENDIAN dependency to board level.

Signed-off-by: Blue Swirl <>

7161e571 03/21/2010 09:47 pm Blue Swirl

Compile most PCI network cards only once

Signed-off-by: Blue Swirl <>

64dc9c31 03/21/2010 09:47 pm Blue Swirl

Compile async only once

Signed-off-by: Blue Swirl <>

e1060e9d 03/21/2010 09:47 pm Blue Swirl

Compile qemu-error only once

Signed-off-by: Blue Swirl <>

35da37e1 03/21/2010 09:47 pm Blue Swirl

Compile fdc only once

Signed-off-by: Blue Swirl <>

9953b2fc 03/21/2010 09:47 pm Blue Swirl

Compile most IDE devices only once

Signed-off-by: Blue Swirl <>

4c65f1e5 03/21/2010 09:47 pm Blue Swirl

Compile usb-uhci only once

Signed-off-by: Blue Swirl <>

7f55c7ce 03/21/2010 09:47 pm Blue Swirl

Compile vga-isa only once

Signed-off-by: Blue Swirl <>

df632778 03/21/2010 09:47 pm Blue Swirl

Compile i8254 only once

Signed-off-by: Blue Swirl <>

71093711 03/21/2010 09:47 pm Blue Swirl

Compile pcspk only once

Signed-off-by: Blue Swirl <>

b9945046 03/21/2010 09:47 pm Blue Swirl

Compile parallel only once

Signed-off-by: Blue Swirl <>

1afdfddc 03/21/2010 09:47 pm Blue Swirl

Compile vga-pci only once

Signed-off-by: Blue Swirl <>

aa28b9bf 03/21/2010 09:46 pm Blue Swirl

Move x86 specific PC declarations to a separate file

x86 definitions (especially CPUState uses) prevent many files from
being compiled within libhw.

Move x86 specific declarations (APIC stuff) to a separate file.

Signed-off-by: Blue Swirl <>

aaf12c25 03/21/2010 09:44 pm Blue Swirl

Revert 'Fix build'

Partially revert 80a1ab598c6960e7a941e38c5d8638c532c585c3.

Signed-off-by: Blue Swirl <>

5ec9cc64 03/21/2010 09:15 pm Anthony Liguori

Revert "Introduce a default qmp session"

This reverts commit 3290c4aac5b97bb1e3b2b28d94669f2c611ce84a.

Conflicts:

vl.c
2d114dc1 03/21/2010 09:14 pm Anthony Liguori

Revert "qmp: don't make -qmp disable the default monitor"

This reverts commit d49f626ed00cecc90fb1ff88da9bdf11e57094d1.

31dc63df 03/21/2010 09:13 pm Anthony Liguori

Revert "tap: invoke downscript when we exit abnormally"

This reverts commit 8af8ce4d6116e3d46ad298ca8fe50d3b515b1aac.

28695489 03/21/2010 09:13 pm Anthony Liguori

Revert "Convert atexit users to exit_notifier"

This reverts commit d7234f4d7e373a708e1df9ab565a71b71b189025.

Conflicts:

hw/xen_machine_pv.c

This should have never been committed.

Signed-off-by: Anthony Liguori <>

365c4243 03/21/2010 09:11 pm Anthony Liguori

Revert "Add exit notifiers"

This reverts commit 3b6304f706ef7eebc0b3b3f3a5093ec75448ee19.

This was mistakenly committed.

Signed-off-by: Anthony Liguori <>

8ec68b06 03/21/2010 02:30 pm Blue Swirl

Fix a typo

Signed-off-by: Blue Swirl <>

4d904533 03/21/2010 10:28 am Blue Swirl

Compile disassemblers only once

Signed-off-by: Blue Swirl <>

9e97d8e9 03/20/2010 01:27 pm Aurelien Jarno

tcg/arm: don't save/restore r7 in prologue/epilogue

There is no need to save r7, it is used to store the address
of the env structure and is not modified by GCC.

Signed-off-by: Aurelien Jarno <>

26c5d372 03/20/2010 01:10 pm Aurelien Jarno

tcg/arm: fix load/store definitions for 32-bit targets

Signed-off-by: Aurelien Jarno <>

30138f28 03/20/2010 12:17 pm Aurelien Jarno

tcg: protect div2 in tcg/tcg-opc.h

Signed-off-by: Aurelien Jarno <>

bafd20ce 03/20/2010 10:55 am Blue Swirl

Fix a typo which broke Xen build

Signed-off-by: Blue Swirl <>

9b164805 03/20/2010 10:26 am Blue Swirl

Fix mingw32 build

mkdir() only takes path argument on mingw32:

CC    i386-softmmu/vl.o
/src/qemu/vl.c: In function 'qmp_add_default':
/src/qemu/vl.c:3763: error: too many arguments to function 'mkdir'
/src/qemu/vl.c:3769: error: too many arguments to function 'mkdir'...
80a1ab59 03/20/2010 10:11 am Blue Swirl

Fix build

CC curses.o
cc1: warnings being treated as errors
/src/qemu/curses.c: In function 'curses_display_init':
/src/qemu/curses.c:341: error: initialization from incompatible pointer type

Signed-off-by: Blue Swirl <>

d49f626e 03/19/2010 10:27 pm Anthony Liguori

qmp: don't make -qmp disable the default monitor

Instead, we introduce a default_qmp flag. We don't use it yet, but will in the
next patch.

This has a user-visible impact as specifying just -qmp will now also show a
monitor on the 'vc'.

Signed-off-by: Anthony Liguori <>

3290c4aa 03/19/2010 10:27 pm Anthony Liguori

Introduce a default qmp session

Basically, -qmp unix:%{home}/.qemu/qmp/%{uuid}.sock,server,nowait

%{uuid} will be -uuid if it's specified, otherwise, if libuuid is available,
we generate a uuid. If it's not available, we don't create one.

Signed-off-by: Anthony Liguori <>

6fef28ee 03/19/2010 10:27 pm Anthony Liguori

Rewrite mouse handlers to use QTAILQ and to have an activation function

And convert usb-hid to use it (to avoid regression with bisection)

Right now, when we do info mice and we've added a usb tablet, we don't see it
until the guest starts using the tablet. We implement this behavior in order...

eb2e259d 03/19/2010 10:27 pm Anthony Liguori

Add kbd_mouse_has_absolute()

kbd_mouse_is_absolute tells us whether the current mouse handler is an absolute
device. kbd_mouse_has_absolute tells us whether we have any device that is
capable of absolute input.

This lets us tell a user that they have configured an absolute device but that...

7e581fb3 03/19/2010 10:27 pm Anthony Liguori

Add notifier for mouse mode changes

Right now, DisplayState clients rely on polling the mouse mode to determine
when the device is changed to an absolute device. Use a notification list to
add an explicit notification.

Signed-off-by: Anthony Liguori <>

1aaee43c 03/19/2010 10:27 pm Anthony Liguori

Expose whether a mouse is an absolute device via QMP and the human monitor.

For QMP, we just add an attribute which is backwards compatible. For the human
monitor, we add (absolute) to the end of the line.

Signed-off-by: Anthony Liguori <>

37c34d9d 03/19/2010 10:27 pm Anthony Liguori

input: make vnc use mouse mode notifiers

When we switch to absolute mode, we send out a notification (if the client
supports it). Today, we only send this notification when the client sends us
a mouse event and we're in the wrong mode.

Signed-off-by: Anthony Liguori <>

3af12c86 03/19/2010 10:27 pm Anthony Liguori

sdl: use mouse mode notifier

Today we poll the mouse mode whenever there is a mouse movement. There is a
subtle usability problem with this though.

If we're in relative mode and grab is enabled, when we change to absolute mode,
we break grab. This gives a user a seamless transition when the new pointer...

3b6304f7 03/19/2010 10:27 pm Anthony Liguori

Add exit notifiers

Like atexit() but with state

Signed-off-by: Anthony Liguori <>

d7234f4d 03/19/2010 10:27 pm Anthony Liguori

Convert atexit users to exit_notifier

All of these users have global state so we really don't see a benefit from
exit_notifier. However, using exit_notifier means that there's one less
justification for having global state in the first place.

Signed-off-by: Anthony Liguori <>

8af8ce4d 03/19/2010 10:27 pm Anthony Liguori

tap: invoke downscript when we exit abnormally

Right now, downscript is not invoked reliably. If you execute 'quit' from the
monitor, it won't be invoked.

This fixes that by converting tap to use an exit_notifier to execute the
downscript. In this case, allowing an exit notifier to include state is...

d1e70c5e 03/19/2010 10:27 pm Anthony Liguori

Add support for generic notifier lists

Notifiers are data-less callbacks and a notifier list is a list of registered
notifiers that all are interested in a particular event.

We'll use this in a few patches to implement mouse change notification.

Signed-off-by: Anthony Liguori <>...

77ac4862 03/19/2010 10:27 pm Avi Kivity

CODING_STYLE: Reserve qemu_ prefix for library wrappers

Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

31d4ee6c 03/19/2010 10:27 pm Juan Quintela

Convert io handlers to QLIST

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

1c39e2a2 03/19/2010 10:27 pm Juan Quintela

remove useless cast

values are already pointers, no need to cast them to void *

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

7b27a769 03/19/2010 10:27 pm Juan Quintela

rename IOCanRWHandler to IOCanReadHandler

It was always only used for reads

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

ca96c316 03/19/2010 10:27 pm Juan Quintela

bt: remove bt_host_read_poll()

It allways returned true, that is the equivalent of not having the
callback.

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

4bed9837 03/19/2010 10:27 pm Juan Quintela

Handle deleted IOHandlers in a single buffer

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

ddbda432 03/19/2010 10:27 pm Anthony Liguori

Revert "usb-linux: remove unreachable default in switch statement"

This reverts commit 3c9c706c3b66d838942aba53c0d3fdcdf06c7423.

This breaks build (gcc 4.3.2):
CC usb-linux.o
cc1: warnings being treated as errors
/src/qemu/usb-linux.c: In function 'usb_linux_update_endp_table':...