Statistics
| Branch: | Revision:

root @ 0056c093

# Date Author Comment
853bfcc7 02/28/2012 11:33 pm Stefan Weil

target-arm: Clean includes

Remove some include statements which are not needed.

Reviewed-by: Peter Maydell <>
Signed-off-by: Stefan Weil <>

7ad757b2 02/28/2012 11:33 pm Stefan Weil

target-cris: Clean includes

The change in cpu.h is needed when HOST_LONG_BITS is defined in qemu-common.h.

Cc: Edgar E. Iglesias <>
Signed-off-by: Stefan Weil <>

727d6bff 02/28/2012 11:33 pm Stefan Weil

target-i386: Clean includes

Remove some include statements which are not needed.

Signed-off-by: Stefan Weil <>

60ed8d29 02/28/2012 11:33 pm Stefan Weil

target-lm32: Clean includes

config.h was missing in cpu.h.

Acked-by: Michael Walle <>
Signed-off-by: Stefan Weil <>

3aef481a 02/28/2012 11:33 pm Stefan Weil

target-m68k: Clean includes

config.h was missing in cpu.h.

Signed-off-by: Stefan Weil <>

94598c1d 02/28/2012 11:33 pm Stefan Weil

target-microblaze: Clean includes

The change in cpu.h is needed when HOST_LONG_BITS is defined in qemu-common.h.

Signed-off-by: Stefan Weil <>

0056c093 02/28/2012 11:33 pm Stefan Weil

target-mips: Clean includes

Remove some include statements which are not needed.

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

9c6ecf3e 02/28/2012 11:33 pm Stefan Weil

Remove macro HOST_LONG_SIZE

HOST_LONG_SIZE is simply the size of a pointer value.
There is no need for this macro.

Signed-off-by: Stefan Weil <>

2c976297 02/28/2012 11:33 pm Stefan Weil

target-alpha: Clean includes

The change in cpu.h is needed when HOST_LONG_BITS is defined in qemu-common.h.

Cc: Richard Henderson <>
Signed-off-by: Stefan Weil <>

b55c952a 02/27/2012 07:19 pm Anthony Liguori

Merge remote-tracking branch 'aneesh/for-upstream' into staging

  • aneesh/for-upstream:
    hw/9pfs: Endian fixes for virtfs
    ./configure: add option for disabling VirtFS
90d7416a 02/27/2012 03:55 pm David Gibson

slirp: Fix assertion failure on rejected DHCP requests

The guest network stack might DHCPREQUEST an address that the slirp built
in dhcp server can't let it have - for example if the guest has an old
leases file from another network configuration. In this case the dhcp...

79e7e937 02/27/2012 03:54 pm Jan Kiszka

slirp: Clean up ifs_init

Remove duplicate ifs_init macros, reimplement the logic as static inline
in mbuf.h.

CC: Zhi Yong Wu <>
CC: Michael S. Tsirkin <>
Signed-off-by: Jan Kiszka <>

b248ede2 02/27/2012 03:54 pm Jan Kiszka

slirp: Fix requeuing of batchq packets in if_start

In case we requeued a packet that was the head of a longer session
queue, we failed to restore this ordering. Also, we did not properly
deal with changes to Slirp::next_m.

Instead of a cumbersome roll back, this fix simply avoids any changes...

b87ffa16 02/27/2012 03:54 pm Jan Kiszka

slirp: Refactor if_start

Replace gotos with a while loop, fix coding style.

CC: Zhi Yong Wu <>
CC: Fabien Chouteau <>
Signed-off-by: Jan Kiszka <>

b4bd0b16 02/25/2012 04:16 pm Stefan Weil

audio: Add some fall through comments

Static code analysers expect these comments for case statements without
a break statement.

Signed-off-by: Stefan Weil <>
Signed-off-by: malc <>

967c0da7 02/24/2012 09:36 pm Peter Maydell

vl.c: Avoid segfault when started with no arguments

