Statistics
| Branch: | Revision:

root / hw @ f6049f44

# Date Author Comment
f6049f44 08/09/2013 06:50 pm Peter Maydell

hw/virtio/virtio: Don't allow guests to add/remove queues

A queue size of 0 is used to indicate a nonexistent queue, so
don't allow the guest to flip a queue between zero-size and
non-zero-size. Don't permit setting of negative queue sizes
either.

Signed-off-by: Peter Maydell <>...

2e985fe0 08/09/2013 12:06 am Aurelien Jarno

mips: revert commit b332d24a8e1290954029814d09156b06ede358e2

Now that this code path is not triggered anymore during the tests,
revert commit b332d24a8e1290954029814d09156b06ede358e2. Booting a MIPS
target without kernel nor bios doesn't really make sense. At the same...

6fdf98f2 08/07/2013 08:48 pm Paolo Bonzini

fw_cfg: the I/O port variant expects little-endian

The I/O port variant of fw_cfg is used by sparc64, which is a big-endian machine.
Firmware swaps bytes before sending them to fw_cfg, so we need to unswap them in
the device.

This is only used on sparc64 and on (little-endian) x86, so it does not affect...

0dd5ce38 08/07/2013 08:46 pm Martijn van den Broek

Bugfix for loading multiboot kernels

This patch fixes a bug in rom_copy introduced by
commit d60fa42e8bae39440f997ebfe8fe328269a57d16.

rom_copy failed to load roms with a "datasize" of 0.
As a result, multiboot kernels were not loaded correctly
when they contain a segment with a "file size" of 0....

cd7b87ff 08/06/2013 08:27 pm Andreas Färber

target-i386: Fix X86CPU error handling

Error **errp argument is not for emitting warnings, it means an error
has occurred and the caller should not make any assumptions about the
state of other return values (unless otherwise documented).

Therefore cpu_x86_create() must unref the new X86CPU itself, and...

be2f78b6 08/05/2013 07:46 pm Andreas Färber

pxa2xx: Avoid object_get_link_property() assertion for "parent_bus"

pxa2xx_i2c_init() creates a pxa2xx-i2c-slave device on a second i2c-bus,
which has a NULL parent device. This causes an assertion in
object_get_canonical_path() when accessing pxa2xx-i2c-slave's...

59a88774 08/05/2013 04:01 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/net' into staging

  1. By Jan Kiszka
  2. Via Stefan Hajnoczi
    • stefanha/net:
      pcnet: Flush queued packets on end of STOP state

Message-id:
Signed-off-by: Anthony Liguori <>

d94c426d 08/05/2013 04:01 pm Anthony Liguori

Merge remote-tracking branch 'kraxel/usb.86' into staging

  1. By Gerd Hoffmann
  2. Via Gerd Hoffmann
    • kraxel/usb.86:
      usb-redir: fix use-after-free
      xhci: fix segfault

Message-id:
Signed-off-by: Anthony Liguori <>

ee76c1f8 08/05/2013 03:11 pm Jan Kiszka

pcnet: Flush queued packets on end of STOP state

Analogously to other NICs, we have to inform the network layer when
the can_receive handler will no longer report 0. Without this, we may
get stuck waiting on queued incoming packets.

Signed-off-by: Jan Kiszka <>...

00f90df0 08/02/2013 01:09 am Anthony Liguori

Merge remote-tracking branch 'afaerber/tags/prep-for-upstream' into staging

PReP machine and devices

  • Fixes for i82378 PCI-ISA bridge endianness handling
  1. gpg: Signature made Wed 31 Jul 2013 04:25:51 PM CDT using RSA key ID 3E7E013F
  2. gpg: Can't check signature: public key not found...
203439ce 08/01/2013 07:18 pm Andreas Färber

virtio-console: Use exitfn for virtserialport, too

virtconsole and virtserialport are identical in every other aspect
except for the distinguishing VirtIOSerialPortClass::is_console field.

Cc:
Signed-off-by: Andreas Färber <>...

