From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M8s7R-0007VI-4E for qemu-devel@nongnu.org; Tue, 26 May 2009 04:34:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M8s7M-0007Uk-Lw for qemu-devel@nongnu.org; Tue, 26 May 2009 04:34:44 -0400 Received: from [199.232.76.173] (port=51341 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8s7M-0007Uh-KC for qemu-devel@nongnu.org; Tue, 26 May 2009 04:34:40 -0400 Received: from qw-out-1920.google.com ([74.125.92.149]:34967) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M8s7M-0007Ft-2D for qemu-devel@nongnu.org; Tue, 26 May 2009 04:34:40 -0400 Received: by qw-out-1920.google.com with SMTP id 4so1863391qwk.4 for ; Tue, 26 May 2009 01:34:39 -0700 (PDT) Message-ID: <4A1BA998.8040803@codemonkey.ws> Date: Tue, 26 May 2009 03:34:32 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <20090525133405.GA6166@redhat.com> In-Reply-To: <20090525133405.GA6166@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH] qemu: virtio save/load bindings List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Carsten Otte , kvm@vger.kernel.org, Rusty Russell , qemu-devel@nongnu.org, virtualization@lists.linux-foundation.org, Blue Swirl , Christian Borntraeger , Paul Brook , Avi Kivity Michael S. Tsirkin wrote: > Implement bindings for virtio save/load. Use them in virtio pci. > > Signed-off-by: Michael S. Tsirkin > --- > > Is anyone working to fill in load/save bindings so that saving virtio > devices works? Here's a trivial patch to do this (this one is on top of my > MSI-X patchset). > Comments? > > hw/virtio-pci.c | 49 ++++++++++++++++++++++++++++++++++++++++++++++++- > hw/virtio.c | 31 ++++++++++++++----------------- > hw/virtio.h | 4 ++++ > 3 files changed, 66 insertions(+), 18 deletions(-) > > static void virtio_init_pci(VirtIOPCIProxy *proxy, VirtIODevice *vdev, > diff --git a/hw/virtio.c b/hw/virtio.c > index 63ffcff..b773dff 100644 > --- a/hw/virtio.c > +++ b/hw/virtio.c > @@ -568,9 +568,8 @@ void virtio_save(VirtIODevice *vdev, QEMUFile *f) > { > int i; > > - /* FIXME: load/save binding. */ > - //pci_device_save(&vdev->pci_dev, f); > - //msix_save(&vdev->pci_dev, f); > qdev regressed save/restore? What else is broken right now from the qdev commit? I'm beginning to think committing in the state it was in was a mistake. Paul, can you put together a TODO so that we know all of the things that have regressed so we can get things back into shape? Regards, Anthony Liguori