aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/shadow.h
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-08-03 15:22:25 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-08-03 15:22:25 +0100
commit931e1a3a502ec16cd8c7ba154f13620c534e96dd (patch)
tree11959aef0b01c2dbc61c993051d7e84b838b3ee1 /xen/include/asm-x86/shadow.h
parent72879391fb78a641b946e8b9e4edcb67e0945278 (diff)
downloadxen-931e1a3a502ec16cd8c7ba154f13620c534e96dd.tar.gz
xen-931e1a3a502ec16cd8c7ba154f13620c534e96dd.tar.bz2
xen-931e1a3a502ec16cd8c7ba154f13620c534e96dd.zip
[HVM] Make copy_{to,from}_guest work for HVM domains.
Signed-off-by: Steven Smith <ssmith@xensource.com>
Diffstat (limited to 'xen/include/asm-x86/shadow.h')
-rw-r--r--xen/include/asm-x86/shadow.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/xen/include/asm-x86/shadow.h b/xen/include/asm-x86/shadow.h
index 397d4beb6b..f7d76af88e 100644
--- a/xen/include/asm-x86/shadow.h
+++ b/xen/include/asm-x86/shadow.h
@@ -1734,6 +1734,13 @@ static inline unsigned long gva_to_gpa(unsigned long gva)
return l1e_get_paddr(gpte) + (gva & ~PAGE_MASK);
}
#endif
+
+static inline unsigned long gva_to_mfn(unsigned long gva)
+{
+ unsigned long gpa = gva_to_gpa(gva);
+ return get_mfn_from_gpfn(gpa >> PAGE_SHIFT);
+}
+
/************************************************************************/
extern void __update_pagetables(struct vcpu *v);