From patchwork Tue Oct 20 10:02:00 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Lalancette X-Patchwork-Id: 54917 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 n9KA2DGn012991 for ; Tue, 20 Oct 2009 10:02:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750934AbZJTKB7 (ORCPT ); Tue, 20 Oct 2009 06:01:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751383AbZJTKB7 (ORCPT ); Tue, 20 Oct 2009 06:01:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:28763 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750874AbZJTKB6 (ORCPT ); Tue, 20 Oct 2009 06:01:58 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9KA22FM009089 for ; Tue, 20 Oct 2009 06:02:03 -0400 Received: from localhost.localdomain (vpn-12-49.rdu.redhat.com [10.11.12.49]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9KA215I001611; Tue, 20 Oct 2009 06:02:02 -0400 Message-ID: <4ADD8A98.4010706@redhat.com> Date: Tue, 20 Oct 2009 12:02:00 +0200 From: Chris Lalancette User-Agent: Thunderbird 2.0.0.23 (X11/20090825) MIME-Version: 1.0 To: Avi Kivity CC: kvm@vger.kernel.org, Paolo Bonzini Subject: Re: [PATCH] Fix up vmx_set_segment for booting older guests. References: <1256025040-4941-1-git-send-email-clalance@redhat.com> <4ADD7081.8030409@redhat.com> In-Reply-To: <4ADD7081.8030409@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 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 a93ba29..b58bda2 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -3997,7 +3997,7 @@ static void kvm_set_segment(struct kvm_vcpu *vcpu, static void seg_desct_to_kvm_desct(struct desc_struct *seg_desc, u16 selector, struct kvm_segment *kvm_desct) { - kvm_desct->base = get_desc_base(seg_desc); + kvm_desct->base = (unsigned)get_desc_base(seg_desc); kvm_desct->limit = get_desc_limit(seg_desc); if (seg_desc->g) { kvm_desct->limit <<= 12;