From patchwork Thu Feb 24 14:17:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 84398 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 07262B6F12 for ; Fri, 25 Feb 2011 01:20:43 +1100 (EST) Received: from localhost ([127.0.0.1]:51120 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Psc1Y-0001mP-9G for incoming@patchwork.ozlabs.org; Thu, 24 Feb 2011 09:18:32 -0500 Received: from [140.186.70.92] (port=40043 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Psc0V-0001kp-PD for qemu-devel@nongnu.org; Thu, 24 Feb 2011 09:17:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Psc0U-0007hV-P9 for qemu-devel@nongnu.org; Thu, 24 Feb 2011 09:17:27 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51685) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Psc0U-0007hM-6H for qemu-devel@nongnu.org; Thu, 24 Feb 2011 09:17:26 -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.14.4/8.14.4) with ESMTP id p1OEHPmT008636 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 24 Feb 2011 09:17:25 -0500 Received: from trasno.mitica (ovpn-113-97.phx2.redhat.com [10.3.113.97]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p1OEHME7013292; Thu, 24 Feb 2011 09:17:24 -0500 From: Juan Quintela To: qemu-devel@nongnu.org Date: Thu, 24 Feb 2011 15:17:14 +0100 Message-Id: In-Reply-To: References: In-Reply-To: References: 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. X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 1/3] vmstate: remove grackle_pci savevm code 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 It was migrating the wrong structures, no way it would work Signed-off-by: Juan Quintela --- hw/grackle_pci.c | 19 ------------------- 1 files changed, 0 insertions(+), 19 deletions(-) diff --git a/hw/grackle_pci.c b/hw/grackle_pci.c index bd3d6b0..d35701f 100644 --- a/hw/grackle_pci.c +++ b/hw/grackle_pci.c @@ -57,23 +57,6 @@ static void pci_grackle_set_irq(void *opaque, int irq_num, int level) qemu_set_irq(pic[irq_num + 0x15], level); } -static void pci_grackle_save(QEMUFile* f, void *opaque) -{ - PCIDevice *d = opaque; - - pci_device_save(d, f); -} - -static int pci_grackle_load(QEMUFile* f, void *opaque, int version_id) -{ - PCIDevice *d = opaque; - - if (version_id != 1) - return -EINVAL; - - return pci_device_load(d, f); -} - static void pci_grackle_reset(void *opaque) { } @@ -115,8 +98,6 @@ static int pci_grackle_init_device(SysBusDevice *dev) sysbus_init_mmio(dev, 0x1000, pci_mem_config); sysbus_init_mmio(dev, 0x1000, pci_mem_data); - register_savevm(&dev->qdev, "grackle", 0, 1, pci_grackle_save, - pci_grackle_load, &s->host_state); qemu_register_reset(pci_grackle_reset, &s->host_state); return 0; }