hw/isa/piix3: Create power management controller in host device
authorBernhard Beschow <shentey@gmail.com>
Sat, 7 Oct 2023 12:38:21 +0000 (14:38 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 22 Oct 2023 09:18:17 +0000 (05:18 -0400)
commit0a15cf0801815a359af211361fba309a2cc5c1e8
tree7361dce6c426c65916d9883f62e6b11877057b82
parent6fe4464c05f45e726fcfa4a7927f4ed27444a0ca
hw/isa/piix3: Create power management controller in host device

The power management controller is an integral part of PIIX3 (function 3). So
create it as part of the south bridge.

Note that the ACPI function is optional in QEMU. This is why it gets
object_initialize_child()'ed in realize rather than in instance_init.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20231007123843.127151-14-shentey@gmail.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/pc_piix.c
hw/isa/Kconfig
hw/isa/piix3.c
include/hw/southbridge/piix.h