Statistics
| Branch: | Revision:

root @ a63b5829

# Date Author Comment
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':...

d35215f8 03/18/2010 10:48 pm Blue Swirl

Fix OpenBSD linker warning

qemu-option.o(.text+0x20f8): In function `qemu_opts_from_qdict_1':
/src/qemu/qemu-option.c:813: warning: strcpy() is almost always misused, please use strlcpy()

Signed-off-by: Blue Swirl <>

43dc2a64 03/18/2010 08:41 pm Blue Swirl

Replace assert(0) with abort() or cpu_abort()

When building with -DNDEBUG, assert(0) will not stop execution
so it must not be used for abnormal termination.

Use cpu_abort() when in CPU context, abort() otherwise.

Signed-off-by: Blue Swirl <>

609c1dac 03/18/2010 08:41 pm Blue Swirl

Fix manpage errors

Split long unbreakable lines to smaller sections.

Spotted by Debian Lintian tool:
http://lintian.debian.org/full/pkg-qemu-devel@lists.alioth.debian.org.html#qemu

Signed-off-by: Blue Swirl <>

314b1811 03/17/2010 06:17 pm Gerd Hoffmann

scsi-disk: fix buffer overflow

In case s->version is shorter than 4 bytes we overflow the memcpy src
buffer. Fix it by clearing the target buffer, then copy only the
amount of bytes we actually have.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

e5322f76 03/17/2010 06:17 pm Arnaud Patard (Rtp)

hw/usb-msd: fix some usb requests

The usb-msd device emulation needs some small tweaks in the requests
emulations. For instance, the reset/maxlun requests are class/interface
specific so requests for them with the type class and recipient interface
bits sets have to be handled....

3a0558b5 03/17/2010 06:16 pm Gerd Hoffmann

vnc: add no-lock-key-sync option

Add an option to disable the heuristics which try to keep
capslock and numlock state for guest and host in sync.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

db1a4972 03/17/2010 06:16 pm Paolo Bonzini

split out qemu-timer.c

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

07108b29 03/17/2010 06:16 pm Naphtali Sprei

read-only: minor cleanup

Really use read-only flags for opening the file when asked for read-only

Signed-off-by: Naphtali Sprei <>
Signed-off-by: Anthony Liguori <>

0056dcc1 03/17/2010 06:16 pm Naphtali Sprei

read-only: Another minor cleanup

Don't rely on CDROM hint for read_only attribute

Signed-off-by: Naphtali Sprei <>
Signed-off-by: Anthony Liguori <>

cfaf6d36 03/17/2010 06:16 pm Juan Quintela

migration: Clear fd also in error cases

Not clearing the fd and closing the file makes qemu spin using 100%CPU
after incoming migration error.

See for instance bug:
https://bugzilla.redhat.com/show_bug.cgi?id=518032

Signed-off-by: Juan Quintela <>...

af821177 03/17/2010 06:16 pm Juan Quintela

migration: unix migration should obey autostart are the other ones

This was the only incoming migration without autostart check

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

16b151c3 03/17/2010 06:14 pm Paolo Bonzini

place together more #ifdef CONFIG_IOTHREAD blocks

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

d6f4ade2 03/17/2010 06:14 pm Paolo Bonzini

disentangle tcg and deadline calculation

Just tell main_loop_wait whether to be blocking or nonblocking, so that
there is no need to call qemu_cpus_have_work from the timer subsystem.
Instead, tcg_cpu_exec can say "we want the main loop not to block because...

cd48d7e8 03/17/2010 06:14 pm Paolo Bonzini

only one flag is needed for alarm_timer

The ALARM_FLAG_DYNTICKS can be testing simply by checking if there is
a rearm function.

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

1828be31 03/17/2010 06:14 pm Paolo Bonzini

more alarm timer cleanup

The timer_alarm_pending variable is related to the alarm timer but not
placed in the struct. Also, in qemu_mod_timer the wrong flag was being
tested: the timer is rearmed in the alarm timer "bottom half", so the
right flag to test there is the "pending" flag....

7a5e5838 03/17/2010 06:14 pm Paolo Bonzini

do not use qemu_event_increment outside qemu_notify_event

qemu_notify_event in the non-iothread case is only stopping the current
CPU. However, if the CPU is idle and the main loop is in the select
call then a call to qemu_event_increment is needed too (as done in...

1db89e91 03/17/2010 06:14 pm Paolo Bonzini

tweak qemu_notify_event

Instead of testing specially next_cpu in host_alarm_handler, just do
that in qemu_notify_event. The idea is, if we are not running (or
not yet running) target CPU code, prepare things so that the execution
loop is exited asap; just make that clear....

3a720b14 03/17/2010 06:14 pm Paolo Bonzini

remove qemu_rearm_alarm_timer from main loop

Make the timer subsystem register its own callback instead.

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

b6964827 03/17/2010 06:14 pm Paolo Bonzini

extract timer handling out of main_loop_wait

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

8c04ba55 03/17/2010 06:14 pm Paolo Bonzini

change qemu_run_timers interface

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

972abbe0 03/17/2010 06:14 pm Paolo Bonzini

introduce and use qemu_clock_enable

By adding the possibility to turn on/off a clock, yet another
incestuous relationship between timers and CPUs can be disentangled.

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

4e3de9e9 03/17/2010 06:14 pm Paolo Bonzini

centralize handling of -icount

A simple patch to place together all handling of -icount.

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

e2a7bb4b 03/17/2010 06:14 pm Paolo Bonzini

add qemu_icount_round

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

63255043 03/17/2010 06:14 pm Paolo Bonzini

add qemu_alarm_pending

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

a2aaa079 03/17/2010 06:14 pm Paolo Bonzini

new function qemu_icount_delta

Tweaking the rounding in qemu_next_deadline ensures that there's
no change whatsoever.

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

1b48824f 03/17/2010 06:14 pm Paolo Bonzini

move vmstate registration of vmstate_timers earlier

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

9aea1029 03/17/2010 06:14 pm Paolo Bonzini

avoid dubiously clever code in win32_start_timer

The code is initializing an unsigned int to UINT_MAX using "-1", so that
the following always-true comparison seems to be always-false at a
first look. Since alarm timer initializations are never nested, it is...

291defbc 03/17/2010 06:14 pm Paolo Bonzini

fix error in win32_rearm_timer

The TIME_ONESHOT and TIME_PERIODIC flags are mutually exclusive.
The code after the patch matches the flags used in win32_start_timer.

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

6d0ee850 03/17/2010 05:42 pm Adam Litke

balloon: Do not save VM state wrt asynchronous virtio operations

When working with the VM state (for loadvm/savevm and migration), it is not
valid to load and store pointers since the validity of those pointers cannot be
assured in the new qemu address space. Therefore, virtio_balloon_save() and...

8cfacf07 03/17/2010 05:42 pm Christoph Hellwig

block: add logical_block_size property

Add a logical block size attribute as various guest side tools only
increase the filesystem sector size based on it, not the advisory
physical block size.

For scsi we already have support for a different logical block size...

702f3e0f 03/17/2010 05:42 pm Jan Kiszka

Avoid crash on '-usbdevice <device>' without parameters

Many usbdevice_init implementors assume params is non-NULL.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

cc39a92c 03/17/2010 05:42 pm Chris Webb

Fix SIGFPE for vnc display of width/height = 1

During boot, the screen gets resized to height 1 and a mouse click at this
point will cause a division by zero when calculating the absolute pointer
position from the pixel (x, y). Return a click in the middle of the screen...

3c9c706c 03/17/2010 05:41 pm Paul Bolle

usb-linux: remove unreachable default in switch statement

Signed-off-by: Paul Bolle <>
Signed-off-by: Anthony Liguori <>

fd04a2ae 03/17/2010 05:41 pm Shahar Havivi

Wrong error message in block_passwd command

Signed-off-by: Shahar Havivi <>
Signed-off-by: Anthony Liguori <>

b6034a39 03/17/2010 05:41 pm Bjørn Mork

sdl: improve error message on fatal error

The SDL_SetVideoMode() error condition is easily triggered by a user by
simply configure a guest with a host unsupported display resolution
and attempting to enable fullscreen. Since the error is fatal, adding
a bit of debugging help can't harm....