aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/kvm_para.h
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2020-06-23 20:34:39 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2020-07-08 16:21:49 -0400
commit4cb5b77eecb0ccb2fa66f33ac6936680bbc41552 (patch)
tree634818258eea189fd7237eefa1b3c44f5cc63f15 /arch/x86/include/asm/kvm_para.h
parentKVM: SVM: Rename svm_nested_virtualize_tpr() to nested_svm_virtualize_tpr() (diff)
downloadlinux-dev-4cb5b77eecb0ccb2fa66f33ac6936680bbc41552.tar.xz
linux-dev-4cb5b77eecb0ccb2fa66f33ac6936680bbc41552.zip
KVM: x86: Use VMCALL and VMMCALL mnemonics in kvm_para.h
Current minimum required version of binutils is 2.23, which supports VMCALL and VMMCALL instruction mnemonics. Replace the byte-wise specification of VMCALL and VMMCALL with these proper mnemonics. Signed-off-by: Uros Bizjak <ubizjak@gmail.com> CC: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20200623183439.5526-1-ubizjak@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_para.h')
-rw-r--r--arch/x86/include/asm/kvm_para.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/kvm_para.h b/arch/x86/include/asm/kvm_para.h
index ceb599c8cf79..338119852512 100644
--- a/arch/x86/include/asm/kvm_para.h
+++ b/arch/x86/include/asm/kvm_para.h
@@ -19,7 +19,7 @@ static inline bool kvm_check_and_clear_guest_paused(void)
#endif /* CONFIG_KVM_GUEST */
#define KVM_HYPERCALL \
- ALTERNATIVE(".byte 0x0f,0x01,0xc1", ".byte 0x0f,0x01,0xd9", X86_FEATURE_VMMCALL)
+ ALTERNATIVE("vmcall", "vmmcall", X86_FEATURE_VMMCALL)
/* For KVM hypercalls, a three-byte sequence of either the vmcall or the vmmcall
* instruction. The hypervisor may replace it with something else but only the