Fix a bug (introduced in commit a0abe47) where a command line which
specified no machine arguments (either explicitly or implicitly via
-kernel &co) would result in a segfault because of a NULL pointer
returned from qemu_opts_find(qemu_find_opts("machine"), 0)....

cdf84806 02/24/2012 09:36 pm Peter Maydell

configure: Check whether makecontext() is a glibc stub function

On some systems (notably ARM Linux) glibc provides implementations
of makecontext(), getcontext() and friends which are stubs which
always return failure. Make the configure test for makecontext()...

45efb161 02/24/2012 09:36 pm Gerd Hoffmann

optimize screendump for the common non-switch case

switch console only if needed, also pass down whenever the console was
switched or not because a displaysurface redraw is only needed in case
the console was switched.

Signed-off-by: Gerd Hoffmann <>...

5bc62e01 02/24/2012 09:36 pm Gerd Hoffmann

build: allow turning off debuginfo

This patch adds --{enable,disable}-debug-info switches to configure
which allows to include/exclude the '-g' switch on the gcc & ld
command lines. Not building debug info reduces ressource usage
(especially disk) alot and is quite useful for test builds....

9ebe95fb 02/24/2012 09:36 pm Gerd Hoffmann

nic: zap obsolote romloading bits from ne2k + pcnet

These days one just needs to specify the romfile in PCiDeviceInfo and
everything magically works. It also allows to disable pxe rom loading
via "romfile=<emptystring>" like it is possible for all other nics....

6595abc0 02/24/2012 09:36 pm Gerd Hoffmann

suspend: make acpi timer wakeup the guest.

Make the acpi timer wake up the guest.
Guests can enable/disable this via acpi too.

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

53370b78 02/24/2012 09:36 pm Gerd Hoffmann

suspend: add qmp events

Send qmp events on suspend and wakeup so libvirt
has a chance to track the vm state.

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

9a51f5b0 02/24/2012 09:36 pm Gerd Hoffmann

vga: simplify screendump

The displaychangelistener isn't needed at all, we can simply save the
image when vga_hw_update is done instead of hooking into the update
process.

Signed-off-by: Anthony Liguori <>

16735102 02/24/2012 09:36 pm Gerd Hoffmann

Remove screendump dummy functions.

The code in console.c verifies whenever a screen_dump function
pointer is present before calling it, so there is no need to supply an
dummy function. Remove them. Also report an error to notify the user
that he didn't got a screenshot....

da98c8eb 02/24/2012 09:36 pm Gerd Hoffmann

suspend: switch acpi s3 to new infrastructure.

This patch switches pc s3 suspend over to the new infrastructure.
The cmos_s3 qemu_irq is killed, the new notifier is used instead.
The xen hack goes away with that too, the hypercall can simply be
done in a notifier function now....

9b9df25a 02/24/2012 09:36 pm Gerd Hoffmann

suspend: add system_wakeup monitor command

This patch adds the system_wakeup monitor command which will simply
wake up suspended guests.

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

fd214d18 02/24/2012 09:36 pm Gerd Hoffmann

suspend: make ps/2 devices wakeup the guest

This patch adds wakeup support to ps/2 emulation. Any key press on the
ps/2 keyboard will wakeup the guest. Likewise any mouse button press
will wakeup the guest. Mouse moves are ignored, so the guest will not...

9826fd59 02/24/2012 09:36 pm Gerd Hoffmann

suspend: make serial ports wakeup the guest.

Add a 'wakeup' property to the serial port. It is off by default. When
enabled any incoming character on the serial line will wake up the
guest. Useful for guests which have a serial console configured.

Signed-off-by: Gerd Hoffmann <>...

62aeb0f7 02/24/2012 09:36 pm Gerd Hoffmann

suspend: make rtc alarm wakeup the guest.

Make the rtc wake up the guest when the alarm fires.
Add acpi windup to property support RTC_EN, so guests
can enable and disable this.

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

067866d6 02/24/2012 09:36 pm Gerd Hoffmann

acpi: move around structs

Group all structs at the top of hw/acpi.h.
Just moving around lines, no code changes.

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

355bf2e5 02/24/2012 09:36 pm Gerd Hoffmann