27915efb 08/01/2013 07:18 pm Andreas Färber

virtio-9p-device: Avoid freeing uninitialized memory

In virtio_9p_device_init() there are 6x goto out that will lead to
v9fs_path_free() attempting to free unitialized path.data field.
Easiest way to trigger is: qemu-system-x86_64 -device virtio-9p-pci

Fix this by moving v9fs_path_init() before any goto out....

75cc1c1f 08/01/2013 02:03 pm Gerd Hoffmann

xhci: fix segfault

Guest trying to reset a endpoint of a disconnected device resulted in
xhci trying to dereference uport while being NULL, thereby crashing
qemu. Fix that by adding a check. Drop unused dev variable while
touching that code bit.

Cc: ...

a14ff8a6 08/01/2013 02:03 pm Gerd Hoffmann

usb-redir: fix use-after-free

Reinitialize dev->cs to NULL after deleting it, to make sure it isn't
used afterwards.

Reported-by: Martin Cerveny <>
Signed-off-by: Gerd Hoffmann <>

5c973678 08/01/2013 12:25 am Hervé Poussineau

i82378: Cleanup implementation

- i82378 only exists on PCI bus; do not split implementation in 2 structs
- remove BARs, which are not specified in datasheet
- replace custom isa_mmio implementation by PCI bus IO region usage
- use QOM casts when required...

768d7e2c 08/01/2013 12:25 am Hervé Poussineau

pci-host/prep: Set isa_mem_base in the PCI host bridge

Currently, it is done by i82378 PCI-ISA bridge, which shouldn't
care about it.

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Andreas Färber <>

e76c756f 07/31/2013 03:54 pm Richard Henderson

qdev: Fix 32-bit compilation in print_size

Signed-off-by: Richard Henderson <>
Message-id:
Signed-off-by: Anthony Liguori <>

1197cbb9 07/31/2013 03:54 pm Richard Henderson

qdev: Use clz in print_size

We can compute a floor log2 value with clz rather than a division loop.

Signed-off-by: Richard Henderson <>
Message-id:
Signed-off-by: Anthony Liguori <>

c095e108 07/31/2013 02:48 am Anthony Liguori

Merge remote-tracking branch 'kraxel/usb.85' into staging

  1. By Gerd Hoffmann (2) and Alexey Kardashevskiy (1)
  2. Via Gerd Hoffmann
    • kraxel/usb.85:
      hcd-ohci: add dma error handling
      uhci: egsm fix
      xhci: handle USB_RET_IOERROR

Message-id: ...

dbef7b17 07/31/2013 02:48 am Anthony Liguori

Merge remote-tracking branch 'borntraeger/s390-for-1.6' into staging

  • borntraeger/s390-for-1.6:
    s390: Implement dump-guest-memory support for target s390x
    s390x/kvm: Remove redundant return code
    s390x/kvm: Reworked/fixed handling of cc3 in kvm_handle_css_inst()...
4a7ed999 07/31/2013 02:48 am Andreas Färber

mips_fulong2e: Silence BIOS loading warning for qtest

Signed-off-by: Andreas Färber <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Andreas Färber <>
Message-id: ...

2c57bd9b 07/31/2013 02:48 am Andreas Färber

mips_malta: Silence BIOS loading warning for qtest

Signed-off-by: Andreas Färber <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Andreas Färber <>
Message-id: ...

38c8894f 07/31/2013 02:48 am Andreas Färber

mips_jazz: Silence BIOS loading warning for qtest

Signed-off-by: Andreas Färber <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Andreas Färber <>
Message-id: ...

c9dd6a9f 07/31/2013 02:48 am Andreas Färber

mips_r4k: Silence BIOS loading warning for qtest

Signed-off-by: Andreas Färber <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Andreas Färber <>
Message-id: ...

2e142114 07/30/2013 05:10 pm Heinz Graalfs

s390/sclpconsole: handle char layer busy conditions

Handle busy conditions (errno=EAGAIN) in char layer by using
the new char layer in the sclp console.

