On (Thu) 28 Jul 2011 [20:05:05], Amit Shah wrote: > Hello, > > These patches are an initial attempt at supporting hibernation for > virtio drivers. > > The default configuration of event_index=on doesn't work; i.e. restore > from a hibernated image only works if the devices have event_index > support turned off. I have not yet dug into this, but is most likely > due to some state not being sync'ed. This was due to the host forgetting which features the guest had acked. Adding this on top of this series makes things work fine. I'll do more testing, refining code (sharing code with probe, etc.) and repost as a proper series (mostly after the KVM Forum). diff --git a/drivers/virtio/virtio_pci.c b/drivers/virtio/virtio_pci.c index 9c37561..c09d6a5 100644 --- a/drivers/virtio/virtio_pci.c +++ b/drivers/virtio/virtio_pci.c @@ -734,6 +734,7 @@ static int virtio_pci_restore(struct device *dev) struct virtio_driver, driver); vp_set_status(&vp_dev->vdev, vp_dev->saved_status); + vp_finalize_features(&vp_dev->vdev); if (drv && drv->restore) return drv->restore(&vp_dev->vdev); Amit _______________________________________________ Virtualization mailing list Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/virtualization