[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH RFC 1/5] iommu: need_iommu set early



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.ufimtseva@xxxxxxxxxx>

Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>

> ---
>  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@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.