Signed-off-by: Heinz Graalfs <>
Signed-off-by: Christian Borntraeger <>

ed60ff02 07/30/2013 11:26 am Gerd Hoffmann

xhci: handle USB_RET_IOERROR

https://bugzilla.redhat.com/show_bug.cgi?id=980377

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

9f0f1a0c 07/30/2013 11:26 am Gerd Hoffmann

uhci: egsm fix

When the guest goes suspend the uhci controller while there are
pending resume requests on the ports go signal global resume
instantly.

Signed-off-by: Gerd Hoffmann <>

cf66ee8e 07/30/2013 11:26 am Alexey Kardashevskiy

hcd-ohci: add dma error handling

Current hcd-ohci does not handle DMA errors. However they may happen
so here we introduce simple error handling.

On such errors, a typical OHCI will stop operating, signal the guest
about the error by sending "UnrecoverableError Event", set itself into...

f6bda9cb 07/30/2013 03:56 am Peter Maydell

spapr: Rename 'dprintf' to 'DPRINTF'

'dprintf' is the name of a POSIX standard function so we should not be
stealing it for our debug macro. Rename to 'DPRINTF' (in line with
a number of other source files.)

Signed-off-by: Peter Maydell <>...

e67137c6 07/30/2013 03:33 am Peter Maydell

s390x: Rename 'dprintf' to 'DPRINTF'

'dprintf' is the name of a POSIX standard function so we should not be
stealing it for our debug macro. Rename to 'DPRINTF' (in line with
a number of other source files.)

Signed-off-by: Peter Maydell <>...

39848901 07/30/2013 03:33 am Igor Mammedov

pc: limit 64 bit hole to 2G by default

It turns out that some 32 bit windows guests crash
if 64 bit PCI hole size is >2G.
Limit it to 2G for piix and q35 by default.
User may override default 64-bit PCI hole size by
using "pci-hole64-size" property.

Examples:...

c52dc697 07/30/2013 03:33 am Igor Mammedov

pc: add Q35 to QOM composition tree under /machine

Signed-off-by: Igor Mammedov <>
Reviewed-by: Andreas Färber <>
Reviewed-by: Michael S. Tsirkin <>
Reviewed-by: Andreas Färber <>
Message-id: ...

e8cd45c7 07/30/2013 03:33 am Vasilis Liaskovitis

qdev: Add SIZE type to qdev properties

This patch adds a 'SIZE' type property to qdev.

Signed-off-by: Ian Molton <>
Signed-off-by: Vasilis Liaskovitis <>
Signed-off-by: Hu Tao <>...

f5338ee3 07/30/2013 03:33 am Michael S. Tsirkin

pc: move IO_APIC_DEFAULT_ADDRESS to include/hw/i386/ioapic.h

Signed-off-by: Michael S. Tsirkin <>
Signed-off-by: Laszlo Ersek <>
Signed-off-by: Igor Mammedov <>
Reviewed-by: Andreas Färber <>...

1d0d4aa4 07/30/2013 03:33 am Igor Mammedov

pc: add I440FX QOM cast macro

Signed-off-by: Igor Mammedov <>
Reviewed-by: Michael S. Tsirkin <>
Reviewed-by: Andreas Färber <>
Message-id:
Signed-off-by: Anthony Liguori <>

44fc8c5e 07/30/2013 03:33 am Igor Mammedov

pc: replace i440fx_common_init() with i440fx_init()

It isn't used anywhere else.

Signed-off-by: Igor Mammedov <>
Reviewed-by: Andreas Färber <>
Reviewed-by: Michael S. Tsirkin <>
Reviewed-by: Andreas Färber <>...

38fb090a 07/29/2013 10:07 pm Andreas Färber

spapr_pci: QOM cast cleanup

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

b91f0dfd 07/29/2013 10:07 pm Andreas Färber

pl031: Rename pl031_state to PL031State

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

d3b80049 07/29/2013 10:07 pm Andreas Färber

pl031: QOM cast cleanup

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

