virtio-net: Incorporate a DeviceState pointer and let savevm track instances
authorAlex Williamson <alex.williamson@redhat.com>
Fri, 25 Jun 2010 17:09:28 +0000 (11:09 -0600)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 6 Jul 2010 15:36:28 +0000 (10:36 -0500)
commit01657c867d21bbabb1af22c6fe62ff80a2970446
tree1bcf7eb0b2032c8c7e17e72d9813caab237291c1
parent5fce2b3e46b697230996568e1fed39d02a6bedb2
virtio-net: Incorporate a DeviceState pointer and let savevm track instances

Stuff a pointer to the DeviceState into the VirtIONet structure so that
we can easily remove the vmstate entry later.  Also, let vmstate track
the instance number (it should always be zero internally since the
device path should now be unique).

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/virtio-net.c