From patchwork Thu Oct 18 20:51:37 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Williamson X-Patchwork-Id: 192452 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 9DEB82C0092 for ; Fri, 19 Oct 2012 07:53:42 +1100 (EST) Received: from localhost ([::1]:48768 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOx4d-000660-4k for incoming@patchwork.ozlabs.org; Thu, 18 Oct 2012 16:52:11 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59290) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOx49-0004zj-Pd for qemu-devel@nongnu.org; Thu, 18 Oct 2012 16:51:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TOx48-0008A7-OP for qemu-devel@nongnu.org; Thu, 18 Oct 2012 16:51:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26791) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOx48-00089h-FI for qemu-devel@nongnu.org; Thu, 18 Oct 2012 16:51:40 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q9IKpcUt013080 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 18 Oct 2012 16:51:38 -0400 Received: from bling.home (ovpn-113-170.phx2.redhat.com [10.3.113.170]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q9IKpcGZ006666; Thu, 18 Oct 2012 16:51:38 -0400 From: Alex Williamson To: anthony@codemonkey.ws, qemu-devel@nongnu.org Date: Thu, 18 Oct 2012 14:51:37 -0600 Message-ID: <20121018205136.795.9559.stgit@bling.home> In-Reply-To: <20121018204600.795.11323.stgit@bling.home> References: <20121018204600.795.11323.stgit@bling.home> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: alex.williamson@redhat.com, kvm@vger.kernel.org Subject: [Qemu-devel] [PATCH 2/2] vfio-pci: Mark non-migratable X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org We haven't magically fixed this yet. Toss in a description too. Signed-off-by: Alex Williamson --- hw/vfio_pci.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hw/vfio_pci.c b/hw/vfio_pci.c index 0619af4..d5ff367 100644 --- a/hw/vfio_pci.c +++ b/hw/vfio_pci.c @@ -1946,6 +1946,10 @@ static Property vfio_pci_dev_properties[] = { DEFINE_PROP_END_OF_LIST(), }; +static const VMStateDescription vfio_pci_vmstate = { + .name = "vfio-pci", + .unmigratable = 1, +}; static void vfio_pci_dev_class_init(ObjectClass *klass, void *data) { @@ -1954,6 +1958,8 @@ static void vfio_pci_dev_class_init(ObjectClass *klass, void *data) dc->reset = vfio_pci_reset; dc->props = vfio_pci_dev_properties; + dc->vmsd = &vfio_pci_vmstate; + dc->desc = "VFIO-based PCI device assignment"; pdc->init = vfio_initfn; pdc->exit = vfio_exitfn; pdc->config_read = vfio_pci_read_config;