From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: [PATCH 2.6.32.12] KVM: remove unused load_segment_descriptor_to_kvm_desct Date: Tue, 27 Apr 2010 11:14:14 -0300 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-Type: text/plain; charset=us-ascii Cc: Avi Kivity , Jan Kiszka , kvm To: Gleb Natapov , Greg KH , stable@kernel.org Return-path: 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 Content-Disposition: inline In-Reply-To: <20100427074609.GB10044@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Function is now unused. Signed-off-by: Marcelo Tosatti 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 = {