From patchwork Tue Apr 27 16:35:26 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Tosatti X-Patchwork-Id: 95468 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 o3RHGPJk023045 for ; Tue, 27 Apr 2010 17:16:25 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755157Ab0D0RQU (ORCPT ); Tue, 27 Apr 2010 13:16:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:15340 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754682Ab0D0RQU (ORCPT ); Tue, 27 Apr 2010 13:16:20 -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 o3RHG3Ie015548 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 27 Apr 2010 13:16:17 -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 o3RGZfJA016678; Tue, 27 Apr 2010 12:35:41 -0400 Received: from amt.cnet (vpn-9-142.rdu.redhat.com [10.11.9.142]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o3RGZdJ0008662; Tue, 27 Apr 2010 12:35:40 -0400 Received: from amt.cnet (amt.cnet [127.0.0.1]) by amt.cnet (Postfix) with ESMTP id B0B9C66E1CE; Tue, 27 Apr 2010 13:35:29 -0300 (BRT) Received: (from marcelo@localhost) by amt.cnet (8.14.3/8.14.3/Submit) id o3RGZR43025773; Tue, 27 Apr 2010 13:35:27 -0300 Date: Tue, 27 Apr 2010 13:35:26 -0300 From: Marcelo Tosatti To: Greg KH Cc: Gleb Natapov , stable@kernel.org, Avi Kivity , Jan Kiszka , kvm Subject: [PATCH 2.6.32.12] KVM: remove unused load_segment_descriptor_to_kvm_desct Message-ID: <20100427163526.GA25766@amt.cnet> References: <4BD5D34E.4080503@web.de> <20100427061733.GA10044@redhat.com> <4BD69521.8080204@redhat.com> <20100427074609.GB10044@redhat.com> <20100427141414.GA19920@amt.cnet> <20100427144355.GA7062@suse.de> <20100427145220.GB22154@redhat.com> <20100427145641.GB7215@suse.de> <20100427161649.GG23249@amt.cnet> <20100427162206.GA8668@suse.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20100427162206.GA8668@suse.de> 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 17:16:25 +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 = {