From patchwork Sun Oct 25 15:42:02 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gleb Natapov X-Patchwork-Id: 55772 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9PFgGew015194 for ; Sun, 25 Oct 2009 15:42:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752835AbZJYPmF (ORCPT ); Sun, 25 Oct 2009 11:42:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752680AbZJYPmF (ORCPT ); Sun, 25 Oct 2009 11:42:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:9444 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752621AbZJYPmD (ORCPT ); Sun, 25 Oct 2009 11:42:03 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9PFg8gV014286 for ; Sun, 25 Oct 2009 11:42:08 -0400 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9PFg3Qj027918; Sun, 25 Oct 2009 11:42:08 -0400 Received: by dhcp-1-237.tlv.redhat.com (Postfix, from userid 13519) id E0D0B18D410; Sun, 25 Oct 2009 17:42:02 +0200 (IST) Date: Sun, 25 Oct 2009 17:42:02 +0200 From: Gleb Natapov To: avi@redhat.com, mtosatti@redhat.com Cc: kvm@vger.kernel.org Subject: [PATCH] get_tss_base_addr() should return gpa_t type. Message-ID: <20091025154202.GY29477@redhat.com> MIME-Version: 1.0 Content-Disposition: inline X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 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 11a6f2f..cbbda32 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -4057,7 +4057,7 @@ static int save_guest_segment_descriptor(struct kvm_vcpu *vcpu, u16 selector, return kvm_write_guest_virt(dtable.base + index*8, seg_desc, sizeof(*seg_desc), vcpu); } -static u32 get_tss_base_addr(struct kvm_vcpu *vcpu, +static gpa_t get_tss_base_addr(struct kvm_vcpu *vcpu, struct desc_struct *seg_desc) { u32 base_addr = get_desc_base(seg_desc);