virtio-pci: Added check for virtio device presence in mm callbacks.
authorAndrew Melnychenko <andrew@daynix.com>
Wed, 9 Jun 2021 09:58:41 +0000 (12:58 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Sat, 3 Jul 2021 05:39:33 +0000 (01:39 -0400)
commit80ebfd69b906186a12f0dc892a49188b4d672fdc
tree46ce8641739b99e21f43baf77037f583f720f505
parent9b0ca75e0196a72523232063db1e07ae36a5077a
virtio-pci: Added check for virtio device presence in mm callbacks.

During unplug the virtio device is unplugged from virtio-bus on pci. In some cases,
requests to virtio-pci mm may acquire during/after unplug. Added check that virtio
device is on the bus, for "common" memory region.

Signed-off-by: Andrew Melnychenko <andrew@daynix.com>
Message-Id: <20210609095843.141378-2-andrew@daynix.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio-pci.c