aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/mtrr.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-08-09 16:46:42 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-08-09 16:46:42 +0100
commit74aeab42a37ad74d65fc182b96d57251458f7ab4 (patch)
treeca3d5844ec4218c63e2310a67a1bc27164a09523 /xen/arch/x86/hvm/mtrr.c
parentc92aec02ad55858cd5767f37ee7a9069ba2f248b (diff)
downloadxen-74aeab42a37ad74d65fc182b96d57251458f7ab4.tar.gz
xen-74aeab42a37ad74d65fc182b96d57251458f7ab4.tar.bz2
xen-74aeab42a37ad74d65fc182b96d57251458f7ab4.zip
Nested Virtualization: p2m infrastructure
Change p2m infrastructure to operate on per-p2m instead of per-domain. This allows us to use multiple p2m tables per-domain. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> Acked-by: Tim Deegan <Tim.Deegan@citrix.com>
Diffstat (limited to 'xen/arch/x86/hvm/mtrr.c')
-rw-r--r--xen/arch/x86/hvm/mtrr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/hvm/mtrr.c b/xen/arch/x86/hvm/mtrr.c
index 97181fcf7b..3f558c862a 100644
--- a/xen/arch/x86/hvm/mtrr.c
+++ b/xen/arch/x86/hvm/mtrr.c
@@ -399,7 +399,7 @@ uint32_t get_pat_flags(struct vcpu *v,
{
struct domain *d = v->domain;
p2m_type_t p2mt;
- gfn_to_mfn(d, paddr_to_pfn(gpaddr), &p2mt);
+ gfn_to_mfn(p2m_get_hostp2m(d), paddr_to_pfn(gpaddr), &p2mt);
if (p2m_is_ram(p2mt))
gdprintk(XENLOG_WARNING,
"Conflict occurs for a given guest l1e flags:%x "