From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [PATCH] qemu: virtio save/load bindings Date: Tue, 26 May 2009 03:34:32 -0500 Message-ID: <4A1BA998.8040803@codemonkey.ws> References: <20090525133405.GA6166@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Paul Brook , Avi Kivity , qemu-devel@nongnu.org, Carsten Otte , kvm@vger.kernel.org, Rusty Russell , virtualization@lists.linux-foundation.org, Christian Borntraeger , Blue Swirl To: "Michael S. Tsirkin" Return-path: Received: from mail-qy0-f190.google.com ([209.85.221.190]:45665 "EHLO mail-qy0-f190.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753409AbZEZIei (ORCPT ); Tue, 26 May 2009 04:34:38 -0400 Received: by qyk28 with SMTP id 28so3097696qyk.33 for ; Tue, 26 May 2009 01:34:39 -0700 (PDT) In-Reply-To: <20090525133405.GA6166@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: 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