From 09d9b95f579888cba06da8e46afef49cdacdae0e Mon Sep 17 00:00:00 2001 From: Amit Shah Date: Thu, 21 Feb 2008 01:00:30 +0530 Subject: [PATCH] --- yaml --- r: 93807 b: refs/heads/master c: f11c3a8d84d7bf091bf963edd7104dd4ba6416c3 h: refs/heads/master i: 93805: 1405310d8f322292b8c058a201ec39488b6bb2a9 93803: b4c064cd9432d29be741bba59e92aa3702134b5d 93799: db756ec4a5ab15f9b6e038b1c7fdd748a54c763d 93791: 833ce460a4173b8105ea4d8f68271659ff117515 v: v3 --- [refs] | 2 +- trunk/arch/x86/kvm/x86.c | 2 ++ trunk/include/asm-x86/kvm_host.h | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index ad52d11476a3..907e55591068 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a5f61300c489e334ddf99781a13a7f8d4b580781 +refs/heads/master: f11c3a8d84d7bf091bf963edd7104dd4ba6416c3 diff --git a/trunk/arch/x86/kvm/x86.c b/trunk/arch/x86/kvm/x86.c index a063f449a12e..15bba5d37931 100644 --- a/trunk/arch/x86/kvm/x86.c +++ b/trunk/arch/x86/kvm/x86.c @@ -72,6 +72,7 @@ struct kvm_stats_debugfs_item debugfs_entries[] = { { "irq_window", VCPU_STAT(irq_window_exits) }, { "halt_exits", VCPU_STAT(halt_exits) }, { "halt_wakeup", VCPU_STAT(halt_wakeup) }, + { "hypercalls", VCPU_STAT(hypercalls) }, { "request_irq", VCPU_STAT(request_irq_exits) }, { "irq_exits", VCPU_STAT(irq_exits) }, { "host_state_reload", VCPU_STAT(host_state_reload) }, @@ -2405,6 +2406,7 @@ int kvm_emulate_hypercall(struct kvm_vcpu *vcpu) } vcpu->arch.regs[VCPU_REGS_RAX] = ret; kvm_x86_ops->decache_regs(vcpu); + ++vcpu->stat.hypercalls; return 0; } EXPORT_SYMBOL_GPL(kvm_emulate_hypercall); diff --git a/trunk/include/asm-x86/kvm_host.h b/trunk/include/asm-x86/kvm_host.h index 90c80fd830fc..935ffa4db9f4 100644 --- a/trunk/include/asm-x86/kvm_host.h +++ b/trunk/include/asm-x86/kvm_host.h @@ -328,6 +328,7 @@ struct kvm_vcpu_stat { u32 fpu_reload; u32 insn_emulation; u32 insn_emulation_fail; + u32 hypercalls; }; struct descriptor_table {