[qemu-xen master] hw/acpi: Limit hotplug to root bus on legacy mode

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[qemu-xen master] hw/acpi: Limit hotplug to root bus on legacy mode

patchbot
commit 2e79396324fbcec31fef8f96a49fe3c7214ce958
Author:     Anthony PERARD <[hidden email]>
AuthorDate: Wed Sep 6 14:40:31 2017 +0100
Commit:     Anthony PERARD <[hidden email]>
CommitDate: Mon Sep 11 10:44:43 2017 +0100

    hw/acpi: Limit hotplug to root bus on legacy mode
   
    Signed-off-by: Anthony PERARD <[hidden email]>
    Reviewed-by: Michael S. Tsirkin <[hidden email]>
    Signed-off-by: Michael S. Tsirkin <[hidden email]>
    (cherry picked from commit f5855994fee2f8815dc86b8453e4a63e290aea05)
---
 hw/acpi/pcihp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/acpi/pcihp.c b/hw/acpi/pcihp.c
index c420a38..9db3c2e 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:
--
generated by git-patchbot for /home/xen/git/qemu-xen.git#master

_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog