From 6b4805585ee5fd1eca7ab4285895d41d996aedd7 Mon Sep 17 00:00:00 2001 From: Robert Mustacchi Date: Thu, 4 Aug 2011 00:35:14 +0000 Subject: HVM-554 vm and vcpu kstats should contain a zonename field --- kvm.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'kvm.c') diff --git a/kvm.c b/kvm.c index 7459218..e4d5c24 100644 --- a/kvm.c +++ b/kvm.c @@ -703,6 +703,8 @@ kvm_create_vm(void) } kvmp->kvm_kstat->ks_data = &kvmp->kvm_stats; + kvmp->kvm_kstat->ks_data_size += + strlen(curproc->p_zone->zone_name) + 1; KVM_KSTAT_INIT(kvmp, kvmks_pid, "pid"); kvmp->kvm_stats.kvmks_pid.value.ui64 = kvmp->kvm_pid = curproc->p_pid; @@ -716,6 +718,8 @@ kvm_create_vm(void) KVM_KSTAT_INIT(kvmp, kvmks_remote_tlb_flush, "remote-tlb-flush"); KVM_KSTAT_INIT(kvmp, kvmks_lpages, "lpages"); KVM_KSTAT_INIT(kvmp, kvmks_mmu_unsync_page, "mmu-unsync-page"); + kstat_named_init(&(kvmp->kvm_stats.kvmks_zonename), "zonename", KSTAT_DATA_STRING); + kstat_named_setstr(&(kvmp->kvm_stats.kvmks_zonename), curproc->p_zone->zone_name); kstat_install(kvmp->kvm_kstat); -- cgit v1.2.3