From: Gonglei <arei.gong...@huawei.com> usb host controller should be able to support hotplug/unplug, as the same as the other pci devices, which not enable multifunction capability.
BTW, the qemu have not the capability to support hotplug mulitfuncition pci devices at present. Signed-off-by: Gonglei <arei.gong...@huawei.com> --- hw/usb/hcd-ehci-pci.c | 1 - hw/usb/hcd-ohci.c | 1 - hw/usb/hcd-uhci.c | 1 - hw/usb/hcd-xhci.c | 1 - 4 files changed, 4 deletions(-) diff --git a/hw/usb/hcd-ehci-pci.c b/hw/usb/hcd-ehci-pci.c index 537fddd..07b7587 100644 --- a/hw/usb/hcd-ehci-pci.c +++ b/hw/usb/hcd-ehci-pci.c @@ -140,7 +140,6 @@ static void ehci_class_init(ObjectClass *klass, void *data) k->exit = usb_ehci_exit; k->class_id = PCI_CLASS_SERIAL_USB; k->config_write = usb_ehci_pci_write_config; - dc->hotpluggable = false; dc->vmsd = &vmstate_ehci_pci; dc->props = ehci_pci_properties; } diff --git a/hw/usb/hcd-ohci.c b/hw/usb/hcd-ohci.c index 3add206..dd2e8f1 100644 --- a/hw/usb/hcd-ohci.c +++ b/hw/usb/hcd-ohci.c @@ -2111,7 +2111,6 @@ static void ohci_pci_class_init(ObjectClass *klass, void *data) set_bit(DEVICE_CATEGORY_USB, dc->categories); dc->desc = "Apple USB Controller"; dc->props = ohci_pci_properties; - dc->hotpluggable = false; dc->vmsd = &vmstate_ohci; } diff --git a/hw/usb/hcd-uhci.c b/hw/usb/hcd-uhci.c index 27b1f04..484b1a6 100644 --- a/hw/usb/hcd-uhci.c +++ b/hw/usb/hcd-uhci.c @@ -1322,7 +1322,6 @@ static void uhci_class_init(ObjectClass *klass, void *data) k->device_id = info->device_id; k->revision = info->revision; k->class_id = PCI_CLASS_SERIAL_USB; - dc->hotpluggable = false; dc->vmsd = &vmstate_uhci; dc->props = uhci_properties; set_bit(DEVICE_CATEGORY_USB, dc->categories); diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index 4c266e7..6b996d9 100644 --- a/hw/usb/hcd-xhci.c +++ b/hw/usb/hcd-xhci.c @@ -3838,7 +3838,6 @@ static void xhci_class_init(ObjectClass *klass, void *data) dc->vmsd = &vmstate_xhci; dc->props = xhci_properties; dc->reset = xhci_reset; - dc->hotpluggable = false; set_bit(DEVICE_CATEGORY_USB, dc->categories); k->init = usb_xhci_initfn; k->exit = usb_xhci_exit; -- 1.7.12.4