]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Introduce virPCIDeviceConfigOpenWrite
authorJán Tomko <jtomko@redhat.com>
Tue, 13 Aug 2019 13:07:53 +0000 (15:07 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 14 Aug 2019 14:28:34 +0000 (16:28 +0200)
commitfabb7430501c211430ba798a54a1cf1766557976
treedee5b6f52d2f454283b42779bd19fc4d5722d3c1
parentfc16c69987e6ecdec7f3e614ba1bf2c6224a68db
util: Introduce virPCIDeviceConfigOpenWrite

Only a handful of function need write access to the PCI config
space. Create a wrapper function for those so that we can
open it read only by default.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virpci.c