|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] x86/iommu: fix hwdom iommu requirements check
> -----Original Message-----
> From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
> Sent: 28 September 2019 09:27
> To: xen-devel@xxxxxxxxxxxxxxxxxxxx
> Cc: Roger Pau Monne <roger.pau@xxxxxxxxxx>; Jan Beulich <jbeulich@xxxxxxxx>;
> Paul Durrant
> <Paul.Durrant@xxxxxxxxxx>; Juergen Gross <jgross@xxxxxxxx>
> Subject: [PATCH] x86/iommu: fix hwdom iommu requirements check
>
> Both a shadow and a HAP hwdom require an iommu and must be run in
> strict mode. Change the HAP check into a hvm domain check.
>
> Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
Yes, I completely forgot that it is legitimate for a PVH dom0 to operate in
shadow mode.
Reviewed-by: Paul Durrant <paul.durrant@xxxxxxxxxx>
> ---
> xen/drivers/passthrough/iommu.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/xen/drivers/passthrough/iommu.c b/xen/drivers/passthrough/iommu.c
> index 8b550f909b..9ef5f376c5 100644
> --- a/xen/drivers/passthrough/iommu.c
> +++ b/xen/drivers/passthrough/iommu.c
> @@ -154,7 +154,7 @@ custom_param("dom0-iommu", parse_dom0_iommu_param);
>
> static void __hwdom_init check_hwdom_reqs(struct domain *d)
> {
> - if ( iommu_hwdom_none || !hap_enabled(d) )
> + if ( iommu_hwdom_none || !is_hvm_domain(d) )
> return;
>
> iommu_hwdom_passthrough = false;
> --
> 2.23.0
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |