aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/shadow.h
diff options
context:
space:
mode:
authorEmmanuel Ackaouy <ack@xensource.com>2007-01-05 17:34:41 +0000
committerEmmanuel Ackaouy <ack@xensource.com>2007-01-05 17:34:41 +0000
commitf4c856df98b0797eab75e9c73f925a0aa101a06d (patch)
tree20408e5b40036fd52679ea4063e893c6a86d927b /xen/include/asm-x86/shadow.h
parent8c7577f2c3bacb8b49205c6d4afb11d61be852db (diff)
downloadxen-f4c856df98b0797eab75e9c73f925a0aa101a06d.tar.gz
xen-f4c856df98b0797eab75e9c73f925a0aa101a06d.tar.bz2
xen-f4c856df98b0797eab75e9c73f925a0aa101a06d.zip
Preliminary, likely incomplete and/or wrong, adjustments to shadow code.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/include/asm-x86/shadow.h')
-rw-r--r--xen/include/asm-x86/shadow.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/xen/include/asm-x86/shadow.h b/xen/include/asm-x86/shadow.h
index 68ae3cb011..2afc0b0562 100644
--- a/xen/include/asm-x86/shadow.h
+++ b/xen/include/asm-x86/shadow.h
@@ -67,6 +67,14 @@
* It is also true for all vcpus of translated PV domains. */
#define shadow_vcpu_mode_translate(_v) ((_v)->arch.shadow.translate_enabled)
+/*
+ * 32on64 support
+ */
+#ifdef __x86_64__
+#define pv_32bit_guest(_v) (!is_hvm_vcpu(_v) && IS_COMPAT((_v)->domain))
+#else
+#define pv_32bit_guest(_v) (!is_hvm_vcpu(_v))
+#endif
/******************************************************************************
* With shadow pagetables, the different kinds of address start