Statistics
| Branch: | Revision:

root / hw @ 43997225

# Date Author Comment
43997225 04/25/2012 02:14 pm Amit Shah

virtio-serial-bus: Unset guest_connected at reset and driver reset

When a guest driver resets the virtio status to not ready, or when qemu
is reset, reset all ports' guest_connected bit and let port users know
of this event if they have the guest_close() callback registered....

62a9fbf7 04/25/2012 02:04 pm Alon Levy

virtio-serial-bus: fix guest_connected init before driver init

guest_connected should be false before guest driver initialization, and
true after, both for multiport aware and non multiport aware drivers.

Don't set it before the guest_features are available; instead use...

964c695a 04/20/2012 06:39 pm Eric Benard

versatiblepb: add NOR flash support

- add support for the 64MB NOR CFI01 flash available at
0x34000000 on the versatilepb board
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0225d/BBAJIHEC.html

- tested with barebox bootloader

Signed-off-by: Eric Bénard <>...

d1157ca4 04/20/2012 06:38 pm Oskar Andero

realview: break out versatile i2c controller code

The versatile i2c controller implementation was separated to
its own file called versatile_i2c.c. This is done as a preparation
for adding i2c support to the versatilepb board.

Signed-off-by: Oskar Andero <>...

b1f05696 04/20/2012 06:38 pm Oskar Andero

versatilepb: add ds1338 rtc device

Add ds1338 rtc attached on i2c.

Signed-off-by: Oskar Andero <>
Signed-off-by: Peter Maydell <>

bdac1c1e 04/20/2012 06:38 pm Peter Maydell

hw/arm_mptimer: Reset the qemu_timer at reset

On reset of the mpcore timer/watchdog block we need to
delete the qemu_timer in case it was running.

Signed-off-by: Peter Maydell <>

51006bbc 04/18/2012 06:06 pm Anthony Liguori

Merge remote-tracking branch 'origin/master' into staging

  • origin/master:
    Allow controlling volume with PulseAudio backend
    configure: pa_simple is not needed anymore
    Do not use pa_simple PulseAudio API
    audio/spice: add support for volume control...
25b9e14e 04/18/2012 03:56 pm Anthony Liguori

Merge remote-tracking branch 'spice/spice.v52' into staging

  • spice/spice.v52:
    qxl-render: fix broken vnc+spice since commit f934493
    qxl: set default values of vram*_size_mb to -1
    trace-events: remove unused qxl_vga_ioport_while_not_in_vga_mode
79ce3567 04/18/2012 01:21 pm Alon Levy

qxl: set default values of vram*_size_mb to -1

The addition of those values caused a regression where not specifying
any value for the vram bar size would result in a 4096 byte surface
area. This is ok for the windows driver but causes the X driver to be...

06ddea49 04/18/2012 01:21 pm Alon Levy

qxl-render: fix broken vnc+spice since commit f934493

Notify any listeners such as vnc that the displaysurface has been
changed, otherwise they will segfault when first accessing the freed old
displaysurface data.

Signed-off-by: Alon Levy <>...

5b723926 04/17/2012 03:57 pm Marc-André Lureau

hw/ac97: the volume mask is not only 0x1f

It's a case by case (see Table 66. AC ?97 Baseline Audio Register Map)

Signed-off-by: Marc-Andr? Lureau <>
Signed-off-by: malc <>

19677a38 04/17/2012 03:57 pm Marc-André Lureau

hw/ac97: add support for volume control

Combine output volume with Master and PCM registers values.
Use default values in mixer_reset ().
Set volume on post-load to update backend values.

v4,v5:
- fix some code style

Signed-off-by: Marc-Andr? Lureau <>...

ed2997cd 04/17/2012 03:57 pm Marc-André Lureau

hw/ac97: remove USE_MIXER code

That code doesn't compile. The interesting bits for volume control are
going to be rewritten in the following patch.

Signed-off-by: Marc-Andr? Lureau <>
Signed-off-by: malc <>

c7020c97 04/17/2012 11:23 am Gerd Hoffmann

usb-ehci: drop assert()

Not sure what the purpose of the assert() was, in any case it is bogous.
We can arrive there if transfer descriptors passed to us from the guest
failed to pass sanity checks, i.e. it is guest-triggerable. We deal
with that case by resetting the host controller. Everything is ok, no...

088351a7 04/17/2012 11:23 am Gerd Hoffmann

