Searched hist:"12 b2fad7dcc8d08b6a59d1b14caa392ea614c6d9" (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/hw/net/ |
H A D | virtio-net.c | diff 12b2fad7dcc8d08b6a59d1b14caa392ea614c6d9 Fri Oct 08 08:34:40 CDT 2021 Kevin Wolf <kwolf@redhat.com> 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>
|