From patchwork Sun Oct 25 15:45:07 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gleb Natapov X-Patchwork-Id: 55773 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 n9PFjFga015681 for ; Sun, 25 Oct 2009 15:45:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752680AbZJYPpG (ORCPT ); Sun, 25 Oct 2009 11:45:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752605AbZJYPpF (ORCPT ); Sun, 25 Oct 2009 11:45:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:27113 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751863AbZJYPpE (ORCPT ); Sun, 25 Oct 2009 11:45:04 -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 n9PFj8Pq027275 for ; Sun, 25 Oct 2009 11:45:09 -0400 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9PFj7aE009392; Sun, 25 Oct 2009 11:45:08 -0400 Received: by dhcp-1-237.tlv.redhat.com (Postfix, from userid 13519) id 4947218D410; Sun, 25 Oct 2009 17:45:07 +0200 (IST) Date: Sun, 25 Oct 2009 17:45:07 +0200 From: Gleb Natapov To: avi@redhat.com, mtosatti@redhat.com Cc: kvm@vger.kernel.org Subject: [PATCH] remove duplicated check. Message-ID: <20091025154507.GZ29477@redhat.com> MIME-Version: 1.0 Content-Disposition: inline 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 diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 11a6f2f..384fbeb 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -4375,11 +4375,6 @@ int kvm_task_switch(struct kvm_vcpu *vcpu, u16 tss_selector, int reason) if (reason != TASK_SWITCH_CALL && reason != TASK_SWITCH_GATE) old_tss_sel = 0xffff; - /* set back link to prev task only if NT bit is set in eflags - note that old_tss_sel is not used afetr this point */ - if (reason != TASK_SWITCH_CALL && reason != TASK_SWITCH_GATE) - old_tss_sel = 0xffff; - if (nseg_desc.type & 8) ret = kvm_task_switch_32(vcpu, tss_selector, old_tss_sel, old_tss_base, &nseg_desc);