aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/svm.h
diff options
context:
space:
mode:
authorGravatar Uros Bizjak <ubizjak@gmail.com> 2018-11-26 17:00:08 +0100
committerGravatar Paolo Bonzini <pbonzini@redhat.com> 2018-12-21 11:28:44 +0100
commitac5ffda2447f033ddc44a87882dfcfed38d944dc (patch)
treeee0595e3ea806f669e50b4c0ebc75b798ca3959d /arch/x86/include/asm/svm.h
parentKVM/MMU: Flush tlb directly in the kvm_zap_gfn_range() (diff)
downloadlinux-ac5ffda2447f033ddc44a87882dfcfed38d944dc.tar.gz
linux-ac5ffda2447f033ddc44a87882dfcfed38d944dc.tar.bz2
linux-ac5ffda2447f033ddc44a87882dfcfed38d944dc.zip
KVM/x86: Use SVM assembly instruction mnemonics instead of .byte streams
Recently the minimum required version of binutils was changed to 2.20, which supports all SVM instruction mnemonics. The patch removes all .byte #defines and uses real instruction mnemonics instead. Signed-off-by: Uros Bizjak <ubizjak@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/svm.h')
-rw-r--r--arch/x86/include/asm/svm.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/x86/include/asm/svm.h b/arch/x86/include/asm/svm.h
index 93b462e48067..dec9c1e84c78 100644
--- a/arch/x86/include/asm/svm.h
+++ b/arch/x86/include/asm/svm.h
@@ -290,11 +290,4 @@ struct __attribute__ ((__packed__)) vmcb {
#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"
-#define SVM_VMSAVE ".byte 0x0f, 0x01, 0xdb"
-#define SVM_CLGI ".byte 0x0f, 0x01, 0xdd"
-#define SVM_STGI ".byte 0x0f, 0x01, 0xdc"
-#define SVM_INVLPGA ".byte 0x0f, 0x01, 0xdf"
-
#endif