diff options
author | Avi Kivity <avi@redhat.com> | 2010-01-06 13:13:01 +0200 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-03-01 12:35:51 -0300 |
commit | dc77270f960a8b3cc39a6349a9fad58cc6053d53 (patch) | |
tree | f8377b95f49f27e77e94e959090b160e262d92ee /arch/x86 | |
parent | f9a48e6a18c210c4bf34769fa05ede250575c6a1 (diff) | |
download | kernel_samsung_tuna-dc77270f960a8b3cc39a6349a9fad58cc6053d53.zip kernel_samsung_tuna-dc77270f960a8b3cc39a6349a9fad58cc6053d53.tar.gz kernel_samsung_tuna-dc77270f960a8b3cc39a6349a9fad58cc6053d53.tar.bz2 |
KVM: SVM: Fix SVM_CR0_SELECTIVE_MASK
Instead of selecting TS and MP as the comments say, the macro included TS and
PE. Luckily the macro is unused now, but fix in order to save a few hours of
debugging from anyone who attempts to use it.
Acked-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/include/asm/svm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/svm.h b/arch/x86/include/asm/svm.h index 1fecb7e..38638cd 100644 --- a/arch/x86/include/asm/svm.h +++ b/arch/x86/include/asm/svm.h @@ -313,7 +313,7 @@ struct __attribute__ ((__packed__)) vmcb { #define SVM_EXIT_ERR -1 -#define SVM_CR0_SELECTIVE_MASK (1 << 3 | 1) /* TS and MP */ +#define SVM_CR0_SELECTIVE_MASK (X86_CR0_TS | X86_CR0_MP) #define SVM_VMLOAD ".byte 0x0f, 0x01, 0xda" #define SVM_VMRUN ".byte 0x0f, 0x01, 0xd8" |