diff options
author | Anthony PERARD | 2017-09-06 15:40:31 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2017-09-08 15:15:17 +0200 |
commit | f5855994fee2f8815dc86b8453e4a63e290aea05 (patch) | |
tree | 78a3f50acb2424d2a790dbd45382e5dcf98135a8 | |
parent | pc: add 2.11 machine types (diff) | |
download | qemu-f5855994fee2f8815dc86b8453e4a63e290aea05.tar.gz qemu-f5855994fee2f8815dc86b8453e4a63e290aea05.tar.xz qemu-f5855994fee2f8815dc86b8453e4a63e290aea05.zip |
hw/acpi: Limit hotplug to root bus on legacy mode
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
-rw-r--r-- | hw/acpi/pcihp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/acpi/pcihp.c b/hw/acpi/pcihp.c index c420a388ea..9db3c2eaf2 100644 --- a/hw/acpi/pcihp.c +++ b/hw/acpi/pcihp.c @@ -273,7 +273,7 @@ static void pci_write(void *opaque, hwaddr addr, uint64_t data, addr, data); break; case PCI_SEL_BASE: - s->hotplug_select = data; + s->hotplug_select = s->legacy_piix ? ACPI_PCIHP_BSEL_DEFAULT : data; ACPI_PCIHP_DPRINTF("pcisel write %" HWADDR_PRIx " <== %" PRIu64 "\n", addr, data); default: |