From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH] KVM: SVM: Keep intercepting task switching with NPT enabled Date: Thu, 27 Oct 2011 10:40:58 -0200 Message-ID: <20111027124058.GE29646@amt.cnet> References: <4E9DA7EF.30804@siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Avi Kivity , kvm , "Roedel, Joerg" , Gleb Natapov To: Jan Kiszka Return-path: Received: from mx1.redhat.com ([209.132.183.28]:22848 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754521Ab1J0MnI (ORCPT ); Thu, 27 Oct 2011 08:43:08 -0400 Content-Disposition: inline In-Reply-To: <4E9DA7EF.30804@siemens.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Oct 18, 2011 at 06:23:11PM +0200, Jan Kiszka wrote: > AMD processors apparently have a bug in the hardware task switching > support when NPT is enabled. If the task switch triggers a NPF, we can > get wrong EXITINTINFO along with that fault. On resume, spurious > exceptions may then be injected into the guest. > > We were able to reproduce this bug when our guest triggered #SS and the > handler were supposed to run over a separate task with not yet touched > stack pages. > > Work around the issue by continuing to emulate task switches even in > NPT mode. > > Signed-off-by: Jan Kiszka > --- > arch/x86/kvm/svm.c | 1 - > 1 files changed, 0 insertions(+), 1 deletions(-) Applied, thanks.