On 13/02/15 18:51, Elena Ufimtseva wrote:
> Set need_iommu for dom0 early so pvh specific functions
> in construct_dom0 can pass this check.
> See example in p2m-ept.c ept_set_entry.
>
> Signed-off-by: Elena Ufimtseva <elena.ufimts...@oracle.com>

Reviewed-by: Andrew Cooper <andrew.coop...@citrix.com>

> ---
>  xen/arch/x86/domain_build.c |    1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/xen/arch/x86/domain_build.c b/xen/arch/x86/domain_build.c
> index 4380b57..a7bc2a4 100644
> --- a/xen/arch/x86/domain_build.c
> +++ b/xen/arch/x86/domain_build.c
> @@ -1525,6 +1525,7 @@ int __init construct_dom0(
>  
>      if ( is_pvh_domain(d) )
>      {
> +        d->need_iommu = 1;
>          /* finally, fixup the page table, replacing mfns with pfns */
>          pvh_fixup_page_tables_for_hap(v, v_start, v_end);
>  


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to