[libvirt] [PATCH 0/5] util: open pci config read-only for querying

Ján Tomko jtomko at redhat.com
Tue Aug 13 13:45:14 UTC 2019


A bunch of functions opened the PCI device config as read-write
even though they only read from it.

Ján Tomko (5):
  util: introduce virPCIDeviceConfigOpenInternal
  util: Introduce virPCIDeviceConfigOpenWrite
  util: introduce readonly attribute to virPCIDeviceConfigOpenInternal
  util: introduce virPCIDeviceConfigOpenTry
  util: default to read-only in virPCIDeviceConfigOpen

 src/util/virpci.c | 40 +++++++++++++++++++++++++++++-----------
 1 file changed, 29 insertions(+), 11 deletions(-)

-- 
2.20.1




More information about the libvir-list mailing list