mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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 <kraxel@redhat.com> Tested-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Tested-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
f854ecc799
commit
277e9340e6
4 changed files with 57 additions and 4 deletions
|
@ -416,6 +416,14 @@ PCIBus *i440fx_init(PCII440FXState **pi440fx_state,
|
|||
return b;
|
||||
}
|
||||
|
||||
PCIBus *find_i440fx(void)
|
||||
{
|
||||
PCIHostState *s = OBJECT_CHECK(PCIHostState,
|
||||
object_resolve_path("/machine/i440fx", NULL),
|
||||
TYPE_PCI_HOST_BRIDGE);
|
||||
return s ? s->bus : NULL;
|
||||
}
|
||||
|
||||
/* PIIX3 PCI to ISA bridge */
|
||||
static void piix3_set_irq_pic(PIIX3State *piix3, int pic_irq)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue