On Fri, Sep 13, 2019 at 10:47:38AM +0100, Paul Durrant wrote:
> 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.durr...@citrix.com>
> Acked-by: Christian Lindig <christian.lin...@citrix.com>
> ---
> Cc: Ian Jackson <ian.jack...@eu.citrix.com>
> Cc: Wei Liu <w...@xen.org>
> Cc: Anthony PERARD <anthony.per...@citrix.com>
> Cc: Andrew Cooper <andrew.coop...@citrix.com>
> Cc: George Dunlap <george.dun...@eu.citrix.com>
> Cc: Jan Beulich <jbeul...@suse.com>
> Cc: Julien Grall <julien.gr...@arm.com>
> Cc: Konrad Rzeszutek Wilk <konrad.w...@oracle.com>
> Cc: Stefano Stabellini <sstabell...@kernel.org>
> Cc: Tim Deegan <t...@xen.org>
> Cc: Christian Lindig <christian.lin...@citrix.com>
> Cc: David Scott <d...@recoil.org>
> Cc: "Roger Pau Monné" <roger....@citrix.com>
> Cc: Suravee Suthikulpanit <suravee.suthikulpa...@amd.com>
> Cc: Kevin Tian <kevin.t...@intel.com>
> 
> v10:
>  - Set flag in common code (which means clearing iommu_hap_pt_share if
>    HAP cannot be enabled or is configured out).
> 
> v9:
>  - New in v9
> ---
>  tools/libxl/libxl.c                      |  2 ++
>  tools/libxl/libxl.h                      |  7 +++++++
>  tools/libxl/libxl_types.idl              |  1 +

Acked-by: Wei Liu <w...@xen.org>

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to