diff options
-rw-r--r-- | arch/x86/kvm/x86.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 9f72a443455b..9b0758b4d550 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -3806,12 +3806,12 @@ int kvm_hv_hypercall(struct kvm_vcpu *vcpu) | |||
3806 | longmode = is_long_mode(vcpu) && cs_l == 1; | 3806 | longmode = is_long_mode(vcpu) && cs_l == 1; |
3807 | 3807 | ||
3808 | if (!longmode) { | 3808 | if (!longmode) { |
3809 | param = (kvm_register_read(vcpu, VCPU_REGS_RDX) << 32) | | 3809 | param = ((u64)kvm_register_read(vcpu, VCPU_REGS_RDX) << 32) | |
3810 | (kvm_register_read(vcpu, VCPU_REGS_RAX) & 0xffffff); | 3810 | (kvm_register_read(vcpu, VCPU_REGS_RAX) & 0xffffffff); |
3811 | ingpa = (kvm_register_read(vcpu, VCPU_REGS_RBX) << 32) | | 3811 | ingpa = ((u64)kvm_register_read(vcpu, VCPU_REGS_RBX) << 32) | |
3812 | (kvm_register_read(vcpu, VCPU_REGS_RCX) & 0xffffff); | 3812 | (kvm_register_read(vcpu, VCPU_REGS_RCX) & 0xffffffff); |
3813 | outgpa = (kvm_register_read(vcpu, VCPU_REGS_RDI) << 32) | | 3813 | outgpa = ((u64)kvm_register_read(vcpu, VCPU_REGS_RDI) << 32) | |
3814 | (kvm_register_read(vcpu, VCPU_REGS_RSI) & 0xffffff); | 3814 | (kvm_register_read(vcpu, VCPU_REGS_RSI) & 0xffffffff); |
3815 | } | 3815 | } |
3816 | #ifdef CONFIG_X86_64 | 3816 | #ifdef CONFIG_X86_64 |
3817 | else { | 3817 | else { |