acpi: add ACPIREGS

All those acpi structs are not independent from each other.
Various acpi functions expecting multiple acpi structs passed
in are a clean indicator for that ;)

So this patch bundles all acpi structs in the new ACPIREGS
struct, then use it everythere pass around acpi state....

2886be1b 02/24/2012 09:36 pm Gerd Hoffmann

acpi: don't pass overflow_time to acpi_pm1_evt_get_sts

Pretty pointless, can easily be reached via ACPIREGS now.

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

8283c4f5 02/24/2012 09:36 pm Gerd Hoffmann

acpi: add acpi_pm1_evt_write_en

Do APCIREGS->pm1.evt.en updates using the new acpi_pm1_evt_write_en
function, so the acpi code will see those updates.

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

95b363b5 02/24/2012 09:36 pm Gerd Hoffmann

suspend: add infrastructure

This patch adds some infrastructure to handle suspend and resume to
qemu. First there are two functions to switch state and second there
is a suspend notifier:

  • qemu_system_suspend_request is supposed to be called when the...
85f38553 02/24/2012 05:51 pm Anthony Liguori

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

  • stefanha/trivial-patches:
    slirp/misc: fix gcc __warn_memset_zero_len warnings
    vl.c: Increase width of machine name column in "-M ?" output
    tcg: Remove unneeded include statements
18ac5499 02/24/2012 05:50 pm Anthony Liguori

Merge remote-tracking branch 'mdroth/qga-win32-pull-2-23-12' into staging

  • mdroth/qga-win32-pull-2-23-12:
    qemu-ga: add win32 guest-shutdown command
    qemu-ga: add Windows service integration
    qemu-ga: add initial win32 support
    qemu-ga: fixes for win32 build of qemu-ga...
7c1daf34 02/24/2012 05:45 pm Anthony Liguori

Merge remote-tracking branch 'qmp/queue/qmp' into staging

  • qmp/queue/qmp:
    qmp: add DEVICE_TRAY_MOVED event
    ide: drop ide_tray_state_post_load()
    block: Don't call bdrv_eject() if the tray state didn't change
    block: bdrv_eject(): Make eject_flag a real bool...
5105b6d8 02/24/2012 05:37 pm Anthony Liguori

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

  • kwolf/for-anthony: (46 commits)
    qemu-iotests: common.config: Allow use of arbitrary qemu* paths
    qemu-iotests: check: print relevant path information
    qemu-iotests: test loading internal snapshots...
9ef1300b 02/24/2012 05:33 pm Anthony Liguori

Merge remote-tracking branch 'bonzini/virtio-scsi' into staging

  • bonzini/virtio-scsi:
    scsi-block: always use scsi_generic_ops for cache != none
    scsi: fix searching for an empty id
    scsi: fix wrong return for target INQUIRY
    virtio-scsi: add migration support...
d9a5954d 02/24/2012 05:06 pm Markus Armbruster

vl.c: Error locations for options using add_device_config()

These are -bt, -serial, -virtcon, -parallel, -debugcon, -usbdevice.
Improves messages emitted via proper error reporting interfaces. For
instance:

$ qemu-system-x86_64 -nodefaults -S -usb -usbdevice net:vlan=xxx...
ef0c4a0d 02/24/2012 05:06 pm Markus Armbruster

gdbstub: Error locations for -gdb

Stash away the option argument with add_device_config(), so we still
have its location when we get around to parsing it.

This doesn't improve any messages I can see just yet, but that'll
change shortly.

Signed-off-by: Markus Armbruster <>...

136faa36 02/24/2012 05:06 pm Markus Armbruster

sockets: Drop sockets_debug debug code

I'm trying to improve this code's error reporting, and the debug code
is getting in my way: it clutters the code, it clobbers errno in
inconvenient places, and it uses the same fprintf() both for error
reporting and debug output in a few places....

877691f9 02/24/2012 05:06 pm Markus Armbruster

sockets: Clean up inet_listen_opts()'s convoluted bind() loop

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

8811e1e1 02/24/2012 05:06 pm Markus Armbruster

console: Eliminate text_consoles[]

Simply use consoles[] instead.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

ed5e1ec3 02/24/2012 05:06 pm Andreas Färber

target-i386: Introduce x86_cpuid_version_set_family()

Move the logic for setting the family and extended family into a
helper function.

To make the helper self-contained and in preparation of future
unordered/multiple uses, mask out any previous family values first....

b0704cbd 02/24/2012 05:06 pm Andreas Färber

target-i386: Introduce x86_cpuid_version_set_model()

Move the logic for setting the model and extended model fields
into a helper function.

To make the function self-contained and to prepare for future
unordered/multiple uses, mask out any previous model values first....

38c3dc46 02/24/2012 05:06 pm Andreas Färber

target-i386: Introduce x86_cpuid_version_set_stepping()

Move the logic for setting the stepping field into a helper function.

To make the function self-contained and to prepare for future
unordered/multiple uses, mask out any previous stepping values first....

dcce6675 02/24/2012 05:06 pm Andreas Färber

target-i386: Introduce x86_cpuid_set_model_id()

Move the logic to transform the 48-char model ID into the 12-word model
value into a helper.

Signed-off-by: Andreas Färber <>
Signed-off-by: Anthony Liguori <>

b181e047 02/24/2012 05:06 pm Markus Armbruster

qemu-char: Use qemu_open() to avoid leaking fds to children

Fixed silently in commit aad04cd0, but that just got reverted.
Re-apply the fixes, plus one missed instance: parport on Linux.

Reviewed-by: Anthony Liguori <>
Signed-off-by: Markus Armbruster <>...

a89dd6c3 02/24/2012 05:06 pm Markus Armbruster

qemu-char: Re-apply style fixes from just reverted aad04cd0

Reviewed-by: Anthony Liguori <>
Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

d7378ee1 02/24/2012 05:06 pm Markus Armbruster

qemu-char: qemu_chr_open_fd() can't fail, don't check

Cleaned up silently in commit aad04cd0, but that just got reverted.
Re-apply this part.

Reviewed-by: Anthony Liguori <>
Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

1f51470d 02/24/2012 05:06 pm Markus Armbruster

Revert "qemu-char: Print strerror message on failure" and deps

The commit's purpose is laudable:

The only way for chardev drivers to communicate an error was to
return a NULL pointer, which resulted in an error message that
said that something went wrong, but not why....
06114d72 02/24/2012 03:54 pm Paolo Bonzini

virtio-scsi: process control queue requests

Reviewed-by: Stefan Hajnoczi <>
Signed-off-by: Paolo Bonzini <>

5db1764c 02/24/2012 03:54 pm Paolo Bonzini

virtio-scsi: add migration support

Reviewed-by: Stefan Hajnoczi <>
Signed-off-by: Paolo Bonzini <>

9fac25bf 02/24/2012 03:54 pm Paolo Bonzini

scsi: fix wrong return for target INQUIRY

Signed-off-by: Paolo Bonzini <>

d3d250bd 02/24/2012 03:54 pm Paolo Bonzini

scsi: fix searching for an empty id

The conditions for detecting no free target or LUN were wrong.

The LUN loop was followed by an "if" condition that is never
true, because the loop is exited as soon as lun becomes equal
to bus->info->max_lun, and never becomes greater than it....

eaccf49e 02/24/2012 03:54 pm Paolo Bonzini

scsi-block: always use scsi_generic_ops for cache != none

Signed-off-by: Paolo Bonzini <>

f293d8b1 02/24/2012 03:24 pm Alon Levy

slirp/misc: fix gcc __warn_memset_zero_len warnings

By removing memset altogether (Patch from Stefan Hajnoczi, tested
compile only by me).

Signed-off-by: Alon Levy <>
Signed-off-by: Stefan Hajnoczi <>

67d6fa53 02/24/2012 10:31 am Benjamin Herrenschmidt

hw/9pfs: Endian fixes for virtfs

This patch fixes several endian bugs in virtfs.

Cc: Aneesh Kumar K.V <>

