summaryrefslogtreecommitdiffstats
path: root/arch/ia64/kernel/paravirt_inst.h
diff options
context:
space:
mode:
authorIsaku Yamahata2008-10-17 04:18:13 +0200
committerTony Luck2008-10-17 19:12:54 +0200
commitf8d1f99f3958c46cdc983743d75d0b31b9accb80 (patch)
treeef91c20de242e67db557e831aa28f9e9597dabef /arch/ia64/kernel/paravirt_inst.h
parentia64/xen: a recipe for using xen/ia64 with pv_ops. (diff)
downloadkernel-qcow2-linux-f8d1f99f3958c46cdc983743d75d0b31b9accb80.tar.gz
kernel-qcow2-linux-f8d1f99f3958c46cdc983743d75d0b31b9accb80.tar.xz
kernel-qcow2-linux-f8d1f99f3958c46cdc983743d75d0b31b9accb80.zip
ia64/pv_ops: paravirtualized instruction checker.
This patch implements a checker to detect instructions which should be paravirtualized instead of direct writing raw instruction. This patch does rough check so that it doesn't fully cover all cases, but it can detects most cases of paravirtualization breakage of hand written assembly codes. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/kernel/paravirt_inst.h')
-rw-r--r--arch/ia64/kernel/paravirt_inst.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/ia64/kernel/paravirt_inst.h b/arch/ia64/kernel/paravirt_inst.h
index 5cad6fb2ed19..64d6d810c64b 100644
--- a/arch/ia64/kernel/paravirt_inst.h
+++ b/arch/ia64/kernel/paravirt_inst.h
@@ -20,7 +20,9 @@
*
*/
-#ifdef __IA64_ASM_PARAVIRTUALIZED_XEN
+#ifdef __IA64_ASM_PARAVIRTUALIZED_PVCHECK
+#include <asm/native/pvchk_inst.h>
+#elif defined(__IA64_ASM_PARAVIRTUALIZED_XEN)
#include <asm/xen/inst.h>
#include <asm/xen/minstate.h>
#else