usb-ehci: fix ehci_child_detach

Looks like a cut+paste bug from ehci_detach. When the device itself is
detached from a ehci port (ehci_detach op) we have to clear the
device pointer for the companion port too. When a device gets removed
from a downstream port of a usb hub (ehci_child_detach op) the ehci port...

58ea88d8 04/17/2012 11:23 am Hans de Goede

usb-ehci: frindex always is a 14 bits counter

frindex always is a 14 bits counter, and not a 13 bits one as we were
emulating. There are some subtle hints to this in the spec, first of all
"Table 2-12. FRINDEX - Frame Index Register" says:
"Bit 13:0 Frame Index. The value in this register increments at the end of...

d3f904ea 04/17/2012 11:23 am Gerd Hoffmann

usb: add USBDescriptor, use for device descriptors.

This patch adds a new type for the binary representation of usb
descriptors. It is put into use for the descriptor generator code
where the struct replaces the hard-coded offsets.

Signed-off-by: Gerd Hoffmann <>

3cfeee61 04/17/2012 11:23 am Gerd Hoffmann

usb: use USBDescriptor for device qualifier descriptors.

Add device qualifier substruct to USBDescriptor,
use it in the descriptor generator code.

Signed-off-by: Gerd Hoffmann <>

0a263db1 04/17/2012 11:23 am Gerd Hoffmann

usb: use USBDescriptor for config descriptors.

Add config descriptor substruct to USBDescriptor,
use it in the descriptor generator code.

Signed-off-by: Gerd Hoffmann <>

feafd797 04/17/2012 11:23 am Gerd Hoffmann

usb: use USBDescriptor for interface descriptors.

Add interface descriptor substruct to USBDescriptor,
use it in the descriptor generator code.

Signed-off-by: Gerd Hoffmann <>

e36a20d3 04/17/2012 11:23 am Gerd Hoffmann

usb: use USBDescriptor for endpoint descriptors.

Add endpoint descriptor substruct to USBDescriptor,
use it in the descriptor generator code.

Signed-off-by: Gerd Hoffmann <>

96dd9aac 04/17/2012 11:23 am Gerd Hoffmann

usb-host: rewrite usb_linux_update_endp_table

This patch carries a complete rewrite of the usb descriptor parser.
Changes / improvements:

  • We are using the USBDescriptor struct instead of hard-coded offsets
    now to access descriptor data.
  • (debug) printfs are all gone, tracepoints have been added instead....
8e24283b 04/17/2012 11:23 am Hans de Goede

usb-ehci: Drop unused sofv value

The sofv value only ever gets a value assigned and is never used (read)
anywhere, so we can just drop it.

Signed-off-by: Hans de Goede <>
Signed-off-by: Gerd Hoffmann <>

714f9db0 04/17/2012 11:23 am Hans de Goede

usb-redir: Notify our peer when we reject a device due to a speed mismatch

Also cleanup (reset) our device state when we reject a device due to a
speed mismatch.

Signed-off-by: Hans de Goede <>
Signed-off-by: Gerd Hoffmann <>

52b0fecd 04/17/2012 11:23 am Gerd Hoffmann

usb-uhci: stop queue filling when we find a in-flight td

Not only QHs can form rings, but TDs too. With the new
queuing/pipelining support we are following TD chains and
can actually walk in circles. An assert() prevents us from
entering an endless loop then....

ee008ba6 04/17/2012 11:23 am Gerd Hoffmann

usb-uhci: queuing fix

When we queue up usb packets we may happen to find a already queued
packet, which also might be finished at that point already. We don't
want continue processing the packet at this point though, so lets
just signal back we've found a in-flight packet when in queuing mode....

65bb3a5c 04/17/2012 11:23 am Gerd Hoffmann

Add bootindex support to usb-host and usb-redir

When passing through a usb pendrive seabios will present it in the F12
boot menu and will happily boot from it.

This patch adds bootorder support so you can even make it the default
boot device.

Signed-off-by: Gerd Hoffmann <>

e382e751 04/17/2012 11:23 am Gerd Hoffmann

usb-host: trace emulated requests

Add tracepoint to track completion of emulated control requests.

Signed-off-by: Gerd Hoffmann <>

6aebe407 04/17/2012 11:23 am Gerd Hoffmann

usb-host: trace canceled requests

Add tracepoints to track canceled requests.

Signed-off-by: Gerd Hoffmann <>

