summaryrefslogtreecommitdiffstats
path: root/include/hw/virtio
diff options
context:
space:
mode:
authorJuan Quintela2020-11-18 09:37:29 +0100
committerMichael S. Tsirkin2020-12-08 19:48:57 +0100
commite2bde83e23d3cfc1d90911c74500fd2e3b0b04fa (patch)
treea4905915225e014e79e51a08e1a28c5d08a0890b /include/hw/virtio
parentfailover: qdev_device_add() returns err or dev set (diff)
downloadqemu-e2bde83e23d3cfc1d90911c74500fd2e3b0b04fa.tar.gz
qemu-e2bde83e23d3cfc1d90911c74500fd2e3b0b04fa.tar.xz
qemu-e2bde83e23d3cfc1d90911c74500fd2e3b0b04fa.zip
failover: Rename bool to failover_primary_hidden
You should not use passive naming variables. And once there, be able to search for them. Signed-off-by: Juan Quintela <quintela@redhat.com> Message-Id: <20201118083748.1328-9-quintela@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/virtio')
-rw-r--r--include/hw/virtio/virtio-net.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/virtio/virtio-net.h b/include/hw/virtio/virtio-net.h
index c8da637d40..ca68be759f 100644
--- a/include/hw/virtio/virtio-net.h
+++ b/include/hw/virtio/virtio-net.h
@@ -207,7 +207,8 @@ struct VirtIONet {
DeviceState *primary_dev;
char *primary_device_id;
char *standby_id;
- bool primary_should_be_hidden;
+ /* primary failover device is hidden*/
+ bool failover_primary_hidden;
bool failover;
DeviceListener primary_listener;
Notifier migration_state;