From patchwork Sun May 19 05:47:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sanjay Lal X-Patchwork-Id: 2589911 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 04FE9DF24C for ; Sun, 19 May 2013 05:49:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753185Ab3ESFtF (ORCPT ); Sun, 19 May 2013 01:49:05 -0400 Received: from kymasys.com ([64.62.140.43]:55481 "HELO kymasys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753164Ab3ESFtE (ORCPT ); Sun, 19 May 2013 01:49:04 -0400 Received: from agni.kymasys.com ([75.40.23.192]) by kymasys.com for ; Sat, 18 May 2013 22:49:03 -0700 Received: by agni.kymasys.com (Postfix, from userid 500) id 4907863005D; Sat, 18 May 2013 22:47:43 -0700 (PDT) From: Sanjay Lal To: kvm@vger.kernel.org Cc: linux-mips@linux-mips.org, Ralf Baechle , Gleb Natapov , Marcelo Tosatti , Sanjay Lal Subject: [PATCH 12/18] KVM/MIPS32-VZ: VM Exit Stats, add VZ exit reasons. Date: Sat, 18 May 2013 22:47:34 -0700 Message-Id: <1368942460-15577-13-git-send-email-sanjayl@kymasys.com> X-Mailer: git-send-email 1.7.11.3 In-Reply-To: <1368942460-15577-1-git-send-email-sanjayl@kymasys.com> References: <1368942460-15577-1-git-send-email-sanjayl@kymasys.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org - Additional VZ related exit reasons, used in the trace logs. Signed-off-by: Sanjay Lal --- 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 @@ -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] = {