mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
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. To make pci_read mmio callback compatible with legacy 'up' behavior, pcihp code will need to know in which mode it runs add 'legacy_piix' field to AcpiPciHpState structure and alter register behavior accordingly. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
a7b613cf68
commit
99d09dd328
3 changed files with 9 additions and 4 deletions
|
@ -46,10 +46,11 @@ typedef struct AcpiPciHpState {
|
|||
uint32_t hotplug_select;
|
||||
PCIBus *root;
|
||||
MemoryRegion io;
|
||||
bool legacy_piix;
|
||||
} AcpiPciHpState;
|
||||
|
||||
void acpi_pcihp_init(AcpiPciHpState *, PCIBus *root,
|
||||
MemoryRegion *address_space_io);
|
||||
MemoryRegion *address_space_io, bool bridges_enabled);
|
||||
|
||||
/* Invoke on device hotplug */
|
||||
int acpi_pcihp_device_hotplug(AcpiPciHpState *, PCIDevice *,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue