From patchwork Fri May 7 22:41:22 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 97856 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 o47MgBRf017761 for ; Fri, 7 May 2010 22:42:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753921Ab0EGWmG (ORCPT ); Fri, 7 May 2010 18:42:06 -0400 Received: from kroah.org ([198.145.64.141]:60591 "EHLO coco.kroah.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753742Ab0EGWmF (ORCPT ); Fri, 7 May 2010 18:42:05 -0400 Received: from localhost (c-24-16-163-131.hsd1.wa.comcast.net [24.16.163.131]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by coco.kroah.org (Postfix) with ESMTPSA id 87F2D48A09; Fri, 7 May 2010 15:42:04 -0700 (PDT) Subject: patch kvm-remove-unused-load_segment_descriptor_to_kvm_desct.patch added to 2.6.32-stable tree To: mtosatti@redhat.com, avi@redhat.com, gleb@redhat.com, gregkh@suse.de, jan.kiszka@web.de, kvm@vger.kernel.org Cc: , From: Date: Fri, 07 May 2010 15:41:22 -0700 In-Reply-To: <20100427163526.GA25766@amt.cnet> Message-ID: <12732720823778@kroah.org> MIME-Version: 1.0 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]); Fri, 07 May 2010 22:42:18 +0000 (UTC) --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -4155,18 +4155,6 @@ static u16 get_segment_selector(struct k 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 = {