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

The USB controller is an integral part of PIIX3 (function 2). So create
it as part of the south bridge.

Note that the USB 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-13-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