From patchwork Thu Nov 18 10:45:17 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 72076 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id CC50CB71B1 for ; Thu, 18 Nov 2010 21:47:16 +1100 (EST) Received: from localhost ([127.0.0.1]:52781 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJ219-0001KB-EW for incoming@patchwork.ozlabs.org; Thu, 18 Nov 2010 05:47:03 -0500 Received: from [140.186.70.92] (port=34802 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJ1zd-0001Jz-LP for qemu-devel@nongnu.org; Thu, 18 Nov 2010 05:45:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PJ1zc-00084Q-2O for qemu-devel@nongnu.org; Thu, 18 Nov 2010 05:45:29 -0500 Received: from mx1.redhat.com ([209.132.183.28]:9365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PJ1zb-00083j-Pg for qemu-devel@nongnu.org; Thu, 18 Nov 2010 05:45:27 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oAIAjQ3U022669 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 18 Nov 2010 05:45:26 -0500 Received: from rincewind.home.kraxel.org (vpn2-11-75.ams2.redhat.com [10.36.11.75]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id oAIAjNEo016718; Thu, 18 Nov 2010 05:45:24 -0500 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id C9E624557F; Thu, 18 Nov 2010 11:45:19 +0100 (CET) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Thu, 18 Nov 2010 11:45:17 +0100 Message-Id: <1290077118-11577-3-git-send-email-kraxel@redhat.com> In-Reply-To: <1290077118-11577-1-git-send-email-kraxel@redhat.com> References: <1290077118-11577-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: Gerd Hoffmann Subject: [Qemu-devel] [PATCH 2/3] piix: tag as not hotpluggable. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org This patch tags all pci devices which belong to the piix3/4 chipsets as not hotpluggable (Host bridge, ISA bridge, IDE controller, ACPI bridge). Signed-off-by: Gerd Hoffmann --- hw/acpi_piix4.c | 2 ++ hw/ide/piix.c | 2 ++ hw/piix4.c | 1 + hw/piix_pci.c | 2 ++ 4 files changed, 7 insertions(+), 0 deletions(-) diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c index f549089..a896f65 100644 --- a/hw/acpi_piix4.c +++ b/hw/acpi_piix4.c @@ -439,6 +439,8 @@ static PCIDeviceInfo piix4_pm_info = { .qdev.desc = "PM", .qdev.size = sizeof(PIIX4PMState), .qdev.vmsd = &vmstate_acpi, + .qdev.no_user = 1, + .qdev.no_hotplug = 1, .init = piix4_pm_initfn, .config_write = pm_write_config, .qdev.props = (Property[]) { diff --git a/hw/ide/piix.c b/hw/ide/piix.c index 07483e8..f46e007 100644 --- a/hw/ide/piix.c +++ b/hw/ide/piix.c @@ -184,11 +184,13 @@ static PCIDeviceInfo piix_ide_info[] = { .qdev.name = "piix3-ide", .qdev.size = sizeof(PCIIDEState), .qdev.no_user = 1, + .qdev.no_hotplug = 1, .init = pci_piix3_ide_initfn, },{ .qdev.name = "piix4-ide", .qdev.size = sizeof(PCIIDEState), .qdev.no_user = 1, + .qdev.no_hotplug = 1, .init = pci_piix4_ide_initfn, },{ /* end of list */ diff --git a/hw/piix4.c b/hw/piix4.c index 5489386..1678898 100644 --- a/hw/piix4.c +++ b/hw/piix4.c @@ -113,6 +113,7 @@ static PCIDeviceInfo piix4_info[] = { .qdev.desc = "ISA bridge", .qdev.size = sizeof(PCIDevice), .qdev.no_user = 1, + .qdev.no_hotplug = 1, .init = piix4_initfn, },{ /* end of list */ diff --git a/hw/piix_pci.c b/hw/piix_pci.c index b5589b9..304a2bd 100644 --- a/hw/piix_pci.c +++ b/hw/piix_pci.c @@ -348,6 +348,7 @@ static PCIDeviceInfo i440fx_info[] = { .qdev.size = sizeof(PCII440FXState), .qdev.vmsd = &vmstate_i440fx, .qdev.no_user = 1, + .qdev.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, + .qdev.no_hotplug = 1, .init = piix3_initfn, },{ /* end of list */