]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Xen: Add writeFiltering option for PCI devices
authorJim Fehlig <jfehlig@suse.com>
Fri, 14 Aug 2020 16:28:38 +0000 (10:28 -0600)
committerJim Fehlig <jfehlig@suse.com>
Tue, 1 Sep 2020 20:29:17 +0000 (14:29 -0600)
commit9d15647dcb96831c93ac8c1d67c47265b5ed9072
treef9ccd50554297a5b0eb4041cecfd50c5ca626436
parent2ad009eadde27491ff4248f481560953776b2a87
Xen: Add writeFiltering option for PCI devices

By default Xen only allows guests to write "known safe" values into PCI
configuration space, yet many devices require writes to other areas of
the configuration space in order to operate properly. To allow writing
any values Xen supports the 'permissive' setting, see xl.cfg(5) man page.

This change models Xen's permissive setting by adding a writeFiltering
attribute on the <source> element of a PCI hostdev. When writeFiltering
is set to 'no', the Xen permissive setting will be enabled and guests
will be able to write any values into the device's configuration space.
The permissive setting remains disabled in the absense of the
writeFiltering attribute, of if it is explicitly set to 'yes'.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Signed-off-by: Simon Gaiser <simon@invisiblethingslab.com>
Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
docs/formatdomain.rst
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libxl/libxl_conf.c
src/qemu/qemu_validate.c
tests/libxlxml2domconfigdata/moredevs-hvm.json
tests/libxlxml2domconfigdata/moredevs-hvm.xml