On 8/13/19 3:45 PM, Ján Tomko wrote:
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(-)
Reviewed-by: Michal Privoznik <mprivozn(a)redhat.com>
Michal