diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-08-28 16:02:32 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2020-01-06 18:41:32 +0400 |
commit | 3cad405babb461e3c70782c51415f0b64bc7540d (patch) | |
tree | 97b2207f7ce1aec97358abae4cd14984d18d5dab /hw/net/virtio-net.c | |
parent | 107b59698f79b323c4d111c46eb9e3db6f9d258b (diff) | |
download | qemu-3cad405babb461e3c70782c51415f0b64bc7540d.zip qemu-3cad405babb461e3c70782c51415f0b64bc7540d.tar.gz qemu-3cad405babb461e3c70782c51415f0b64bc7540d.tar.bz2 |
vmstate: replace DeviceState with VMStateIf
Replace DeviceState dependency with VMStateIf on vmstate API.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Acked-by: Halil Pasic <pasic@linux.ibm.com>
Diffstat (limited to 'hw/net/virtio-net.c')
-rw-r--r-- | hw/net/virtio-net.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index db3d7c3..777d62d 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@ -2853,7 +2853,8 @@ static void virtio_net_handle_migration_primary(VirtIONet *n, if (migration_in_setup(s) && !should_be_hidden) { if (failover_unplug_primary(n)) { - vmstate_unregister(n->primary_dev, qdev_get_vmsd(n->primary_dev), + vmstate_unregister(VMSTATE_IF(n->primary_dev), + qdev_get_vmsd(n->primary_dev), n->primary_dev); qapi_event_send_unplug_primary(n->primary_device_id); atomic_set(&n->primary_should_be_hidden, true); |