From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manish Regmi Subject: [PATCH 0/1 V2] Add new VM Exit codes Date: Mon, 19 Apr 2010 20:53:34 -0500 Message-ID: <4BCD091E.4090106@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: avi@redhat.com To: kvm@vger.kernel.org Return-path: Received: from mail-yw0-f194.google.com ([209.85.211.194]:63179 "EHLO mail-yw0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752278Ab0DTBxk (ORCPT ); Mon, 19 Apr 2010 21:53:40 -0400 Received: by ywh32 with SMTP id 32so3090472ywh.33 for ; Mon, 19 Apr 2010 18:53:39 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: hi, this patch, * adds two more EXIT_REASONS 33 and 34 in vmx.h * also adds them to exit reason strings. Signed-off-by: Manish Regmi -------- diff --git a/arch/x86/include/asm/vmx.h b/arch/x86/include/asm/vmx.h index fb9a080..9bf84db 100644 --- a/arch/x86/include/asm/vmx.h +++ b/arch/x86/include/asm/vmx.h @@ -251,6 +251,8 @@ enum vmcs_field { #define EXIT_REASON_IO_INSTRUCTION 30 #define EXIT_REASON_MSR_READ 31 #define EXIT_REASON_MSR_WRITE 32 +#define EXIT_REASON_INVALID_GUEST_STATE 33 +#define EXIT_REASON_MSR_LOADING 34 #define EXIT_REASON_MWAIT_INSTRUCTION 36 #define EXIT_REASON_MONITOR_INSTRUCTION 39 #define EXIT_REASON_PAUSE_INSTRUCTION 40 diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 0b896ac..a5c53ad 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -4061,6 +4061,8 @@ static const struct trace_print_flags vmx_exit_reasons_str[] = { _ER(IO_INSTRUCTION), _ER(MSR_READ), _ER(MSR_WRITE), + _ER(INVALID_GUEST_STATE), + _ER(MSR_LOADING), _ER(MWAIT_INSTRUCTION), _ER(MONITOR_INSTRUCTION), _ER(PAUSE_INSTRUCTION), regards, Manish Regmi