Signed-off-by: Benjamin Herrenschmidt <>
Signed-off-by: David Gibson <>...

983eef5a 02/24/2012 10:30 am Meador Inge

./configure: add option for disabling VirtFS

Signed-off-by: Meador Inge <>
Signed-off-by: Aneesh Kumar K.V <>

bc62fa03 02/23/2012 11:43 pm Michael Roth

qemu-ga: add Windows service integration

This allows qemu-ga to function as a Windows service:

- to install the service (will auto-start on boot):
qemu-ga --service install
- to start the service:
net start qemu-ga
- to stop the service:
net stop qemu-ga...
546b60d0 02/23/2012 11:43 pm Michael Roth

qemu-ga: add win32 guest-shutdown command

Implement guest-shutdown RPC for Windows. Functionally this should be
equivalent to the posix implementation.

Original patch by Gal Hammer <>

7868e26e 02/23/2012 11:43 pm Michael Roth

qemu-ga: add initial win32 support

This adds a win32 channel implementation that makes qemu-ga functional
on Windows using virtio-serial (unix-listen/isa-serial not currently
implemented). Unlike with the posix implementation, we do not use
GIOChannel for the following reasons:...

125b310e 02/23/2012 11:40 pm Michael Roth

qemu-ga: move channel/transport functionality into wrapper class

This is mostly in preparation for the win32 port, which won't use
GIO channels for reasons that will be made clearer later. Here the
GAChannel class is just a loose wrapper around GIOChannel...

42074a9d 02/23/2012 11:40 pm Michael Roth

qemu-ga: separate out common commands from posix-specific ones

Many of the current RPC implementations are very much POSIX-specific
and require complete re-writes for Windows. There are however a small
set of core guest agent commands that are common to both, and other...

c216e5ad 02/23/2012 11:40 pm Michael Roth

qemu-ga: rename guest-agent-commands.c -> commands-posix.c

d8ca685a 02/23/2012 11:40 pm Michael Roth

qemu-ga: fixes for win32 build of qemu-ga

Various stubs and #ifdefs to compile for Windows using mingw
cross-build. Still has 1 linker error due to a dependency on the
forthcoming win32 versions of the GAChannel/transport class.

54383726 02/23/2012 11:40 pm Michael Roth

qemu-ga: Add schema documentation for types

Document guest agent schema types in similar fashion to qmp schema
types.

d06cddf5 02/23/2012 11:35 am Kevin Wolf

Merge qemu-iotests into for-anthony

5177c512 02/23/2012 11:29 am Christoph Hellwig

qemu-iotests: only run 016 for file and sheepdog protocols

016 writes past EOF which isn't support by most protocols, so limit
it to file and sheepdog, which explicitly support it.

Pointed out by Josh Durgin <>.

Signed-off-by: Christoph Hellwig <>

5e654e08 02/23/2012 11:29 am Mitnick Lyu

qemu-iotests: common.config: Fix no $TEST_DIR directory

mkdir $TEST_DIR on common.config first run

Signed-off-by: Mitnick Lyu <>
Signed-off-by: Christoph Hellwig <>

92eeab5b 02/23/2012 11:29 am Josh Durgin

qemu-iotests: Update rbd support

rbd implements bdrv_truncate, so test 025 will work.

Signed-off-by: Josh Durgin <>
Signed-off-by: Christoph Hellwig <>

25bb8a36 02/23/2012 11:29 am Stefan Hajnoczi

qemu-iotests: add qed support to 025 image resize test

QED now supports the truncate (aka resize) operation for growing images.
Update test 025 so it runs for QED.

Signed-off-by: Stefan Hajnoczi <>
Signed-off-by: Christoph Hellwig <>

bfe85248 02/23/2012 11:29 am Kevin Wolf

qemu-iotests: Update filter for default cluster size

Until recently, qemu-img create displayed cluster_size=0 for the default
cluster size. It is changed to display the real cluster size now, which results
in the cluster size not being filtered out any more....

8455e4ee 02/23/2012 11:29 am Kevin Wolf

