]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commit
sysctl / libxl: report whether IOMMU/HAP page table sharing is supported
authorPaul Durrant <paul.durrant@citrix.com>
Tue, 17 Sep 2019 14:12:47 +0000 (16:12 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 17 Sep 2019 14:12:47 +0000 (16:12 +0200)
commitc0902a9a143a2aa7551941879fa58705da473ae6
tree00802087dad9e4524522cf8eafc8e8845f2c6a68
parent71e617a6b8f69849c70eda1b3c58f1ff6b244e5a
sysctl / libxl: report whether IOMMU/HAP page table sharing is supported

This patch defines a new bit reported in the hw_cap field of struct
xen_sysctl_physinfo to indicate whether the platform supports sharing of
HAP page tables (i.e. the P2M) with the IOMMU. This informs the toolstack
whether the domain needs extra memory to store discrete IOMMU page tables
or not.

NOTE: This patch makes sure iommu_hap_pt_shared is clear if HAP is not
      supported or the IOMMU is disabled, and defines it to false if
      !CONFIG_HVM.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Christian Lindig <christian.lindig@citrix.com>
Acked-by: Wei Liu <wl@xen.org>
Acked-by: Julien Grall <julien.grall@arm.com>
13 files changed:
tools/libxl/libxl.c
tools/libxl/libxl.h
tools/libxl/libxl_types.idl
tools/ocaml/libs/xc/xenctrl.ml
tools/ocaml/libs/xc/xenctrl.mli
tools/xl/xl_info.c
xen/arch/x86/hvm/hvm.c
xen/common/sysctl.c
xen/drivers/passthrough/amd/iommu_init.c
xen/drivers/passthrough/iommu.c
xen/drivers/passthrough/vtd/iommu.c
xen/include/public/sysctl.h
xen/include/xen/iommu.h