From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH v2 2/2] KVM: x86: Push potential exception error code on task switches Date: Thu, 15 Apr 2010 13:44:58 -0300 Message-ID: <20100415164458.GA16818@amt.cnet> References: <4BC5C84D.9040701@siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Avi Kivity , kvm , Gleb Natapov To: Jan Kiszka Return-path: Received: from mx1.redhat.com ([209.132.183.28]:19825 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755758Ab0DORXq (ORCPT ); Thu, 15 Apr 2010 13:23:46 -0400 Content-Disposition: inline In-Reply-To: <4BC5C84D.9040701@siemens.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Apr 14, 2010 at 03:51:09PM +0200, Jan Kiszka wrote: > When a fault triggers a task switch, the error code, if existent, has to > be pushed on the new task's stack. Implement the missing bits. > > Signed-off-by: Jan Kiszka > --- > > Changes in v2: > - push writeback into emulator_task_switch > - refactored over "Terminate early if task_switch_16/32 failed" > > arch/x86/include/asm/kvm_emulate.h | 3 ++- > arch/x86/include/asm/kvm_host.h | 3 ++- > arch/x86/include/asm/svm.h | 1 + > arch/x86/kvm/emulate.c | 22 ++++++++++++++++++---- > arch/x86/kvm/svm.c | 11 ++++++++++- > arch/x86/kvm/vmx.c | 12 +++++++++++- > arch/x86/kvm/x86.c | 6 ++++-- > 7 files changed, 48 insertions(+), 10 deletions(-) Applied, thanks.