19b89252 04/17/2012 11:23 am Gerd Hoffmann

usb-host: add usb packet to request tracepoints

Add pointer to USBPacket to all tracepoints tracking requests to make it
easier to identify them when multiple requests are in flight.

Signed-off-by: Gerd Hoffmann <>

39c20577 04/17/2012 11:23 am Gerd Hoffmann

usb-host: add property to turn off pipelining

Add a property to usb-host to disable the bulk endpoint pipelining.

Signed-off-by: Gerd Hoffmann <>

f5bf14bf 04/17/2012 11:23 am Gerd Hoffmann

usb_packet_set_state: handle p->ep == NULL

usb_packet_set_state can be called with p->ep = NULL. The tracepoint
there tries to log endpoint information, which leads to a segfault.
This patch makes usb_packet_set_state handle the NULL pointer properly.

Signed-off-by: Gerd Hoffmann <>

529f8f9f 04/17/2012 11:23 am Gerd Hoffmann

usb-hub: add tracepoints

Add tracepoints to the usb hub emulation.

Signed-off-by: Gerd Hoffmann <>

eeb0cf9a 04/17/2012 11:23 am Gerd Hoffmann

usb/vmstate: add parent dev path

... to make vmstate id string truely unique with multiple host
controllers, i.e. move from "1/usb-ptr" to "0000:00:01.3/1/usb-ptr"
(usb tabled connected to piix3 uhci).

This obviously breaks migration. To handle this the usb bus...

fc34e77b 04/16/2012 08:56 pm Anthony Liguori

Merge remote-tracking branch 'kiszka/queues/pending' into staging

  • kiszka/queues/pending:
    vapic: Disable for pre-1.1 machines
    Kick io-thread on qemu_chr_accept_input
    pcnet: Properly handle TX requests during Link Fail
    pcnet: Clear ERR in CSR0 on stop...
52346e8c 04/16/2012 08:52 pm Anthony Liguori

Merge remote-tracking branch 'mst/tags/for_anthony' into staging

  • mst/tags/for_anthony:
    pci: fix corrupted pci conf index register by unaligned write
    acpi: explicitly account for >1 device per slot
    acpi_piix4: Re-define PCI hotplug eject register read...
8a6b8708 04/16/2012 08:50 pm Anthony Liguori

Merge remote-tracking branch 'sstabellini/for_anthony' into staging

  • sstabellini/for_anthony:
    xen: introduce an event channel for buffered io event notifications
    xen-mapcache: don't unmap locked entry during mapcache invalidation
    Xen, mapcache: Fix the compute of the size of bucket....
9bea6a29 04/16/2012 04:41 pm Jan Kiszka

vapic: Disable for pre-1.1 machines

The kvmvapic was not present in older QEMU versions, thus must be
disabled in compat machines.

Signed-off-by: Jan Kiszka <>

ef45c914 04/16/2012 04:41 pm Jan Kiszka

pcnet: Properly handle TX requests during Link Fail

As long as we have no link and we aren't in internal loopback mode, no
packet must be sent. Instead, LCAR needs to be set in any active TX
descriptor and also CERR in CSR0.

Signed-off-by: Jan Kiszka <>

6655124d 04/16/2012 04:41 pm Jan Kiszka

pcnet: Clear ERR in CSR0 on stop

pcnet_stop already clears any reason (BABL, CERR, MISS, MERR) why ERR
(bit 15) should be set in CRS0. So we have to clear that bit as well.

Signed-off-by: Jan Kiszka <>

c17491b6 04/15/2012 09:07 pm David Gibson

pseries: Fix reset of VIO network device

Currently, the PAPR VIO network device does not have a reset handler. This
means that after a hard reset, H_REGISTER_LOGICAL_LAN will return an error
when the new guest boot attempts to initialize the device.

This patch corrects this, adding a suitable reset hook....

e2d9154d 04/15/2012 09:02 pm David Gibson

pseries: Remove old debug leftovers from spapr_vscsi

The PAPR VSCSI emulation contains a few lines of code which were once used
for debug but now do nothing at all. This patch removes them.

Signed-off-by: David Gibson <>
Signed-off-by: Andreas Färber <>

91067bf8 04/15/2012 09:02 pm David Gibson

pseries: Remove old hcalls hook stub

Some time ago we removed all use of the 'hcalls' callback in the pseries
VIO code, which was used to workaround an ordering problem which has since
been solved properly. However, the function pointer for the hook remains....

