From patchwork Tue Jan 19 12:50:24 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gleb Natapov X-Patchwork-Id: 73857 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0JCoVkM013234 for ; Tue, 19 Jan 2010 12:50:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751161Ab0ASMu2 (ORCPT ); Tue, 19 Jan 2010 07:50:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750898Ab0ASMu2 (ORCPT ); Tue, 19 Jan 2010 07:50:28 -0500 Received: from mx1.redhat.com ([209.132.183.28]:16482 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750733Ab0ASMu1 (ORCPT ); Tue, 19 Jan 2010 07:50:27 -0500 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0JCoQ1A010742 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 19 Jan 2010 07:50:26 -0500 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o0JCoPRa015079; Tue, 19 Jan 2010 07:50:25 -0500 Received: by dhcp-1-237.tlv.redhat.com (Postfix, from userid 13519) id ACDC818D450; Tue, 19 Jan 2010 14:50:24 +0200 (IST) Date: Tue, 19 Jan 2010 14:50:24 +0200 From: Gleb Natapov To: Jan Kiszka Cc: avi@redhat.com, mtosatti@redhat.com, kvm@vger.kernel.org Subject: Re: [PATCHv3 0/4] Add support for some HYPER-V PV features Message-ID: <20100119125024.GN14345@redhat.com> References: <1263736284-18780-1-git-send-email-gleb@redhat.com> <4B559A84.1040509@siemens.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4B559A84.1040509@siemens.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 47c6e23..147bda7 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -3807,11 +3807,11 @@ int kvm_hv_hypercall(struct kvm_vcpu *vcpu) longmode = is_long_mode(vcpu) && cs_l == 1; if (!longmode) { - param = (kvm_register_read(vcpu, VCPU_REGS_RDX) << 32) | + param = ((u64)kvm_register_read(vcpu, VCPU_REGS_RDX) << 32) | (kvm_register_read(vcpu, VCPU_REGS_RAX) & 0xffffff); - ingpa = (kvm_register_read(vcpu, VCPU_REGS_RBX) << 32) | + ingpa = ((u64)kvm_register_read(vcpu, VCPU_REGS_RBX) << 32) | (kvm_register_read(vcpu, VCPU_REGS_RCX) & 0xffffff); - outgpa = (kvm_register_read(vcpu, VCPU_REGS_RDI) << 32) | + outgpa = ((u64)kvm_register_read(vcpu, VCPU_REGS_RDI) << 32) | (kvm_register_read(vcpu, VCPU_REGS_RSI) & 0xffffff); } #ifdef CONFIG_X86_64