From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCHv2] KVM: prevent spurious exit to userspace during task switch emulation. Date: Thu, 15 Apr 2010 14:20:20 -0300 Message-ID: <20100415172020.GA18217@amt.cnet> References: <20100415100905.GA4550@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org, avi@redhat.com To: Gleb Natapov Return-path: Received: from mx1.redhat.com ([209.132.183.28]:51163 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755541Ab0DORXo (ORCPT ); Thu, 15 Apr 2010 13:23:44 -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 o3FHNhE2022011 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 15 Apr 2010 13:23:43 -0400 Content-Disposition: inline In-Reply-To: <20100415100905.GA4550@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, Apr 15, 2010 at 01:09:05PM +0300, Gleb Natapov wrote: > > If kvm_task_switch() fails code exits to userspace without specifying > exit reason, so the previous exit reason is reused by userspace. Fix > this by specifying exit reason correctly. > > --- > Changelog: > v1->v2: > - report emulation error to userspace instead of ignoring it silently. > > Should be applied after "KVM: fix emulator_task_switch() return value." > since it relies on new return value from kvm_task_switch(). > > Signed-off-by: Gleb Natapov Does not apply cleanly anymore, please regenerate against -next branch, sorry.