summaryrefslogtreecommitdiffstats
path: root/include/hw/qdev-core.h
diff options
context:
space:
mode:
authorKevin Wolf2021-10-08 15:34:40 +0200
committerKevin Wolf2021-10-15 16:11:22 +0200
commit12b2fad7dcc8d08b6a59d1b14caa392ea614c6d9 (patch)
tree3855001d9766af91ba35e1c6ec129dd9f7dc3f35 /include/hw/qdev-core.h
parentvirtio-net: Store failover primary opts pointer locally (diff)
downloadqemu-12b2fad7dcc8d08b6a59d1b14caa392ea614c6d9.tar.gz
qemu-12b2fad7dcc8d08b6a59d1b14caa392ea614c6d9.tar.xz
qemu-12b2fad7dcc8d08b6a59d1b14caa392ea614c6d9.zip
virtio-net: Avoid QemuOpts in failover_find_primary_device()
Don't go through the global QemuOptsList, it is state of the legacy command line parser and we will create devices that are not contained in it. It is also just the command line configuration and not necessarily the current runtime state. Instead, look at the qdev device tree which has the current state of all existing devices. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-Id: <20211008133442.141332-14-kwolf@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Tested-by: Peter Krempa <pkrempa@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/hw/qdev-core.h')
0 files changed, 0 insertions, 0 deletions