linux-mips
[Top] [All Lists]

[PATCH 12/18] KVM/MIPS32-VZ: VM Exit Stats, add VZ exit reasons.

To: kvm@vger.kernel.org
Subject: [PATCH 12/18] KVM/MIPS32-VZ: VM Exit Stats, add VZ exit reasons.
From: Sanjay Lal <sanjayl@kymasys.com>
Date: Sat, 18 May 2013 22:47:34 -0700
Cc: linux-mips@linux-mips.org, Ralf Baechle <ralf@linux-mips.org>, Gleb Natapov <gleb@redhat.com>, Marcelo Tosatti <mtosatti@redhat.com>, Sanjay Lal <sanjayl@kymasys.com>
In-reply-to: <1368942460-15577-1-git-send-email-sanjayl@kymasys.com>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <n> <1368942460-15577-1-git-send-email-sanjayl@kymasys.com>
Sender: linux-mips-bounce@linux-mips.org
- Additional VZ related exit reasons, used in the trace logs.

Signed-off-by: Sanjay Lal <sanjayl@kymasys.com>
---
 arch/mips/kvm/kvm_mips_stats.c | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/arch/mips/kvm/kvm_mips_stats.c b/arch/mips/kvm/kvm_mips_stats.c
index 075904b..c0d0c0f 100644
--- a/arch/mips/kvm/kvm_mips_stats.c
+++ b/arch/mips/kvm/kvm_mips_stats.c
@@ -3,7 +3,7 @@
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 *
-* KVM/MIPS: COP0 access histogram
+* KVM/MIPS: VM Exit stats, COP0 access histogram
 *
 * Copyright (C) 2012  MIPS Technologies, Inc.  All rights reserved.
 * Authors: Sanjay Lal <sanjayl@kymasys.com>
@@ -26,6 +26,21 @@ char *kvm_mips_exit_types_str[MAX_KVM_MIPS_EXIT_TYPES] = {
        "Reserved Inst",
        "Break Inst",
        "D-Cache Flushes",
+#ifdef CONFIG_KVM_MIPS_VZ
+       "Hypervisor GPSI",
+       "Hypervisor GPSI [CP0]",
+       "Hypervisor GPSI [CACHE]",
+       "Hypervisor GSFC",
+       "Hypervisor GSFC [STATUS]",
+       "Hypervisor GSFC [CAUSE]",
+       "Hypervisor GSFC [INTCTL]",
+       "Hypervisor HC",
+       "Hypervisor GRR",
+       "Hypervisor GVA",
+       "Hypervisor GHFC",
+       "Hypervisor GPA",
+       "Hypervisor RESV",
+#endif
 };
 
 char *kvm_cop0_str[N_MIPS_COPROC_REGS] = {
-- 
1.7.11.3


<Prev in Thread] Current Thread [Next in Thread>