diff options
author | Avi Kivity <avi@qumranet.com> | 2007-07-19 17:39:16 +0300 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-07-19 17:39:16 +0300 |
commit | cda52ca6151593800a557960e86d6037d2b515ae (patch) | |
tree | 9c847bc0a36ff85837739519eba07a87686c2d2e | |
parent | fd1cb2e2d17bfd394703d7f5482eb7c19771b986 (diff) |
kvm: external module: compatibility definitions for processor bits
-rw-r--r-- | kvm/kernel/external-module-compat.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/kvm/kernel/external-module-compat.h b/kvm/kernel/external-module-compat.h index 0f71b7406..7ecbcf129 100644 --- a/kvm/kernel/external-module-compat.h +++ b/kvm/kernel/external-module-compat.h @@ -11,6 +11,7 @@ #include <linux/version.h> #include "include/linux/kvm.h" #include <linux/cpu.h> +#include <asm/processor.h> /* * 2.6.16 does not have GFP_NOWAIT @@ -184,3 +185,62 @@ static inline int on_cpu(int cpu, void (*func) (void *info), void *info, return ret; } +#ifndef X86_CR0_PE +#define X86_CR0_PE 0x00000001 +#endif + +#ifndef X86_CR0_MP +#define X86_CR0_MP 0x00000002 +#endif + +#ifndef X86_CR0_EM +#define X86_CR0_EM 0x00000004 +#endif + +#ifndef X86_CR0_TS +#define X86_CR0_TS 0x00000008 +#endif + +#ifndef X86_CR0_ET +#define X86_CR0_ET 0x00000010 +#endif + +#ifndef X86_CR0_NE +#define X86_CR0_NE 0x00000020 +#endif + +#ifndef X86_CR0_WP +#define X86_CR0_WP 0x00010000 +#endif + +#ifndef X86_CR0_AM +#define X86_CR0_AM 0x00040000 +#endif + +#ifndef X86_CR0_NW +#define X86_CR0_NW 0x20000000 +#endif + +#ifndef X86_CR0_CD +#define X86_CR0_CD 0x40000000 +#endif + +#ifndef X86_CR0_PG +#define X86_CR0_PG 0x80000000 +#endif + +#ifndef X86_CR3_PWT +#define X86_CR3_PWT 0x00000008 +#endif + +#ifndef X86_CR3_PCD +#define X86_CR3_PCD 0x00000010 +#endif + +#ifndef X86_CR4_VMXE +#define X86_CR4_VMXE 0x00002000 +#endif + +#undef X86_CR8_TPR +#define X86_CR8_TPR 0x0f + |