Statistics
| Branch: | Revision:

root / hw @ 82d07945

# Date Author Comment
82d07945 02/26/2014 07:30 pm Markus Armbruster

pci-assign: Fix potential read beyond buffer on -EBUSY

readlink() doesn't write a terminating null byte.
assign_failed_examine() passes the unterminated string to strrchr().
Oops. Terminate it.

Spotted by Coverity.

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

13665a2d 02/26/2014 07:28 pm Markus Armbruster

vfio: Fix overrun after readlink() fills buffer completely

readlink() returns the number of bytes written to the buffer, and it
doesn't write a terminating null byte. vfio_init() writes it itself.
Overruns the buffer when readlink() filled it completely....

05a738c4 02/26/2014 06:54 am Peter Crosthwaite

microblaze/s3adsp_1800: Define macros for irq map

Define macros for the interrupt map for the sake of self documentation.

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

81cce07e 02/26/2014 06:54 am Peter Crosthwaite

ppc/virtex_ml507: Define macros for irq/memory maps

Define macros for the interrupt and memory maps for the sake of self
documentation.

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

8174196b 02/26/2014 06:54 am Peter Crosthwaite

microblaze/ml605: Define macros for irq/memory maps

Define (missing) macros for the interrupt and memory maps for the sake
of self documentation.

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

13c9bfbf 02/26/2014 06:54 am Peter Crosthwaite

xilinx: Inline usages of xilinx_intc_create()

Inline these usages. Converts these init to at least a semi-recent QOM
styling.

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

29873712 02/26/2014 06:54 am Peter Crosthwaite

xilinx: Inline usages of xilinx_timer_create()

Inline these usages. Converts these init to at least a semi-recent QOM
styling.

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

b8d4e1c4 02/26/2014 06:54 am Peter Crosthwaite

xilinx: Inline usage of xilinx_ethlite_create()

Inline the only usage. Converts this init to at least a semi-recent QOM
styling.

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

d91a68a7 02/26/2014 06:54 am Peter Crosthwaite

xilinx: Inline usages of xilinx_axi*_init()

Inline the only usage of each of xilinx_axiethernet_init and
xilinx_axidma_init. Converts this init to at least a semi-recent QOM
styling.

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

d5001cf7 02/26/2014 06:54 am Peter Crosthwaite

xilinx: Delete hw/include/xilinx.h

This is now obsolete - remove the header and all its inclusions.

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

a89d97df 02/25/2014 05:17 pm Peter Maydell

Merge remote-tracking branch 'remotes/spice/tags/pull-spice-3' into staging

qxl: add sanity check

  1. gpg: Signature made Mon 24 Feb 2014 12:01:27 GMT using RSA key ID D3E87138
  2. gpg: Good signature from "Gerd Hoffmann (work) <>"
  3. gpg: aka "Gerd Hoffmann <>"...
05fd3bf2 02/25/2014 01:54 pm Peter Maydell

Merge remote-tracking branch 'remotes/xtensa/tags/20140224-xtensa' into staging

Xtensa fixes and improvements queue 2014-02-24:
- add support for ML605 and KC705 FPGA boards;
- flush opencores_eth queue when new RX descriptor is available;
- add basic checks to cache opcodes;...

e7a1d6c5 02/25/2014 12:50 pm Peter Maydell

Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging

Block patches

  1. gpg: Signature made Fri 21 Feb 2014 21:42:24 GMT using RSA key ID C88F2FD6
  2. gpg: Good signature from "Kevin Wolf <>"
  • remotes/kevin/tags/for-upstream: (54 commits)...
c58e2915 02/24/2014 06:12 pm Peter Maydell

Merge remote-tracking branch 'remotes/sstabellini/xen-140220' into staging

  • remotes/sstabellini/xen-140220:
    xen_disk: fix io accounting
    Call pci_piix3_xen_ide_unplug from unplug_disks

Signed-off-by: Peter Maydell <>

9c70434f 02/24/2014 02:00 pm Gerd Hoffmann

qxl: add sanity check

Signed-off-by: Gerd Hoffmann <>
Reviewed-by: Laszlo Ersek <>

