[PATCH 0/5] Xen: Add support for xl.cfg passthrough setting

Jim Fehlig jfehlig at suse.com
Fri Apr 17 22:29:34 UTC 2020


Hi All,

Note: This series is based on Marek's patches adding support for e820_host

https://www.redhat.com/archives/libvir-list/2020-April/msg00633.html

which I've ACK'ed, but am waiting to commit until this related setting is
hashed out.

This series adds support for Xen's xl.cfg(5) 'passthrough' setting.
Starting with xen 4.13 this setting must be enabled in order to assign
PCI passthrough devices to a guest. libxl will enable it automatically
if the guest config has PCI devices at creation time, but otherwise
'passthrough' must be enabled to hotplug PCI devices.

The passthrough setting is mapped to a xen hypervisor feature of the
same name. Xen hypervisor features were recently added by the series
mentioned above.

Jim Fehlig (5):
  conf: add xen hypervisor feature 'passthrough'
  libxl: make use of passthrough hypervisor feature
  libxl: refactor cpu and hypervisor feature parser/formatter
  xenconfig: Add support for 'passthrough' hypervisor feature
  tests: check conversion of passthrough hypervisor feature

 docs/formatdomain.html.in                     |   7 ++
 docs/schemas/domaincommon.rng                 |  12 ++
 src/conf/domain_conf.c                        | 115 ++++++++++++++----
 src/conf/domain_conf.h                        |  11 ++
 src/libvirt_private.syms                      |   2 +
 src/libxl/libxl_conf.c                        |  21 ++++
 src/libxl/xen_common.c                        |  86 ++++++++++---
 .../test-fullvirt-hypervisor-features.cfg     |  26 ++++
 .../test-fullvirt-hypervisor-features.xml     |  50 ++++++++
 .../xlconfigdata/test-paravirt-e820_host.cfg  |   1 +
 .../xlconfigdata/test-paravirt-e820_host.xml  |   1 +
 tests/xlconfigtest.c                          |   3 +
 12 files changed, 290 insertions(+), 45 deletions(-)
 create mode 100644 tests/xlconfigdata/test-fullvirt-hypervisor-features.cfg
 create mode 100644 tests/xlconfigdata/test-fullvirt-hypervisor-features.xml

-- 
2.26.0





More information about the libvir-list mailing list