All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC 1/5] iommu: need_iommu set early
@ 2015-02-13 18:51 Elena Ufimtseva
  2015-02-13 21:48 ` Andrew Cooper
  2015-02-17 12:46 ` Jan Beulich
  0 siblings, 2 replies; 4+ messages in thread
From: Elena Ufimtseva @ 2015-02-13 18:51 UTC (permalink / raw)
  To: xen-devel
  Cc: kevin.tian, tim, jbeulich, yang.z.zhang, boris.ostrovsky, roger.pau

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@oracle.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);
 
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-02-17 19:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-13 18:51 [PATCH RFC 1/5] iommu: need_iommu set early Elena Ufimtseva
2015-02-13 21:48 ` Andrew Cooper
2015-02-17 12:46 ` Jan Beulich
2015-02-17 19:48   ` Elena Ufimtseva

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.