From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIhJD-0006Tx-Id for qemu-devel@nongnu.org; Thu, 30 Jun 2016 15:07:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIhJB-0000W6-KL for qemu-devel@nongnu.org; Thu, 30 Jun 2016 15:07:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52442) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIhJB-0000VT-F1 for qemu-devel@nongnu.org; Thu, 30 Jun 2016 15:07:29 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 27B64811A2 for ; Thu, 30 Jun 2016 19:07:29 +0000 (UTC) From: Marcel Apfelbaum Date: Thu, 30 Jun 2016 22:07:16 +0300 Message-Id: <1467313640-29605-3-git-send-email-marcel@redhat.com> In-Reply-To: <1467313640-29605-1-git-send-email-marcel@redhat.com> References: <1467313640-29605-1-git-send-email-marcel@redhat.com> Subject: [Qemu-devel] [PATCH V4 2/6] hw/pxb: declare pxb devices as not hot-pluggable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: marcel@redhat.com, mst@redhat.com, pbonzini@redhat.com, imammedo@redhat.com, lersek@redhat.com, ehabkost@redhat.com Prevent future issues when hotplug will work for devices attached to pxbs. Suggested-by: Igor Mammedov Signed-off-by: Marcel Apfelbaum --- hw/pci-bridge/pci_expander_bridge.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/pci-bridge/pci_expander_bridge.c b/hw/pci-bridge/pci_expander_bridge.c index ba320bd..9136a23 100644 --- a/hw/pci-bridge/pci_expander_bridge.c +++ b/hw/pci-bridge/pci_expander_bridge.c @@ -308,6 +308,7 @@ static void pxb_dev_class_init(ObjectClass *klass, void *data) dc->desc = "PCI Expander Bridge"; dc->props = pxb_dev_properties; + dc->hotpluggable = false; set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); } @@ -341,6 +342,7 @@ static void pxb_pcie_dev_class_init(ObjectClass *klass, void *data) dc->desc = "PCI Express Expander Bridge"; dc->props = pxb_dev_properties; + dc->hotpluggable = false; set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); } -- 2.4.3