aboutsummaryrefslogtreecommitdiff
path: root/module-common.c
diff options
context:
space:
mode:
authorAndrew Melnychenko <andrew@daynix.com>2021-06-09 12:58:42 +0300
committerMichael S. Tsirkin <mst@redhat.com>2021-07-03 01:39:33 -0400
commitbf697371db87cc1a2d04f5e8dda1b4b3e2be0f0d (patch)
tree98684eabe4cfef9f2469c0ffbc8aba4647a31e5e /module-common.c
parent80ebfd69b906186a12f0dc892a49188b4d672fdc (diff)
downloadqemu-bf697371db87cc1a2d04f5e8dda1b4b3e2be0f0d.zip
qemu-bf697371db87cc1a2d04f5e8dda1b4b3e2be0f0d.tar.gz
qemu-bf697371db87cc1a2d04f5e8dda1b4b3e2be0f0d.tar.bz2
virtio-pci: Added check for virtio device in PCI config cbs.
Now, if virtio device is not present on virtio-bus - pci config callbacks will not lead to possible crush. The read will return "-1" which should be interpreted by a driver that pci device may be unplugged. Signed-off-by: Andrew Melnychenko <andrew@daynix.com> Message-Id: <20210609095843.141378-3-andrew@daynix.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'module-common.c')
0 files changed, 0 insertions, 0 deletions