qemu-iotests: test loading internal snapshots

Test loading internal snapshots where the L1 table of the snapshot
is smaller than the current L1 table.

Signed-off-by: Kevin Wolf <>
Signed-off-by: Christoph Hellwig <>

df4b627e 02/23/2012 11:29 am Lucas Meneghel Rodrigues

qemu-iotests: check: print relevant path information

Print the paths of the programs under test
(qemu, qemu-img and qemu-io).

Signed-off-by: Lucas Meneghel Rodrigues <>
Signed-off-by: Christoph Hellwig <>

d305fd5d 02/23/2012 11:29 am Lucas Meneghel Rodrigues

qemu-iotests: common.config: Allow use of arbitrary qemu* paths

Since we might want to test arbitrary qemu, qemu-img and
qemu-io paths, allow users to specify environment variable
values for QEMU_PROG, QEMU_IMG_PROG and QEMU_IO_PROG so
the testsuite will use those values rather than find them...

f5a4bbd9 02/23/2012 11:29 am Stefan Hajnoczi

qemu-iotests: add support for qed format

Signed-off-by: Stefan Hajnoczi <>
Signed-off-by: Christoph Hellwig <>

657c166f 02/23/2012 11:29 am Stefan Weil

qemu-iotests: README: Fix spelling

Signed-off-by: Stefan Weil <>
Signed-off-by: Christoph Hellwig <>

62284d17 02/23/2012 11:29 am Stefan Hajnoczi

qemu-iotests: filter IMGFMT correctly in 019

Test 019 can be run with qcow2 and qed image formats. Replace the
specific image format value with "IMGFMT" so the golden output does not
hardcode qcow2 or qed.

This patch also includes a typo fix for "occurrences"....

9cdfa1b3 02/23/2012 11:29 am MORITA Kazutaka

qemu-iotests: add support for rbd and sheepdog protocols

This patch introduces tests for protocols other than file, and
initially supports rbd and sheepdog.

Signed-off-by: MORITA Kazutaka <>
Signed-off-by: Christoph Hellwig <>

dd0c35d6 02/23/2012 11:29 am Stefan Hajnoczi

qemu-iotests: Use zero-based offsets for IO patterns

The io_pattern style functions have the following loop:

for i in `seq 1 $count`; do
echo ... $(( start + i * step )) ...
done

Offsets are 1-based so start=1024, step=512, count=4 yields:
1536, 2048, 2560, 3072...

2684871a 02/23/2012 11:29 am Christoph Hellwig

qemu-iotests: filter TEST_DIR correctly in 019

Signed-off-by: Kevin Wolf <>

a97e45c8 02/23/2012 10:59 am Stefan Weil

tcg: Remove unneeded include statements

The standard include files are already included in qemu-common.h.

malloc.h and alloca.h were needed for alloca() which was removed
from TCG code some years ago when switching from dyngen to TCG
(see commit 49516bc0d622112caac9df628caf19010fda8b67)....

3b26486a 02/23/2012 10:59 am Peter Maydell

vl.c: Increase width of machine name column in "-M ?" output

