]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: add xen hypervisor feature 'passthrough'
authorJim Fehlig <jfehlig@suse.com>
Wed, 15 Apr 2020 22:34:54 +0000 (16:34 -0600)
committerJim Fehlig <jfehlig@suse.com>
Tue, 21 Apr 2020 15:18:58 +0000 (09:18 -0600)
commitfadbaa23757ff9dca329bdb8d3447c27599f6884
tree87937cc383d7507a65b2fab7b19a94e01c791d3e
parent34077c1b8b62bb61e76b908d0959216da0b3185f
conf: add xen hypervisor feature 'passthrough'

'passthrough' is Xen-Specific guest configuration option new to Xen 4.13
that enables IOMMU mappings for a guest and hence whether it supports PCI
passthrough. The default is disabled. See the xl.cfg(5) man page and
xen.git commit babde47a3fe for more details.

The default state of disabled prevents hotlugging PCI devices. However,
if the guest configuration contains a PCI passthrough device at time of
creation, libxl will automatically enable 'passthrough' and subsequent
hotplugging of PCI devices will also be possible. It is not possible to
unconditionally enable 'passthrough' since it would introduce a migration
incompatibility due to guest ABI change. Instead, introduce another Xen
hypervisor feature that can be used to enable guest PCI passthrough

  <features>
    <xen>
      <passthrough state='on'/>
    </xen>
  </features>

To allow finer control over how IOMMU maps to guest P2M table, the
passthrough element also supports a 'mode' attribute with values
restricted to snyc_pt and share_pt, similar to xl.cfg(5) 'passthrough'
setting .

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h