From patchwork Tue Apr 27 14:14:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Tosatti X-Patchwork-Id: 95436 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o3REExjG010079 for ; Tue, 27 Apr 2010 14:14:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755918Ab0D0OO5 (ORCPT ); Tue, 27 Apr 2010 10:14:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29819 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755737Ab0D0OO4 (ORCPT ); Tue, 27 Apr 2010 10:14:56 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o3REEqh7027782 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 27 Apr 2010 10:14:52 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o3REEpoU004199; Tue, 27 Apr 2010 10:14:51 -0400 Received: from amt.cnet (vpn-8-171.rdu.redhat.com [10.11.8.171]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o3REEnpW026814; Tue, 27 Apr 2010 10:14:49 -0400 Received: from amt.cnet (amt.cnet [127.0.0.1]) by amt.cnet (Postfix) with ESMTP id 87CE866E1CC; Tue, 27 Apr 2010 11:14:18 -0300 (BRT) Received: (from marcelo@localhost) by amt.cnet (8.14.3/8.14.3/Submit) id o3REEFoO023187; Tue, 27 Apr 2010 11:14:15 -0300 Date: Tue, 27 Apr 2010 11:14:14 -0300 From: Marcelo Tosatti To: Gleb Natapov , Greg KH , stable@kernel.org Cc: Avi Kivity , Jan Kiszka , kvm Subject: [PATCH 2.6.32.12] KVM: remove unused load_segment_descriptor_to_kvm_desct Message-ID: <20100427141414.GA19920@amt.cnet> References: <4BD5D34E.4080503@web.de> <20100427061733.GA10044@redhat.com> <4BD69521.8080204@redhat.com> <20100427074609.GB10044@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20100427074609.GB10044@redhat.com> User-Agent: Mutt/1.5.20 (2009-08-17) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 27 Apr 2010 14:15:01 +0000 (UTC) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 389fc55..2782509 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -4155,18 +4155,6 @@ static u16 get_segment_selector(struct kvm_vcpu *vcpu, int seg) return kvm_seg.selector; } -static int load_segment_descriptor_to_kvm_desct(struct kvm_vcpu *vcpu, - u16 selector, - struct kvm_segment *kvm_seg) -{ - struct desc_struct seg_desc; - - if (load_guest_segment_descriptor(vcpu, selector, &seg_desc)) - return 1; - seg_desct_to_kvm_desct(&seg_desc, selector, kvm_seg); - return 0; -} - static int kvm_load_realmode_segment(struct kvm_vcpu *vcpu, u16 selector, int seg) { struct kvm_segment segvar = {