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@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
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;