Skip to content

Commit

Permalink
KVM: SVM: Fix SVM_CR0_SELECTIVE_MASK
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Avi Kivity authored and Marcelo Tosatti committed Mar 1, 2010
1 parent f9a48e6 commit dc77270
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/include/asm/svm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit dc77270

Please sign in to comment.