From patchwork Tue Apr 20 02:22:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manish Regmi X-Patchwork-Id: 93597 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 o3K2MFDp001533 for ; Tue, 20 Apr 2010 02:22:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753127Ab0DTCWM (ORCPT ); Mon, 19 Apr 2010 22:22:12 -0400 Received: from mail-yx0-f171.google.com ([209.85.210.171]:47227 "EHLO mail-yx0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752392Ab0DTCWM (ORCPT ); Mon, 19 Apr 2010 22:22:12 -0400 Received: by yxe1 with SMTP id 1so3398113yxe.33 for ; Mon, 19 Apr 2010 19:22:11 -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=0w0LXbfd9yX3wBhyTcauLeaRLA9LFRNE0K0NQmELDMI=; b=C3wX9jAjPdKLgf1t1AlpIFEEC/NTX2FwUtQB6hBwgmfw5JwRHX6W+3kP+IoUGt5mna tr+DOBe69Ngi/PKxQE/g3bAUR5RZWgzvzzsBFNWDC6cYg/OOtGeaORgKu15dA7F7Y0PX 1EBT+iqHMNdRo/mt3Sse4k5BhtHkuOfoieIgY= 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=XATWYUf4XrSku6x1U92UV23eDoA+KZV7Mm6wbhY+exYS2XByQhRqAG/QjBYEA5shDT KTp0g8/qbM/uWIszyKmW+iiZWKS6WSajHb+9zhpfRs8yA3weIcHMEBXcHJtkz2cKUszW 02nNuJSlTnMVCtrEWWB4hCcTbp0v8/vOy9xzI= Received: by 10.150.128.10 with SMTP id a10mr6951575ybd.273.1271730131083; Mon, 19 Apr 2010 19:22:11 -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 9sm1768020ywf.35.2010.04.19.19.22.09 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 19 Apr 2010 19:22:10 -0700 (PDT) Message-ID: <4BCD0FD0.2040205@gmail.com> Date: Mon, 19 Apr 2010 21:22:08 -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 RESEND] 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 02:22:15 +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), _ER(PAUSE_INSTRUCTION),