]> git.proxmox.com Git - qemu.git/commitdiff
piix: tag as not hotpluggable.
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 6 Jan 2011 14:14:38 +0000 (15:14 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 10 Jan 2011 11:29:25 +0000 (13:29 +0200)
This patch tags all pci devices which belong to the piix3/4 chipsets as
not hotpluggable (Host bridge, ISA bridge, IDE controller, ACPI bridge).

Acked-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/acpi_piix4.c
hw/ide/piix.c
hw/piix4.c
hw/piix_pci.c

index 173d78148ddcbf683f2a6386e073be25cfe62bce..273097d480e91d774e661c73cfad8343b4bd1d0e 100644 (file)
@@ -428,6 +428,8 @@ static PCIDeviceInfo piix4_pm_info = {
     .qdev.desc          = "PM",
     .qdev.size          = sizeof(PIIX4PMState),
     .qdev.vmsd          = &vmstate_acpi,
+    .qdev.no_user       = 1,
+    .no_hotplug         = 1,
     .init               = piix4_pm_initfn,
     .config_write       = pm_write_config,
     .qdev.props         = (Property[]) {
index 1cad9066a0aad3028afcf7196cad734be321f8b0..d4289af9c45e8987b667ab72fefe7e2a25fe3e1a 100644 (file)
@@ -194,11 +194,13 @@ static PCIDeviceInfo piix_ide_info[] = {
         .qdev.name    = "piix3-ide",
         .qdev.size    = sizeof(PCIIDEState),
         .qdev.no_user = 1,
+        .no_hotplug   = 1,
         .init         = pci_piix3_ide_initfn,
     },{
         .qdev.name    = "piix4-ide",
         .qdev.size    = sizeof(PCIIDEState),
         .qdev.no_user = 1,
+        .no_hotplug   = 1,
         .init         = pci_piix4_ide_initfn,
     },{
         /* end of list */
index 5489386d689207c2f42e773788f83bf939aafb12..72073cd0a094da3e292df2fbd0f5992911d18b03 100644 (file)
@@ -113,6 +113,7 @@ static PCIDeviceInfo piix4_info[] = {
         .qdev.desc    = "ISA bridge",
         .qdev.size    = sizeof(PCIDevice),
         .qdev.no_user = 1,
+        .no_hotplug   = 1,
         .init         = piix4_initfn,
     },{
         /* end of list */
index 38f9d9eea4e46f30c533d9cf65e78f8d8ec4e0ee..358da58a800651e1cdcc3258fda33424f5caca9b 100644 (file)
@@ -348,6 +348,7 @@ static PCIDeviceInfo i440fx_info[] = {
         .qdev.size    = sizeof(PCII440FXState),
         .qdev.vmsd    = &vmstate_i440fx,
         .qdev.no_user = 1,
+        .no_hotplug   = 1,
         .init         = i440fx_initfn,
         .config_write = i440fx_write_config,
     },{
@@ -356,6 +357,7 @@ static PCIDeviceInfo i440fx_info[] = {
         .qdev.size    = sizeof(PIIX3State),
         .qdev.vmsd    = &vmstate_piix3,
         .qdev.no_user = 1,
+        .no_hotplug   = 1,
         .init         = piix3_initfn,
     },{
         /* end of list */