9c9610b8 07/29/2013 10:07 pm Andreas Färber

puv3_ost: QOM cast cleanup

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

feea4361 07/29/2013 10:07 pm Andreas Färber

pxa2xx_timer: QOM'ify pxa25x-timer and pxa27x-timer

Introduce type constant for new abstract base type, use QOM casts and
let both non-abstract types inherit from the new base type.

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

c275471e 07/29/2013 10:07 pm Andreas Färber

slavio_timer: QOM cast cleanup

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

453be7a6 07/29/2013 10:07 pm Andreas Färber

tusb6010: QOM cast cleanup

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

760d1d00 07/29/2013 10:07 pm Andreas Färber

xilinx_timer: QOM cast cleanup

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

43603329 07/29/2013 10:07 pm Andreas Färber

exynos4210_i2c: QOM cast cleanup

Fix one ->qdev access and rename parent field.

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

4632cf2d 07/29/2013 10:07 pm Andreas Färber

opencores_eth: QOM cast cleanup

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

a4dbb8bd 07/29/2013 10:07 pm Andreas Färber

mipsnet: QOM cast cleanup

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

253eacc2 07/29/2013 10:07 pm Andreas Färber

kvmvapic: QOM cast cleanup

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

b3119631 07/29/2013 10:07 pm Andreas Färber

kvm/ioapic: QOM cast cleanup

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

f54d3157 07/29/2013 10:07 pm Andreas Färber

ioapic: QOM cast cleanup

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

ce556e0b 07/29/2013 10:07 pm Andreas Färber

pl022: Rename pl022_state to PL022State

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

3d29bcee 07/29/2013 10:07 pm Andreas Färber

pl022: QOM cast cleanup

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

3efc10e1 07/29/2013 10:07 pm Andreas Färber

xilinx_spi: QOM cast cleanup

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

1024d7f0 07/29/2013 10:07 pm Andreas Färber

arm_timer: Rename sp804_state to SP804State

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

0c88dea5 07/29/2013 10:07 pm Andreas Färber

arm_timer: QOM cast cleanup for SP804State

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

e2051b42 07/29/2013 10:07 pm Andreas Färber

arm_timer: QOM cast cleanup for icp_pit_state

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

831aab9b 07/29/2013 10:07 pm Andreas Färber

cadence_ttc: QOM cast cleanup

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

3c9a8a8c 07/29/2013 10:07 pm Andreas Färber

etraxfs_timer: Rename etrax_timer to ETRAXTimerState

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

5880ce52 07/29/2013 10:07 pm Andreas Färber

etraxfs_timer: QOM cast cleanup

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

81e1010d 07/29/2013 10:07 pm Andreas Färber

exynos4210_mct: QOM cast cleanup

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

25fce9ad 07/29/2013 10:07 pm Andreas Färber

exynos4210_pwm: QOM cast cleanup

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

3ddacf27 07/29/2013 10:07 pm Andreas Färber

exynos4210_rtc: QOM cast cleanup

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

541ab55f 07/29/2013 10:07 pm Andreas Färber

grlib_gptimer: QOM cast cleanup

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

fe54d857 07/29/2013 10:07 pm Andreas Färber

lm32_timer: QOM cast cleanup

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

29d1ffc3 07/29/2013 10:07 pm Andreas Färber

m48t59: QOM cast cleanup for M48t59SysBusState

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

b564b137 07/29/2013 10:07 pm Andreas Färber

milkymist-sysctl: QOM cast cleanup

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

546921ea 07/29/2013 10:07 pm Andreas Färber

xgmac: QOM cast cleanup

Introduce type constant and use QOM casts and typedef consistently.

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

91a28042 07/29/2013 10:07 pm Andreas Färber

xilinx_ethlite: QOM cast cleanup

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

14134f0e 07/29/2013 10:07 pm Andreas Färber

ds1225y: Drop bogus qdev field from NvRamState

It is not a device, and the field is not used from code either.

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

8c1892cf 07/29/2013 10:07 pm Andreas Färber

ds1225y: QOM cast cleanup for SysBusNvRamState

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

880fc798 07/29/2013 10:07 pm Andreas Färber

ppce500_spin: QOM cast cleanup

Introduce type constant and use QOM cast.

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

7a239e46 07/29/2013 10:07 pm Andreas Färber

milkymist-memcard: QOM cast cleanup

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

1d998d93 07/29/2013 10:07 pm Andreas Färber

pl181: Rename pl181_state to PL181State

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

630f4442 07/29/2013 10:07 pm Andreas Färber

pl181: QOM cast cleanup

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

ef9dfa4c 07/29/2013 10:07 pm Andreas Färber

sun4m: QOM cast cleanup for IDRegState

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

b3a49965 07/29/2013 10:07 pm Andreas Färber

sun4m: QOM cast cleanup for AFXState

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

e6f54c91 07/29/2013 10:07 pm Andreas Färber

sun4m: QOM cast cleanup for PROMState

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

5ab6b4c6 07/29/2013 10:07 pm Andreas Färber

sun4m: QOM cast cleanup for RamDevice

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

13575cf6 07/29/2013 10:07 pm Andreas Färber

sun4u: QOM cast cleanup for PROMState

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

88c034d5 07/29/2013 10:07 pm Andreas Färber

sun4u: QOM cast cleanup for RamDevice

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

5c0e12f5 07/29/2013 10:06 pm Andreas Färber

mst_fpga: QOM cast cleanup

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

af89a444 07/29/2013 10:06 pm Andreas Färber

puv3_pm: QOM cast cleanup

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

95eb2084 07/29/2013 10:06 pm Andreas Färber

slavio_misc: QOM cast cleanup for MiscState

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

f1a0a79f 07/29/2013 10:06 pm Andreas Färber

slavio_misc: QOM cast cleanup for APCState

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

a054e2c2 07/29/2013 10:06 pm Andreas Färber

zynq_slcr: QOM cast cleanup

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

318643be 07/29/2013 10:06 pm Andreas Färber

cadence_gem: QOM cast cleanup

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

8784dfa4 07/29/2013 10:06 pm Andreas Färber

etraxfs_eth: QOM cast cleanup

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

58076497 07/29/2013 10:06 pm Andreas Färber

etraxfs_eth: Rename fs_eth to ETRAXFSEthState

Also add a typedef.

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

3ff66d10 07/29/2013 10:06 pm Andreas Färber

lan9118: QOM cast cleanup

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

b1a2aaf7 07/29/2013 10:06 pm Andreas Färber

lance: QOM cast cleanup

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

0e57587f 07/29/2013 10:06 pm Andreas Färber

milkymist-minimac2: QOM cast cleanup

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

926d152e 07/29/2013 10:06 pm Andreas Färber

smc91c111: QOM cast cleanup

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

2fa30aba 07/29/2013 10:06 pm Andreas Färber

stellaris_enet: QOM cast cleanup

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

0618db44 07/29/2013 10:06 pm Andreas Färber

stellaris_enet: Fix NetClientInfo::cleanup

Drop freeing stellaris_enet_state - that is done by QOM later on unref.

Both MemoryRegion init and savevm registration happen in SysBusDevice
initfn currently, so move them into an unrealizefn for now.

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

ba4ea5bd 07/29/2013 10:06 pm Andreas Färber

arm_sysctl: QOM cast cleanup

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

100bb15c 07/29/2013 10:06 pm Andreas Färber

eccmemctl: QOM cast cleanup

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

b6e1df2e 07/29/2013 10:06 pm Andreas Färber

exynos4210_pmu: QOM cast cleanup

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

816d323b 07/29/2013 10:06 pm Andreas Färber

lm32_sys: QOM cast cleanup

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

829617a9 07/29/2013 10:06 pm Andreas Färber

milkymist-hpdmc: QOM cast cleanup

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

aee31f7b 07/29/2013 10:06 pm Andreas Färber

milkymist-pfpu: QOM cast cleanup

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