]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Forbid resetting non-endpoint devices
authorShivaprasad G Bhat <sbhat@linux.vnet.ibm.com>
Mon, 23 Jan 2017 13:37:10 +0000 (19:07 +0530)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 23 Jan 2017 16:23:12 +0000 (17:23 +0100)
commitbd12889616c552a72ae4704f0e0d53cc6d9e7392
tree986ee771f78907cc3655698d26ea565269ef0089
parentbec9b9b01a9e61278cefc24ac9dd1e95bdac9d4f
util: Forbid resetting non-endpoint devices

It is destructive to attempt reset on a pci- or cardbus-bridge, the
host can crash.  The bridges won't contain any guest data and neither
they can be passed through using vfio/stub.  So, no point in allowing a
reset on them.

Signed-off-by: Shivaprasad G Bhat <sbhat@linux.vnet.ibm.com>
src/util/virpci.c