From patchwork Wed Sep 30 15:39:07 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 50718 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 n8UFdh0W023466 for ; Wed, 30 Sep 2009 15:39:43 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754778AbZI3PjR (ORCPT ); Wed, 30 Sep 2009 11:39:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754779AbZI3PjP (ORCPT ); Wed, 30 Sep 2009 11:39:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56838 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754773AbZI3PjO (ORCPT ); Wed, 30 Sep 2009 11:39:14 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8UFdIhJ012266 for ; Wed, 30 Sep 2009 11:39:18 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8UFdGZX016332; Wed, 30 Sep 2009 11:39:17 -0400 From: Juan Quintela To: kvm@vger.kernel.org Cc: Gleb Natapov Subject: [PATCH] KVM: Fix task switch back link handling (take 2) Date: Wed, 30 Sep 2009 17:39:07 +0200 Message-Id: <1254325147-22585-1-git-send-email-quintela@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 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 fedac9d..e5ed2cd 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -4196,7 +4196,6 @@ static void save_state_to_tss16(struct kvm_vcpu *vcpu, tss->ss = get_segment_selector(vcpu, VCPU_SREG_SS); tss->ds = get_segment_selector(vcpu, VCPU_SREG_DS); tss->ldt = get_segment_selector(vcpu, VCPU_SREG_LDTR); - tss->prev_task_link = get_segment_selector(vcpu, VCPU_SREG_TR); } static int load_state_from_tss16(struct kvm_vcpu *vcpu,