summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2018-10-11 19:40:43 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2018-10-17 00:30:07 +0200
commit5ebb272b2ea7e02911a03a893f8d922d49f9bb4a (patch)
tree8df28af18ad4a5753922e472cc0d754f127dc39c /arch
parentbf627a9288372d065f157ea445d11b900575193e (diff)
downloadlinux-stable-5ebb272b2ea7e02911a03a893f8d922d49f9bb4a.tar.gz
linux-stable-5ebb272b2ea7e02911a03a893f8d922d49f9bb4a.tar.bz2
linux-stable-5ebb272b2ea7e02911a03a893f8d922d49f9bb4a.zip
KVM/x86: Fix invvpid and invept register operand size in 64-bit mode
Register operand size of invvpid and invept instruction in 64-bit mode has always 64 bits. Adjust inline function argument type to reflect correct size. Signed-off-by: Uros Bizjak <ubizjak@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kvm/vmx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 6f44d3a63434..05a0e8f80f68 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -2070,7 +2070,7 @@ static int __find_msr_index(struct vcpu_vmx *vmx, u32 msr)
return -1;
}
-static inline void __invvpid(int ext, u16 vpid, gva_t gva)
+static inline void __invvpid(unsigned long ext, u16 vpid, gva_t gva)
{
struct {
u64 vpid : 16;
@@ -2085,7 +2085,7 @@ static inline void __invvpid(int ext, u16 vpid, gva_t gva)
BUG_ON(error);
}
-static inline void __invept(int ext, u64 eptp, gpa_t gpa)
+static inline void __invept(unsigned long ext, u64 eptp, gpa_t gpa)
{
struct {
u64 eptp, gpa;