b1c7f725 04/15/2012 09:02 pm David Gibson

pseries: Correctly use the device model reset hooks

Recently we added code to properly clean away VIO CRQs on reset However,
this directly uses qemu_register, rather than the existing device model
reset callbacks. This patch cleans this up by adding proper use of the...

3cabba60 04/15/2012 09:02 pm David Gibson

pseries: Reset vscsi properly

Currently the PAPR vscsi implementation does not properly clear its table
of request tags when the system is reset. This patch adds a reset hook
to do so.

Signed-off-by: David Gibson <>
Signed-off-by: Andreas Färber <>

92615a5a 04/15/2012 09:02 pm David Gibson

pseries: Fix RTAS based config access

On the pseries platform, access to PCI config space is via RTAS calls(
which go to the hypervisor) rather than MMIO. This means we don't use
the same code path as nearly everyone else which goes through pci_host.c
and we're missing some of the parameter checking along the way....

d9599c92 04/15/2012 06:07 pm David Gibson

pseries: Clean up hcall_dprintf() debugging messages

The pseries machine code has a number of debug messages for debugging PAPR
hypercalls, dependent on DEBUG_SPAPR_HCALLS. This patch cleans these
messages up a bit, by adding func to the hcall_dprintf() macro and...

8e01f355 04/15/2012 06:07 pm David Gibson

pseries: Fix bug with reset of VIO CRQs

PAPR specifies a Command Response Queue (CRQ) mechanism used for virtual
IO, which we implement. However, we don't correctly clean up registered
CRQs when we reset the system.

This patch adds a reset handler to fix this bug. While we're at it, add...

c821a43c 04/15/2012 06:07 pm David Gibson

pseries: Implement RTAS system-reboot call

This patch adds the PAPR defined RTAS system-reboot call to the pseries
machine emulation, providing the guest with a way to trigger a reboot.

Signed-off-by: David Gibson <>
Signed-off-by: Andreas Färber <>

3b768df9 04/15/2012 06:07 pm David Gibson

pseries: Remove unused fields from VIOsPAPRBus structure

The VIOsPAPRBus structure, used on the pseries machine contains some old
fields which are no longer used anywhere. This patch removes them.

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

5f2e2ba2 04/15/2012 06:07 pm David Gibson

pseries: Consolidate hack for RTAS display-character usage

Currently the pseries machine contains not one but two somewhat ugly hacks
to allow printing of early debug messages before the guest has properly
read the device tree.

First, we special case H_PUT_TERM_CHAR so that a vtermno of 0 (usually...

7faa8075 04/15/2012 12:17 pm Alex Williamson

acpi_piix4: Fix PCI hotplug race

As Michael Tsirkin demonstrated, current PCI hotplug is vulnerable
to a few races. The first is a race with other hotplug operations
because we clear the up & down registers at each event. If a new
event comes before the last is processed, up/down is cleared and...

31745aab 04/15/2012 12:17 pm Alex Williamson

acpi_piix4: Remove PCI_RMV_BASE write code

Clarify this register as read-only and remove write code. No
change in existing behavior.

Signed-off-by: Alex Williamson <>
Signed-off-by: Michael S. Tsirkin <>

9290f364 04/15/2012 12:17 pm Alex Williamson

acpi_piix4: Re-define PCI hotplug eject register read

The PCI hotplug eject register has always returned 0, so let's redefine
it as a hotplug feature register. The existing model of using separate
up & down read-only registers and an eject via write to this register...

54bfa546 04/15/2012 12:17 pm Michael S. Tsirkin

acpi: explicitly account for >1 device per slot

Slot present bit is cleared apparently for each device. Hotplug and non
hotplug devices should not mix normally, and we only set the bit when we
add a device so it should all work out, but it's more robust to...

cdde6ffc 04/15/2012 12:17 pm Avi Kivity

pci: fix corrupted pci conf index register by unaligned write

Commit d0ed8076cbdc261 converted the PCI config access to the memory
API, but also inadvertantly changed it to accept unaligned writes,
and corrupt the index register in the process. This causes a regression...

ba737541 04/15/2012 12:17 pm Alex Williamson

acpi_piix4: Disallow write to up/down PCI hotplug registers

The write side of these registers is never used and actually can't be
used as defined because any read/modify/write sequence from the guest
potentially races with qemu. Drop the write support and define these...

e92861cc 04/14/2012 01:55 pm Blue Swirl

Merge branch 'arm-devs.for-upstream' of git://git.linaro.org/people/pmaydell/qemu-arm

  • 'arm-devs.for-upstream' of git://git.linaro.org/people/pmaydell/qemu-arm:
    hw/arm_gic: Remove stray hardcoded tab
    hw/arm_gic: gic_set_pending_private() is NVIC only...
77ba8fef 04/13/2012 08:34 pm Stefano Stabellini

xen: handle backend deletion from xenstore

Signed-off-by: Stefano Stabellini <>

9468e9c4 04/13/2012 08:34 pm Wei Liu

Xen: Add xen-apic support and hook it up.

Signed-off-by: Wei Liu <>
Signed-off-by: Stefano Stabellini <>
Acked-by: Paolo Bonzini <>

f1dbf015 04/13/2012 08:34 pm Wei Liu

Xen: basic HVM MSI injection support.

Signed-off-by: Wei Liu <>
Signed-off-by: Stefano Stabellini <>

7672725d 04/13/2012 04:04 pm Anthony Liguori

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

  • stefanha/trivial-patches:
    configure: Insist on a Python 2, not Python 3
    bsd-user: fix compile failure
    ps2: avoid repeated header file includes
    make: Always set LC_ALL=C for makeinfo...
2e9dfe20 04/13/2012 03:29 pm Peter Maydell

hw/arm11mpcore: Convert to using sysbus GIC device

Convert arm11mpcore to using the standalone sysbus GIC device.

Signed-off-by: Peter Maydell <>

aecff692 04/13/2012 03:29 pm Peter Maydell

hw/arm_gic: Make gic_reset a sysbus reset function

Make gic_reset a sysbus reset function, so we actually
reset the GIC on system reset rather than only at init.
For the NVIC this requires us also to implement reset
of the SysTick.

Signed-off-by: Peter Maydell <>

0d256bdc 04/13/2012 03:29 pm Peter Maydell

hw/arm_gic: Use NVIC instead of LEGACY_INCLUDED_GIC define

Now all the A profile cores have been switched to use the standalone
sysbus GIC, the only remaining code which #includes arm_gic.c is
the v7M NVIC. The coupling is much closer here so it's not so...

b7dc1a59 04/13/2012 03:29 pm Peter Maydell

hw/arm_gic: gic_set_pending_private() is NVIC only

The function gic_set_pending_private() is now used by the NVIC
only (for the GIC we now set PPI interrupts via gpio lines and
gic_set_irq()). So make it #ifdef NVIC and remove the 'attribute
unused' annotation....

c79981ce 04/13/2012 03:29 pm Peter Maydell

hw/arm_gic: Remove stray hardcoded tab

Remove the single instance of a hardcoded tab from hw/arm_gic.c.

Signed-off-by: Peter Maydell <>

4637a027 04/13/2012 03:29 pm Peter Maydell

hw/a15mpcore: switch to using sysbus GIC

Switch the a15mpcore private peripheral region to using
the standalone sysbus GIC device.

Signed-off-by: Peter Maydell <>

ddd76165 04/13/2012 03:29 pm Peter Maydell

hw/a9mpcore: Switch to using sysbus GIC

Switch the a9mpcore to using the sysbus GIC device rather
than having the a9mp private memory region device subclass
the GIC.

Signed-off-by: Peter Maydell <>

fbbd05dc 04/13/2012 03:29 pm Peter Maydell

hw/realview_gic: switch to sysbus GIC

Switch the realview_gic device to the standalone sysbus GIC.

Signed-off-by: Peter Maydell <>

23b92f60 04/13/2012 03:29 pm Peter Maydell

hw/exynos4210_gic: Convert to using sysbus GIC

Convert the Exynos GIC code to use the standalone sysbus
GIC device.

Signed-off-by: Peter Maydell <>
Reviewed-by: Evgeny Voevodin <>

386e2955 04/13/2012 02:39 pm Peter Maydell

hw/arm_gic: Move NCPU definition to arm_gic.c

Move the NCPU definition to arm_gic.c: the maximum number
of CPU interfaces is defined by the GIC architecture specification
to be 8, so we don't need to have this #define in each of the
sources files which currently includes arm_gic.c....

926c4aff 04/13/2012 02:39 pm Peter Maydell

hw/arm_gic: Move gic_get_current_cpu into arm_gic.c

Move the gic_get_current_cpu() function into arm_gic.c.
There are only two implementations: (1) "get the index
of the currently executing CPU", used by all multicore
GICs, and (2) "always 0", used by all GICs instantiated...

544d1afa 04/13/2012 02:39 pm Peter Maydell

hw/arm_gic: Expose PPI inputs as gpio inputs

Expose the Private Peripheral Interrupt inputs as GPIO inputs.
The layout of the GPIO array is thus:
[0..N-1] SPIs
[N..N+31] PPIs for CPU 0
[N+32..N+63] PPIs for CPU 1
...

Treating PPIs as being another kind of input line is in line with the...

496dbcd1 04/13/2012 02:39 pm Peter Maydell

hw/arm_gic: Make the GIC its own sysbus device

Compile arm_gic.c as a standalone C file to produce a self contained
sysbus GIC device. Support the legacy usage by #include of the .c file
by making those users #define LEGACY_INCLUDED_GIC, so we can convert...

b85f62d7 04/13/2012 02:39 pm Daniel P. Berrange

Fix bit test in Exynos4210 UART emulation to use & instead of &&

  • hw/exynos4210_uart.c: s/&&/&/

Signed-off-by: Daniel P. Berrange <>
Signed-off-by: Peter Maydell <>

3f088e36 04/13/2012 02:39 pm Evgeny Voevodin

ARM: Exynos4210: Drop gic_cpu_write() after initialization.

Remove gic_cpu_write() call after initialization that was emulating
functionality of earliest SOC bootloader which enables external
GIC CPU1 interface. Instead introduce Exynos4210-specific secondary...

5181b50f 04/13/2012 02:39 pm Evgeny Voevodin

hw/exynos4210_combiner.c: Drop excessive read/write access check.

Access to reserved area at offset higher than 0x3c is allowed in
External Combiner. Samsung Galaxy Kernel implements this. So, drop
excessive checks in read/write functions.

Signed-off-by: Evgeny Voevodin <>...

f349c12c 04/13/2012 01:01 am Eric B Munson

kvmclock: guest stop notification

Often when a guest is stopped from the qemu console, it will report spurious
soft lockup warnings on resume. There are kernel patches being discussed that
will give the host the ability to tell the guest that it is being stopped and...

4b8f1c88 04/13/2012 01:01 am Michael S. Tsirkin

kvm: allow arbitrarily sized mmio ioeventfd

We use a 2 byte ioeventfd for virtio memory,
add support for this.

Signed-off-by: Michael S. Tsirkin <>
Reviewed-by: Amos Kong <>
Signed-off-by: Avi Kivity <>

fd65f595 04/12/2012 01:14 pm Wanpeng Li

ps2: avoid repeated header file includes

Signed-off-by: Wanpeng Li <>
Signed-off-by: Stefan Hajnoczi <>

3e48dd4a 04/11/2012 08:30 pm Stefan Hajnoczi

rtl8139: do not assume TxStatus[] and TxAddr[] are adjacent

Commit afe0a595356192d5f79703cf6462fcc112df007c ("rtl8139: support byte
read to TxStatus registers") reused rtl8139_TxStatus_read() for reading
TxAddr registers. It relies on the fact that TxStatus[] and TxAddr[]...

4490c711 04/11/2012 01:24 pm Michael S. Tsirkin

ivshmem: add missing msix calls

ivshmem used msix but didn't call it on either reset or
config write paths. This used to partically work since
guests don't use all of msi-x configuration fields,
and reset is rarely used, but the patch 'msix: track function masked...

2ba1d381 04/11/2012 01:24 pm David Gibson

virtio-pci: change virtio balloon PCI class code

Currently the virtio balloon device, when using the virtio-pci interface
advertises itself with PCI class code MEMORY_RAM. This is wrong; the
balloon is vaguely related to memory, but is nothing like a PCI memory...

d50c6c8b 04/11/2012 01:19 pm Alexey Korolev

piix_pci: fix typo in i400FX chipset init code

There is a typo in i440FX init code. This is causing problems when
somebody wants to access the 64bit PCI range.

Signed-off-by: Alexey Korolev <>
Signed-off-by: Michael S. Tsirkin <>

d6c73008 04/11/2012 01:19 pm Michael S. Tsirkin

pc: reduce duplication in compat machine types

Make it easier to add compat properties, by
adding macros for properties duplicated across
machine types.

Note: there could be bugs in compat properties,
this patch does not attempt to address them,
the code is bug for bug identical to the original....

e314672a 04/11/2012 01:19 pm Alex Williamson

vhost: Fix size of dirty log sync on resize

When the vhost log is resized, we want to sync up to
the size of the old log. With that end address in place,
ignore regions that start after then end rather than
hitting assert.

This also addresses the following crash report:...

fbbaf9ae 04/11/2012 01:19 pm Michael S. Tsirkin

vhost: readd assert statement

It's clear from the surrounding code that
start < end so it's enough to assert end < log_size.
However, it's better to make this explicit in case
we refactor the code again.

Signed-off-by: Michael S. Tsirkin <>

4e1957ac 04/10/2012 04:21 pm Anthony Liguori

Merge commit 'ff71f2e8cacefae99179993204172bc65e4303df' into staging

  • commit 'ff71f2e8cacefae99179993204172bc65e4303df': (21 commits)
    rtl8139: do the network/host communication only in normal operating mode
    rtl8139: correctly check the opmode
    net: move compute_mcast_idx() to net.h...
6da25bd5 04/10/2012 04:17 pm Anthony Liguori

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

  • qmp/queue/qmp:
    qapi: convert device_del
    qdev: qdev_unplug(): use error_set()
bb5d8dd7 04/10/2012 04:16 pm Anthony Liguori

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

  • kwolf/for-anthony: (46 commits)
    qed: remove incoming live migration blocker
    qed: honor BDRV_O_INCOMING for incoming live migration
    migration: clear BDRV_O_INCOMING flags on end of incoming live migration...
2c097f60 04/10/2012 01:35 pm Peter A. G. Crosthwaite

petalogix_s3adsp1800: deleted bad FIXME comment

This FIXME has already been actioned. Deleted comment.

Signed-off-by: Peter A. G. Crosthwaite <>
Signed-off-by: Edgar E. Iglesias <>

56f9107e 04/09/2012 08:35 pm Luiz Capitulino

qdev: qdev_unplug(): use error_set()

It currently uses qerror_report(), but next commit will convert
the drive_del command to the QAPI and this requires using
error_set().

One particularity of qerror_report() is that it knows when it's
running on monitor context or command-line context and prints the...

a15fef21 04/09/2012 08:35 pm Luiz Capitulino

qapi: convert device_del

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>
Reviewed-by: Stefan Hajnoczi <>

5cbdb3a3 04/07/2012 05:00 pm Stefan Weil

Replace Qemu by QEMU in comments

The official spelling is QEMU.

Signed-off-by: Stefan Weil <>
Reviewed-by: Andreas Färber <>
[: fixed comment style in hw/sun4m.c]
Signed-off-by: Blue Swirl <>

02fda01c 04/05/2012 03:54 pm Stefan Hajnoczi

qdev: add blocksize property type

Storage interfaces like virtio-blk can be configured with block size
information so that the guest can take advantage of efficient I/O
request sizes.

According to the SCSI Block Commands (SBC) standard a device's block
size is "almost always greater than one byte and may be a multiple of...

43cf8ae6 04/05/2012 03:54 pm David Gibson

Use DMADirection type for dma_bdrv_io

Currently dma_bdrv_io() takes a 'to_dev' boolean parameter to
determine the direction of DMA it is emulating. We already have a
DMADirection enum designed specifically to encode DMA directions.
This patch uses it for dma_bdrv_io() as well. This involves removing...

27e0c9a1 04/05/2012 03:54 pm Floris Bos

ide: Add "model=s" qdev option

Allow the user to override the default disk model name "QEMU HARDDISK".

Some Linux distributions use the /dev/disk/by-id/scsi-SATA_name-of-disk-
model_serial addressing scheme when refering to partitions in /etc/fstab
and elsewhere. This causes problems when starting a disk image taken from...

aa2c91bd 04/05/2012 03:54 pm Floris Bos

ide: Change serial number strncpy() to pstrcpy()

strncpy may not null-terminate the destination string.

Cc:
Signed-off-by: Floris Bos <>
Signed-off-by: Kevin Wolf <>

95ebda85 04/05/2012 03:54 pm Floris Bos

ide: Adds wwn=hex qdev option

Allow the user to specify a disk's World Wide Name.

Linux guests can address disks by their unique World Wide Name number
(e.g. /dev/disk/by-id/wwn-0x5001517959123522). This patch adds support
for assigning a World Wide Name number to a virtual IDE disk....