Statistics
| Branch: | Revision:

root / hw / acpi / piix4.c @ cba933b2

History | View | Annotate | Download (17.1 kB)

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

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...

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 <>...

e358edc8 02/05/2014 04:55 pm Igor Mammedov

hw:piix4:acpi: reuse pcihp code for legacy PCI hotplug

reduces acpi PCI hotplug code duplication by ~200LOC

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

99d09dd3 02/05/2014 04:55 pm Igor Mammedov

pcihp: make pci_read() mmio calback compatible with legacy ACPI hotplug

due to recent change introduced by:
"pcihp: reduce number of device check events"

'up' field is cleared right after it's read.
This is incompatible with legacy BIOS ACPI code
where PCNF ACPI method reads this field 32 times....

9e047b98 01/26/2014 01:11 pm Michael S. Tsirkin

piix4: add acpi pci hotplug support

Add support for acpi pci hotplug using the
new infrastructure.
PIIX4 legacy interface is maintained as is for
machine types 1.7 and older.

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

81cea5e7 01/26/2014 01:11 pm Igor Mammedov

acpi: factor out common cpu hotplug code for PIIX4/Q35

.. so it could be used for adding CPU hotplug to Q35 machine

Add an additional header with that will be shared between
C and ASL code: include/hw/acpi/cpu_hotplug_defs.h

Signed-off-by: Igor Mammedov <>...

e4cf8ed0 01/26/2014 01:11 pm Igor Mammedov

pc: ACPI: unify source of CPU hotplug IO base/len

use C headers defines as source of IO base/len for respective
values in ASL code.

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

d1819762 01/10/2014 09:04 pm Anthony Liguori

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

acpi,pci,pc,fedora,virtio fixes and enhancements

This includes some Preparatory patches for cpu hotplug for q25 and memory
hotplug by Igor, tests and memory mapping change
by Laszlo and pci reset cleanup by Paolo....

e4f308bb 12/23/2013 01:12 pm Igor Mammedov

acpi: piix4: remove not needed GPE0 mask

Hardcoded GPE0 mask isn't really needed. Since GPE0_STS initialized
with all bits cleared and only QEMU itself can set bits there (i.e.
guest can only clear bits in it). So guest can't triger SCI
by setting _STS & _EN bits and there is not reason to mask out not...

06313503 12/23/2013 01:12 pm Igor Mammedov

acpi: factor out common pm_update_sci() into acpi core

... and rename it into acpi_update_sci() since it changes
SCI on only on PM registers status.

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

81aab2ff 12/23/2013 01:27 am Markus Armbruster

piix3 piix4: Clean up use of cannot_instantiate_with_device_add_yet

A PIIX3/PIIX4 southbridge has multiple functions. We model each
function as a separate qdev. Two of them need some special wiring set
up in pc_init1() or mips_malta_init() to work: the ISA bridge at 01.0,...

efec3dd6 12/23/2013 01:27 am Markus Armbruster

qdev: Replace no_user by cannot_instantiate_with_device_add_yet

In an ideal world, machines can be built by wiring devices together
with configuration, not code. Unfortunately, that's not the world we
live in right now. We still have quite a few devices that need to be...

02a5c4c9 11/05/2013 07:06 pm Stefan Hajnoczi

qdev: Drop misleading qdev_free() function

The qdev_free() function name is misleading since all the function does
is unlink the device from its parent. The device is not necessarily
freed.

The device will be freed when its QObject refcount reaches zero. It is...

f854ecc7 10/14/2013 05:48 pm Michael S. Tsirkin

acpi/piix: add macros for acpi property names

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

277e9340 10/14/2013 05:48 pm Michael S. Tsirkin

piix: APIs for pc guest info

This adds APIs that will be used to fill in guest acpi tables.
Some required information is still lacking in QOM, so we
fall back on lookups by type and returning explicit types.

Reviewed-by: Gerd Hoffmann <>...

c046e8c4 09/15/2013 11:49 am Michael S. Tsirkin

piix4: disable io on reset

io base register at 0x40 is cleared on reset,
but io is not disabled until some other event
happens to call pm_io_space_update.

Invoke pm_io_space_update directly to make this
consistent.

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

38fcbd3f 09/03/2013 01:25 pm Andreas Färber

cpu: Replace qemu_for_each_cpu()

It was introduced to loop over CPUs from target-independent code, but
since commit 182735efaf956ccab50b6d74a4fed163e0f35660 target-independent
CPUState is used.

A loop can be considered more efficient than function calls in a loop,...

40daca54 08/22/2013 08:14 pm Alex Bligh

aio / timers: Rearrange timer.h & make legacy functions call non-legacy

Rearrange timer.h so it is in order by function type.

Make legacy functions call non-legacy functions rather than vice-versa.

Convert cpus.c to use new API.

Signed-off-by: Alex Bligh <>...

74e445f6 07/23/2013 01:37 am Peter Crosthwaite

acpi/piix4: QOM Upcast Sweep

Define and use standard QOM cast macro. Remove usages of DO_UPCAST()
and direct -> style upcasting.

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

6a6b5580 07/23/2013 01:37 am Andreas Färber

acpi/piix4: QOM parent field cleanup

Replace direct uses of PIIX4PMState::dev with QOM casts and rename it to
parent_obj.

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

64bde0f3 07/04/2013 06:42 pm Paolo Bonzini

hw/a*: pass owner to memory_region_init* functions

Signed-off-by: Paolo Bonzini <>

3ce10901 07/04/2013 06:42 pm Paolo Bonzini

memory: introduce memory_region_present

This new API will avoid having too many memory_region_ref/unref
in paths that currently use memory_region_find.

Signed-off-by: Paolo Bonzini <>

2c9b15ca 07/04/2013 06:42 pm Paolo Bonzini

memory: add owner argument to initialization functions

Signed-off-by: Paolo Bonzini <>

b6f32962 07/04/2013 06:42 pm Jan Kiszka

isa: implement isa_is_ioport_assigned via memory_region_find

Open-code isa_is_ioport_assigned via a memory region lookup. As all IO
ports are now directly or indirectly registered via the memory API, this
becomes possible and will finally allow us to drop the ioport tables....

ba275adb 06/14/2013 01:38 pm Hu Tao

piix: fix some printf errors when debug is enabled

And use PRIxxx macros if possible.

Signed-off-by: Hu Tao <>
Signed-off-by: Michael Tokarev <>

a88b362c 06/02/2013 06:14 pm Laszlo Ersek

refer to FWCfgState explicitly

Currently some places use pointer-to-void even though they mean
pointer-to-FWCfgState. Clean them up.

Signed-off-by: Laszlo Ersek <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Michael S. Tsirkin <>

b8622725 05/01/2013 02:04 pm Igor Mammedov

acpi_piix4: Add infrastructure to send CPU hot-plug GPE to guest

  • introduce processor status bitmask visible to guest at 0xaf00 addr,
    where ACPI asl code expects it
  • set bit corresponding to APIC ID in processor status bitmask on
    receiving CPU hot-plug notification...
49ab747f 04/08/2013 07:13 pm Paolo Bonzini

hw: move target-independent files to subdirectories

This patch tackles all files that are compiled once, moving
them to subdirectories of hw/.

Signed-off-by: Paolo Bonzini <>