e0db904d 02/24/2014 02:47 am Max Filippov

hw/xtensa: add support for ML605 and KC705 FPGA board

Signed-off-by: Max Filippov <>
Reviewed-by: Andreas Färber <>

b807b5ff 02/24/2014 02:47 am Max Filippov

opencores_eth: flush queue whenever can_receive can go from false to true

The following registers control whether MAC can receive frames:
- MODER.RXEN bit that enables/disables receiver;
- TX_BD_NUM register that specifies number of RX descriptors.
Notify QEMU networking core when the MAC is ready to receive frames....

ddf5636d 02/21/2014 10:02 pm Max Reitz

block: Add reference parameter to bdrv_open()

Allow bdrv_open() to handle references to existing block devices just as
bdrv_file_open() is already capable of.

Signed-off-by: Max Reitz <>
Signed-off-by: Kevin Wolf <>

f67503e5 02/21/2014 10:02 pm Max Reitz

block: Change BDS parameter of bdrv_open() to **

Make bdrv_open() take a pointer to a BDS pointer, similarly to
bdrv_file_open(). If a pointer to a NULL pointer is given, bdrv_open()
will create a new BDS with an empty name; if the BDS pointer is not
NULL, that existing BDS will be reused (in the same way as bdrv_open()...

105a0601 02/21/2014 05:04 pm Peter Maydell

Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20140220' into staging

target-arm queue: * Fix a bug causing an assertion in the NVIC on ARMv7M models * More A64 Neon instructions * Refactor cpreg API to separate out access check functions, as...

58da5b1e 02/20/2014 07:57 pm Olaf Hering

xen_disk: fix io accounting

bdrv_acct_done was called unconditional. But in case the ioreq has no
segments there is no matching bdrv_acct_start call. This could lead to
bogus accounting values.

Found by code inspection.

Signed-off-by: Olaf Hering <>...

15e8159e 02/20/2014 07:28 pm Stefano Stabellini

Call pci_piix3_xen_ide_unplug from unplug_disks

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

2ca92bb9 02/20/2014 05:25 pm Peter Maydell

Merge remote-tracking branch 'remotes/kraxel/tags/pull-usb-3' into staging

- xhci improvements and fixes.
- uhci bugfix.
- cleanups.

  1. gpg: Signature made Tue 18 Feb 2014 15:48:10 GMT using RSA key ID D3E87138
  2. gpg: Good signature from "Gerd Hoffmann (work) <>"...
61e8a923 02/20/2014 03:05 pm Peter Maydell

Merge remote-tracking branch 'remotes/afaerber/tags/qom-devices-for-peter' into staging

QOM infrastructure fixes and device conversions

  • QTest cleanups and test cases for PCI NICs
  • NAND fix for "info qtree"
  • Cleanup and extension of QOM machine tests...
4c0c9bbe 02/20/2014 02:10 pm Peter Maydell

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

  • remotes/qmp-unstable/queue/qmp:
    monitor: Add object_add class argument completion.
    monitor: Add object_del id argument completion.
    monitor: Add device_add device argument completion....
c4241c7d 02/20/2014 12:35 pm Peter Maydell

target-arm: Drop success/fail return from cpreg read and write functions

All cpreg read and write functions now return 0, so we can clean up
their prototypes: * write functions return void * read functions return the value rather than taking a pointer
to write the value to...

87316902 02/20/2014 12:35 pm Peter Maydell

hw/intc/arm_gic: Fix NVIC assertion failure

Commit 40d225009ef accidentally changed the behaviour of
gic_acknowledge_irq() for the NVIC. The NVIC doesn't have SGIs,
so this meant we hit an assertion:
gic_acknowledge_irq: Assertion `s->sgi_pending[irq][cpu] != 0' failed....

c348e481 02/18/2014 04:39 pm Gerd Hoffmann

uhci: invalidate queue on device address changes

Signed-off-by: Gerd Hoffmann <>

786ad214 02/18/2014 04:39 pm Gerd Hoffmann

xhci iso: fix time calculation

Frameid specifies frames not microframes, so we
need to shift it to get the microframe index.

Signed-off-by: Gerd Hoffmann <>

cc03ff9d 02/18/2014 04:39 pm Gerd Hoffmann

xhci iso: allow for some latency

Allow the scheduled transfer time be a bit behind, to
compensate for latencies. Without this xhci will wait
way to often for the mfindex wraparound, assuming the
scheduled time is in the future just because qemu is
a bit behind in processing the iso transfer requests....

4f9cc734 02/18/2014 04:39 pm Gerd Hoffmann

xhci: switch debug printf to tracepoint

Signed-off-by: Gerd Hoffmann <>

d6bb65fc 02/18/2014 04:39 pm Gerd Hoffmann

xhci: use DPRINTF instead of fprintf(stderr, ...)

So we don't spam stderr with (guest-triggerable) messages by default.

Signed-off-by: Gerd Hoffmann <>

bd93976a 02/18/2014 04:39 pm Pantelis Koukousoulas

usb: Remove magic constants from device bmAttributes

Replace magic constants in device bmAttributes with symbolic ones
from Linux kernel ch9.h

Signed-off-by: Pantelis Koukousoulas <>
Signed-off-by: Gerd Hoffmann <>

f6969b9f 02/18/2014 04:39 pm Gerd Hoffmann

xhci: fix overflow in usb_xhci_post_load

Found by Coverity.

Reported-by: Markus Armbruster <>
Signed-off-by: Gerd Hoffmann <>

84d18f06 02/17/2014 06:57 pm Markus Armbruster

Use error_is_set() only when necessary

error_is_set(&var) is the same as var != NULL, but it takes
whole-program analysis to figure that out. Unnecessarily hard for
optimizers, static checkers, and human readers. Dumb it down to
obvious.

Gets rid of several dozen Coverity false positives....

078a1c37 02/15/2014 06:36 pm Peter Maydell

Merge remote-tracking branch 'remotes/mjt/tags/trivial-patches-2014-02-15' into staging

trivial patches for 2014-02-15

  1. gpg: Signature made Sat 15 Feb 2014 12:10:46 GMT using RSA key ID 74F0C838
  2. gpg: Good signature from "Michael Tokarev <>"...
c1570e2a 02/15/2014 02:10 pm Sebastian Huber

sparc/leon3: Initialize stack pointer

A lot of real world LEON3 systems are shipped with the GRMON boot
loader. This boot loader initializes the stack pointer with the end of
RAM address. The application can use this to detect the RAM size of a
particular board variant....

88c1ee73 02/15/2014 02:10 pm Peter Crosthwaite

char/serial: Fix emptyness check

This was guarding against a full fifo rather than an empty fifo when
popping. Fix.

Signed-off-by: Peter Crosthwaite <>
Reviewed-by: Martin Kletzander <>
Reviewed-by: Dr. David Alan Gilbert <>...

104059da 02/14/2014 10:12 pm Paolo Bonzini

qdev: Add enum property types to QAPI schema

Reviewed-by: Igor Mammedov <>
Reviewed-by: Eric Blake <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Andreas Färber <>

85ca1202 02/14/2014 10:12 pm Paolo Bonzini

qdev: Use QAPI type names for properties

Use "drive", "chr", etc. only for legacy_name (which shows up
in -device foo,? output).

Reviewed-by: Igor Mammedov <>
Reviewed-by: Eric Blake <>
Signed-off-by: Paolo Bonzini <>...

c7bcc85d 02/14/2014 10:12 pm Paolo Bonzini

qdev: Remove hex8/32/64 property types

Replace them with uint8/32/64.

Reviewed-by: Igor Mammedov <>
Reviewed-by: Eric Blake <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Andreas Färber <>

f31c41ff 02/14/2014 10:12 pm Paolo Bonzini

block: Handle "rechs" and "large" translation options

Sure, CHS translation is an obscure topic, and legacy options for
hard-disk geometries are obscure as well. But since QEMU does nothing
with it except telling the BIOS, and since there "large" and "rechs"...

515f2346 02/14/2014 10:12 pm Paolo Bonzini

qdev: Remove most legacy printers

Their functionality is either aesthetic only (e.g. on/off vs. true/false)
or obtained by the "human mode" of StringOutputVisitor.

Reviewed-by: Igor Mammedov <>
Reviewed-by: Eric Blake <>...

7d926864 02/14/2014 10:12 pm Paolo Bonzini

qdev: Sizes are now parsed by StringInputVisitor

Reviewed-by: Igor Mammedov <>
Reviewed-by: Eric Blake <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Andreas Färber <>

9e4d9620 02/14/2014 10:12 pm Paolo Bonzini

qdev: Remove legacy parsers for hex8/32/64

The hexNN property types have not been accepting values not prefixed
by "0x" since QEMU 1.2. Parse those values as decimals now.

Reviewed-by: Igor Mammedov <>
Reviewed-by: Eric Blake <>...

03ff7770 02/14/2014 10:12 pm Paolo Bonzini

qdev: Legacy properties are now read-only

Reviewed-by: Igor Mammedov <>
Reviewed-by: Eric Blake <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Andreas Färber <>

7ce7ffe0 02/14/2014 10:12 pm Paolo Bonzini

qdev: Legacy properties are just strings

prop->info->legacy_name is still used by "-device foo,?".

Reviewed-by: Igor Mammedov <>
Reviewed-by: Eric Blake <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Andreas Färber <>

98a65284 02/14/2014 10:12 pm Paolo Bonzini

qdev: Inline qdev_prop_parse()

Reviewed-by: Igor Mammedov <>
Reviewed-by: Eric Blake <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Andreas Färber <>

1f9c4cfd 02/14/2014 10:11 pm Andreas Färber

ipack: Move IndustryPack out of hw/char/

Move the header defining an IPackBus and IPackDevice base class into
a new include/ directory and move their implementation and a
PCI-IndustryPack bridge out of hw/char/ directory into a new hw/ipack/.

Acked-by: Alberto Garcia <>...

5c570902 02/14/2014 10:07 pm Andreas Färber

ipack: Convert to QOM realize

Acked-by: Alberto Garcia <>
Signed-off-by: Andreas Färber <>

a21ac343 02/14/2014 10:07 pm Andreas Färber

ipack: QOM parent field cleanup for IPackBus

Clean up the only user of IPackBus::qbus field and rename it.

Acked-by: Alberto Garcia <>
Signed-off-by: Andreas Färber <>

227d3272 02/14/2014 10:07 pm Andreas Färber

ipack: QOM parent field cleanup for IPackDevice

Rename the IPackDevice::qdev field to avoid accidental use.

Acked-by: Alberto Garcia <>
Signed-off-by: Andreas Färber <>

08c9cacf 02/14/2014 10:07 pm Andreas Färber

ipoctal232: QOM parent field cleanup

Clean up accesses to IPOctalState::dev field and rename it.

Acked-by: Alberto Garcia <>
Signed-off-by: Andreas Färber <>

70b51690 02/14/2014 05:22 pm Andreas Färber

tosa: QOM'ify DAC

Replace usages of FROM_I2C_SLAVE() with QOM cast macro.
Rename parent field. Use type constant in tosa_tg_init().

Reviewed-by: Peter Crosthwaite <>
Signed-off-by: Andreas Färber <>

a5f96db7 02/14/2014 05:22 pm Andreas Färber

z2: QOM'ify AER915

Replace usages of FROM_I2C_SLAVE() with QOM cast macro.
Rename the parent field. Reuse the type constant in z2_init().

Reviewed-by: Peter Crosthwaite <>
[AF: Use TYPE_AER915 in z2_init() too]
Signed-off-by: Andreas Färber <>

bc229b0f 02/14/2014 05:22 pm Andreas Färber

wm8750: QOM'ify

Replace usages of FROM_I2C_SLAVE() and direct parent field accesses with
QOM cast macro. Rename parent field.

Reviewed-by: Peter Crosthwaite <>
Signed-off-by: Andreas Färber <>

b1be4515 02/14/2014 05:22 pm Andreas Färber

ssd0303: QOM'ify

Replace usages of FROM_I2C_SLAVE() with QOM cast macro.
Rename parent field.

Reviewed-by: Peter Crosthwaite <>
Signed-off-by: Andreas Färber <>

b8bcf811 02/14/2014 05:22 pm Andreas Färber

max7310: QOM'ify

Replace FROM_I2C_SLAVE() usages with QOM cast macro.
Rename parent field.

Reviewed-by: Peter Crosthwaite <>
Signed-off-by: Andreas Färber <>

933069eb 02/14/2014 05:22 pm Andreas Färber

lm832x: QOM'ify

Replace usages of FROM_I2C_SLAVE() and direct parent field accesses with
QOM cast macro. Rename parent field.

Reviewed-by: Peter Crosthwaite <>
Signed-off-by: Andreas Färber <>

59ab56b9 02/14/2014 05:22 pm Andreas Färber

ds1338: QOM'ify

Replace usages of FROM_I2C_SLAVE() with QOM cast macro.
Rename parent field.

Reviewed-by: Peter Crosthwaite <>
Signed-off-by: Andreas Färber <>

dd37dfa9 02/14/2014 05:22 pm Andreas Färber

twl92230: QOM'ify

Replace usages of FROM_I2C_SLAVE() and direct parent field accesses with
QOM cast macro. Rename parent field.

Add missing braces while at it.

Reviewed-by: Peter Crosthwaite <>
Signed-off-by: Andreas Färber <>

6749695e 02/14/2014 05:22 pm Andreas Färber

nand: Don't use qdev_create() in nand_init()

Commit 7426aa72c36c908a7d0eae3e38568bb0a70de479 (nand: Don't inherit
from Sysbus) changed the parent type of TYPE_NAND but continued to use
qdev_create(), which handled a NULL BusState as SysBus.

Use object_new() instead, and reuse the TYPE_NAND define while at it....

a5c82852 02/14/2014 05:22 pm Andreas Färber

i2c: Rename i2c_bus to I2CBus

Reviewed-by: Peter Crosthwaite <>
Signed-off-by: Andreas Färber <>

96dca6b9 02/14/2014 05:22 pm Andreas Färber

pxa2xx: QOM'ify I2C slave

Replace usages of FROM_I2C_SLAVE() and direct parent field accesses with
QOM cast macro. Rename parent field to assure we caught all. Reuse type
constant in pxa2xx_i2c_init().

Add some missing braces while at it.

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

1a838745 02/14/2014 02:04 pm Kevin Wolf

sdhci: Drop unnecessary #include

Signed-off-by: Kevin Wolf <>
Reviewed-by: Fam Zheng <>
Signed-off-by: Stefan Hajnoczi <>

aaab89a6 02/13/2014 06:47 pm Andreas Färber

ppcemb-softmmu: Drop Mac and e500 emulation

They are still available in ppc-softmmu and ppc64-softmmu.

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

0888a29c 02/13/2014 05:02 pm Peter Maydell

Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging

acpi,pc,pci fixes and enhancements

Most changes here are hotplug related:

This merges hotplug infrastructure changes by Igor,
some acpi related fixes, and PC fixes.

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

f673e70c 02/13/2014 04:52 pm Peter Maydell

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

PReP machine and devices

  • Cleanups for Raven PCI host bridge
  • Removal of PReP machine and devices from qemu-system-ppcemb
  1. gpg: Signature made Mon 10 Feb 2014 16:19:03 GMT using RSA key ID 3E7E013F...
a4550442 02/11/2014 02:57 pm Edgar E. Iglesias

petalogix-ml605: Create the CPU with object_new()

This is to allow future patches to set properties before cpu::realize().

Reviewed-by: Andreas Färber <>
Signed-off-by: Edgar E. Iglesias <>

2a221651 02/11/2014 02:57 pm Edgar E. Iglesias

exec: Make cpu_physical_memory_write_rom input an AS

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

db3be60d 02/11/2014 02:57 pm Edgar E. Iglesias

exec: Make stb_phys input an AddressSpace

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

5ce5944d 02/11/2014 02:57 pm Edgar E. Iglesias

exec: Make stw_*_phys input an AddressSpace

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

2198a121 02/11/2014 02:57 pm Edgar E. Iglesias

exec: Make stl_phys_notdirty input an AddressSpace

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

ab1da857 02/11/2014 02:57 pm Edgar E. Iglesias

exec: Make stl_*_phys input an AddressSpace

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

f606604f 02/11/2014 02:57 pm Edgar E. Iglesias

exec: Make stq_*_phys input an AddressSpace

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

41701aa4 02/11/2014 02:57 pm Edgar E. Iglesias

exec: Make lduw_*_phys input an AddressSpace

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

2c17449b 02/11/2014 02:57 pm Edgar E. Iglesias

exec: Make ldq/ldub_*_phys input an AddressSpace

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

fdfba1a2 02/11/2014 02:56 pm Edgar E. Iglesias

exec: Make ldl_*_phys input an AddressSpace

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

8fa75749 02/11/2014 01:26 pm Peter Maydell

Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20140208' into staging

target-arm queue: * more A64 Neon instructions * AArch32 VCVTB and VCVTT ARMv8 instructions * fixes to inaccuracies in GIC emulation * libvixl disassembler for A64...

702f6df9 02/10/2014 08:31 pm Peter Maydell

Merge remote-tracking branch 'remotes/kvaneesh/for-upstream' into staging

  • remotes/kvaneesh/for-upstream:
    hw/9pfs: fix P9_STATS_GEN handling
    hw/9pfs: make get_st_gen() return ENOTTY error on special files
    hw/9pfs: handle undefined FS_IOC_GETVERSION case in handle_ioc_getversion()...
ea81ce06 02/10/2014 06:06 pm Andreas Färber

prep: Drop from ppcemb-softmmu

ppcemb covers only embedded processors, which does not include PReP.

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

417c45ab 02/10/2014 11:09 am Gabriel L. Somlo

ACPI: Remove commented-out code from HPET._CRS

IRQNoFlags on HPET._CRS crashes WinXP because it causes the HPET
to conflict with the system timer and/or the RTC. It only occurs
on Apple hardware, and even there it is exposed fully only when
OS X is detected (via _OSI). Recent OS X versions work on QEMU...

c24d5e0b 02/10/2014 10:27 am Igor Mammedov

acpi/piix4pm: convert ACPI PCI hotplug to use hotplug-handler API

Split piix4_device_hotplug() into hotplug/unplug callbacks
and register them as "hotplug-handler" interface implementation of
PIIX4_PM device.

Replace pci_bus_hotplug() wiring with setting link on...

5d268704 02/10/2014 10:27 am Igor Mammedov

pci/shpc: convert SHPC hotplug to use hotplug-handler API

Split shpc_device_hotplug() into hotplug/unplug callbacks
and register them as "hotplug-handler" interface implementation of
PCI_BRIDGE_DEV device.

Replace pci_bus_hotplug() wiring with setting link on PCI BUS...

a66e657e 02/10/2014 10:27 am Igor Mammedov

pci/pcie: convert PCIE hotplug to use hotplug-handler API

Split pcie_cap_slot_hotplug() into hotplug/unplug callbacks
and register them as "hotplug-handler" interface implementation of
PCIE_SLOT device.

Replace pci_bus_hotplug() wiring with setting link on PCI BUS...

5e954943 02/10/2014 10:27 am Igor Mammedov

hw/pci: switch to a generic hotplug handling for PCIDevice

make qdev_unplug()/device_set_realized() to call hotplug handler's
plug/unplug methods if available and remove not needed anymore
hot(un)plug handling from PCIDevice.

In case if hotplug handler is not available, revert to the legacy...

2897ae02 02/10/2014 10:26 am Igor Mammedov

qdev:pci: refactor PCIDevice to use generic "hotpluggable" property

Get rid of PCIDevice specific PCIDeviceClass.no_hotplug and use
generic DeviceClass.hotpluggable field instead.

Signed-off-by: Igor Mammedov <>
Reviewed-by: Michael S. Tsirkin <>...

5fdae20c 02/10/2014 10:23 am Igor Mammedov

hw/acpi: move typeinfo to the file end

do so to avoid not necessary forward declarations and
place typeinfo registration at the file end where it's
usually expected.

Signed-off-by: Igor Mammedov <>
Reviewed-by: Michael S. Tsirkin <>...

9f117d41 02/10/2014 10:23 am Igor Mammedov

define hotplug interface

Provide a generic hotplug interface for hotplug handlers.
Intended for replacing hotplug mechanism used by
PCI/PCIE/SHPC code and will be used for memory hotplug.

Signed-off-by: Igor Mammedov <>
Reviewed-by: Michael S. Tsirkin <>...

0ee4de6c 02/10/2014 10:23 am Igor Mammedov

qdev: add to BusState "hotplug-handler" link

It will allow to reuse field with different BUSes,
reducing code duplication. Field is intended for
replacing 'hotplug_qdev' field in PCIBus and also
will allow to avoid adding equivalent field to
DimmBus with possiblitity to refactor other BUSes...

1a37eca1 02/10/2014 10:23 am Igor Mammedov

qdev: add "hotpluggable" property to Device

Currently it's possible to make PCIDevice not hotpluggable
by using no_hotplug field of PCIDeviceClass. However it
limits this only to PCI devices and prevents from
generalizing hotplug code.

So add similar field to DeviceClass so it could be reused...

963116b0 02/09/2014 04:49 pm Hervé Poussineau

raven: Use constant PCI_NUM_PINS instead of 4

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

c0f2bf9b 02/09/2014 04:49 pm Hervé Poussineau

prep: Kill get_system_io() usage

While ISA address space in prep machine is currently the one returned
by get_system_io(), this depends of the implementation of i82378/raven
devices, and this may not be the case forever.

Use the right ISA address space when adding some more ports to it....

1f6b12f7 02/08/2014 05:57 pm Peter Maydell

Merge remote-tracking branch 'remotes/mwalle/tags/lm32-fixes/20140204' into staging

target-lm32: fixes

  1. gpg: Signature made Tue 04 Feb 2014 18:47:56 GMT using DSA key ID 3F98A378
  2. gpg: Can't check signature: public key not found
  • remotes/mwalle/tags/lm32-fixes/20140204:...
aa7d461a 02/08/2014 04:50 pm Christoffer Dall

arm_gic: Support setting/getting binary point reg

Add a binary_point field to the gic emulation structure and support
setting/getting this register now when we have it. We don't actually
support interrupt grouping yet, oh well.

Reviewed-by: Peter Maydell <>...

a9d477c4 02/08/2014 04:50 pm Christoffer Dall

arm_gic: Add GICC_APRn state to the GICState

The GICC_APRn registers are not currently supported by the ARM GIC v2.0
emulation. This patch adds the missing state.

Note that we also change the number of APRs to use a define GIC_NR_APRS
based on the maximum number of preemption levels. This patch also adds...

22f90bcb 02/08/2014 04:50 pm Beniamino Galvani

hw/net: add support for Allwinner EMAC Fast Ethernet controller

This patch adds support for the Fast Ethernet MAC found on Allwinner
SoCs, together with a basic emulation of Realtek RTL8201CP PHY.

Since there is no public documentation of the Allwinner controller, the...

db7dfd4c 02/08/2014 04:50 pm Beniamino Galvani

hw/arm/allwinner-a10: initialize EMAC

Signed-off-by: Beniamino Galvani <>
Reviewed-by: Peter Crosthwaite <>
Reviewed-by: Peter Maydell <>
Signed-off-by: Peter Maydell <>

69991d7d 02/08/2014 04:50 pm Sebastian Huber

arm/zynq: Add software system reset via SCLR

Support software-driven system reset via the register in the SCLR.

Signed-off-by: Sebastian Huber <>
Reviewed-by: Peter Crosthwaite <>
Signed-off-by: Peter Maydell <>

40d22500 02/08/2014 04:47 pm Christoffer Dall

arm_gic: Keep track of SGI sources

Right now the arm gic emulation doesn't keep track of the source of an
SGI (which apparently Linux guests don't use, or they're fine with
assuming CPU 0 always).

Add the necessary matrix on the GICState structure and maintain the data...