All of lore.kernel.org
 help / color / mirror / Atom feed
From: Elena Ufimtseva <elena.ufimtseva@oracle.com>
To: xen-devel@lists.xen.org
Cc: kevin.tian@intel.com, tim@xen.org, jbeulich@suse.com,
	yang.z.zhang@intel.com, boris.ostrovsky@oracle.com,
	roger.pau@citrix.com
Subject: [PATCH RFC 1/5] iommu: need_iommu set early
Date: Fri, 13 Feb 2015 13:51:08 -0500	[thread overview]
Message-ID: <20150213185105.GA12720@elena.ufimtseva> (raw)

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

             reply	other threads:[~2015-02-13 18:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-13 18:51 Elena Ufimtseva [this message]
2015-02-13 21:48 ` [PATCH RFC 1/5] iommu: need_iommu set early Andrew Cooper
2015-02-17 12:46 ` Jan Beulich
2015-02-17 19:48   ` Elena Ufimtseva

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150213185105.GA12720@elena.ufimtseva \
    --to=elena.ufimtseva@oracle.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=jbeulich@suse.com \
    --cc=kevin.tian@intel.com \
    --cc=roger.pau@citrix.com \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xen.org \
    --cc=yang.z.zhang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.