From patchwork Tue Apr 20 01:53:34 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manish Regmi X-Patchwork-Id: 93593 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o3K1rpIV027471 for ; Tue, 20 Apr 2010 01:53:51 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752746Ab0DTBxl (ORCPT ); Mon, 19 Apr 2010 21:53:41 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:content-type :content-transfer-encoding; bh=H+DD291SI4yF/GkVie0TjArfgj+EE3qyNc+Xz26zTGk=; b=w9b/2+oNlNF01BfUZbMphjQImV8UxnUKtDm6fmRARhfsKkZIbtLd+7t8qE/PoEr8TV DKwdncUTeYcMSr/3PWp+QQZKgqqpynicH2sIqLeRCsQdmBAtouX9C1z1AVfbH6YRlkb7 Nw/KW22wI54kGeN9Wr9I3Huz77lOSs9eyJp2E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; b=AUjJA/ql5hcFU0Tn3Rx6XxAP/JiUQQO3Q01RSq5EbLgwT0atgR6X+AjFi/ZLZYhKOH x/bC6cKf7vGTZcJsJunmjf79fF6I53IjVWijKtoKONPg/RI5aYfLLtfWODEWCdZ+rSp5 tqA31KB4odbbvHLfVs2auIlh0i0n8EPIQHWSQ= Received: by 10.101.208.9 with SMTP id k9mr14305008anq.69.1271728417170; Mon, 19 Apr 2010 18:53:37 -0700 (PDT) Received: from [192.168.1.100] (ip68-97-41-155.ok.ok.cox.net [68.97.41.155]) by mx.google.com with ESMTPS id 6sm1770916ywd.8.2010.04.19.18.53.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 19 Apr 2010 18:53:36 -0700 (PDT) Message-ID: <4BCD091E.4090106@gmail.com> Date: Mon, 19 Apr 2010 20:53:34 -0500 From: Manish Regmi User-Agent: Thunderbird 2.0.0.24 (X11/20100411) MIME-Version: 1.0 To: kvm@vger.kernel.org CC: avi@redhat.com Subject: [PATCH 0/1 V2] Add new VM Exit codes Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 20 Apr 2010 01:53:51 +0000 (UTC) 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),