Increase the width of the column used for the machine name in
the "-M ?" output from 10 to 20 spaces. This fixes the formatting
so it looks nice for architectures where a few of the machines
have overly long names. (Our current longest machine name is...

df07ec56 02/22/2012 09:24 pm Eduardo Habkost

cpu defs: remove replicated flags from Intel (v2)

This patch removes the replicated feature flags from cpuid 8000_0001:edx
(extfeature_edx) from Intel models, as the duplicated feature flags are present
only on AMD CPUs. On Intel models, only the i64, syscall, and xd flags are kept...

c58a6694 02/22/2012 09:24 pm Eduardo Habkost

add Westmere as a qemu cpu model (v2)

Version 1 of this patch was:

Message-Id: <
http://marc.info/?l=qemu-devel&m=130704415919346

This version doesn't have the duplicate feature bits on extfeature_edx, though,...

adbbdf24 02/22/2012 09:24 pm Eduardo Habkost

cpu defs: uncomment empty extfeatures_ecx definition for Opteron_G1 (v2)

This should have no visible effect, but it should just clean up the
config file a bit.

This is based on a previous patch from John Cooper where this was introduced
with many other changes at the same time. Original John's patch submission is...

f0cdc966 02/22/2012 09:24 pm Alexander Barabash

qom: In function object_set_link_property(), first call object_ref(), then object_unref().

In the old implementation, if the new value of the property links
to the same object, as the old value, that object is first unref-ed,
and then ref-ed. This leads to unintended deinitialization of that object....

0ce01375 02/22/2012 09:24 pm Eduardo Habkost

cpu defs: add pse36, mca, mtrr to AMD CPU definitions (v2)

This patch adds some missing flags to extfeature_edx, that were missing
according to AMD's latest CPUID document.

This is based on a previous patch from John Cooper where this was introduced
with many other changes at the same time. Original John's patch submission is...

f370be3c 02/22/2012 09:24 pm Eduardo Habkost

cpu flags: aliases: pclmuldq|pclmulqdq and ffxsr|fxsr_opt

pclmulqdq: /proc/cpuinfo on Linux and all documentation I have seen uses
pclmulqdq as the flag name. As the only document using pclmuldq seems to
be the Intel CPUID documentation (Application Note 485), it looks like a...

3ac8ebfe 02/22/2012 09:24 pm Eduardo Habkost

cpu defs: use Intel flag names for Intel models (v2)

Use 'i64' instead of 'lm' and 'xd' instead of 'nx' on Intel models.

The flags have different names on Intel docs, so use those names for clarity.

This is based on a previous patch from John Cooper where this was introduced...

de7724f7 02/22/2012 09:24 pm Paolo Bonzini

split SCSI and LSI, add myself as SCSI maintainer

This has been the de facto situation for a while now.
Add a tree, too.

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

f5244e93 02/22/2012 09:24 pm Eduardo Habkost

cpu models: reorder flag list to match bit order

This will make it easier to review and change the flag list in the future.

No behaviour change should be introduced by this, as it is just changing
the flag order on the config file.

To make sure the flag sets are really not changed by this patch, I have...

6f382ed2 02/22/2012 09:23 pm Luiz Capitulino

qmp: add DEVICE_TRAY_MOVED event

It's emitted whenever the tray is moved by the guest or by HMP/QMP
commands.

Signed-off-by: Luiz Capitulino <>
Reviewed-by: Markus Armbruster <>
Acked-by: Kevin Wolf <>

bde25388 02/22/2012 09:23 pm Luiz Capitulino

ide: drop ide_tray_state_post_load()

This is used to sync the physical tray state after migration when
using CD-ROM passthrough. However, migrating when using passthrough
is broken anyway and shouldn't be supported...

So, drop this function as it causes a problem with the DEVICE_TRAY_MOVED...

d88b1819 02/22/2012 09:23 pm Luiz Capitulino

block: Don't call bdrv_eject() if the tray state didn't change

It's not needed. Besides we can then assume that bdrv_eject() is
only called when there's a tray state change, which is useful to
the DEVICE_TRAY_MOVED event (going to be added in a future
commit)....

f36f3949 02/22/2012 09:23 pm Luiz Capitulino

block: bdrv_eject(): Make eject_flag a real bool

Signed-off-by: Luiz Capitulino <>
Reviewed-by: Markus Armbruster <>
Acked-by: Kevin Wolf <>

329c0a48 02/22/2012 09:22 pm Luiz Capitulino

block: Rename bdrv_mon_event() & BlockMonEventAction

They are QMP events, not monitor events. Rename them accordingly.

Also, move bdrv_emit_qmp_error_event() up in the file. A new event will
be added soon and it's good to have them next each other.

Signed-off-by: Luiz Capitulino <>...

235fe3bf 02/22/2012 08:18 pm Anthony Liguori

qom: add test tools

Tested-by: Andreas F=E4rber <>
Signed-off-by: Anthony Liguori <>
Signed-off-by: Michael Roth <>
Signed-off-by: Anthony Liguori <>