summaryrefslogtreecommitdiffstats
path: root/hw/net/virtio-net.c
diff options
context:
space:
mode:
authorJuan Quintela2020-11-18 09:37:24 +0100
committerMichael S. Tsirkin2020-12-08 19:48:57 +0100
commit587f2fcb93eddf69736e00731a2da018a0e0a726 (patch)
tree7d7bc95ec30e6862308e6e6e31e93a37fd8cee44 /hw/net/virtio-net.c
parentfailover: fix indentantion (diff)
downloadqemu-587f2fcb93eddf69736e00731a2da018a0e0a726.tar.gz
qemu-587f2fcb93eddf69736e00731a2da018a0e0a726.tar.xz
qemu-587f2fcb93eddf69736e00731a2da018a0e0a726.zip
failover: Use always atomics for primary_should_be_hidden
Signed-off-by: Juan Quintela <quintela@redhat.com> Message-Id: <20201118083748.1328-4-quintela@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/net/virtio-net.c')
-rw-r--r--hw/net/virtio-net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c
index 1011a524bf..a0fa63e7cb 100644
--- a/hw/net/virtio-net.c
+++ b/hw/net/virtio-net.c
@@ -3136,7 +3136,7 @@ static bool failover_replug_primary(VirtIONet *n, Error **errp)
return false;
}
qdev_set_parent_bus(n->primary_dev, n->primary_bus, &error_abort);
- n->primary_should_be_hidden = false;
+ qatomic_set(&n->primary_should_be_hidden, false);
if (!qemu_opt_set_bool(n->primary_device_opts,
"partially_hotplugged", true, errp)) {
return false;