From patchwork Wed Apr 14 17:22:41 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gleb Natapov X-Patchwork-Id: 92450 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 o3EHMlGu011405 for ; Wed, 14 Apr 2010 17:22:47 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756478Ab0DNRWp (ORCPT ); Wed, 14 Apr 2010 13:22:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:16990 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756459Ab0DNRWo (ORCPT ); Wed, 14 Apr 2010 13:22:44 -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 o3EHMhWS023438 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 14 Apr 2010 13:22:43 -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 o3EHMga4016859; Wed, 14 Apr 2010 13:22:42 -0400 Received: by dhcp-1-237.tlv.redhat.com (Postfix, from userid 13519) id 31E2418D450; Wed, 14 Apr 2010 20:22:41 +0300 (IDT) Date: Wed, 14 Apr 2010 20:22:41 +0300 From: Gleb Natapov To: Jan Kiszka Cc: Avi Kivity , Marcelo Tosatti , kvm Subject: Re: [PATCH] kvm test: Add 32-bit task switch micro-test Message-ID: <20100414172241.GE18132@redhat.com> References: <4BC5CD5E.6000608@siemens.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4BC5CD5E.6000608@siemens.com> 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]); Wed, 14 Apr 2010 17:22:47 +0000 (UTC) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index bffd049..d080840 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -4740,7 +4740,7 @@ int kvm_task_switch(struct kvm_vcpu *vcpu, u16 tss_selector, int reason) if (ret == X86EMUL_CONTINUE) kvm_x86_ops->set_rflags(vcpu, vcpu->arch.emulate_ctxt.eflags); - return (ret != X86EMUL_CONTINUE); + return (ret == X86EMUL_CONTINUE); } EXPORT_SYMBOL_GPL(kvm_task_switch);