From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCHv2] KVM: inject #UD if instruction emulation fails and exit to userspace Date: Tue, 11 May 2010 13:47:32 -0300 Message-ID: <20100511164732.GB9712@amt.cnet> References: <20100510081656.GJ24787@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: avi@redhat.com, kvm@vger.kernel.org To: Gleb Natapov Return-path: Received: from mx1.redhat.com ([209.132.183.28]:35138 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751565Ab0EKTg5 (ORCPT ); Tue, 11 May 2010 15:36:57 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o4BJaumg007096 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 11 May 2010 15:36:57 -0400 Content-Disposition: inline In-Reply-To: <20100510081656.GJ24787@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Mon, May 10, 2010 at 11:16:56AM +0300, Gleb Natapov wrote: > Do not kill VM when instruction emulation fails. Inject #UD and report > failure to userspace instead. Userspace may choose to reenter guest if > vcpu is in userspace (cpl == 3) in which case guest OS will kill > offending process and continue running. > > Signed-off-by: Gleb Natapov > --- > > Changelog: > v1->v2: > - always inject #UD and report failure to userspace. Applied, thanks.