summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2011-08-05 22:09:45 +0000
committerRobert Mustacchi <rm@joyent.com>2011-08-05 22:09:45 +0000
commit9e952eddf9817156c9eb424200bc47464ff2433a (patch)
treea76763b3d17d5ad57941e1f9f32ecccac8368492
parent6b4805585ee5fd1eca7ab4285895d41d996aedd7 (diff)
downloadillumos-kvm-9e952eddf9817156c9eb424200bc47464ff2433a.tar.gz
HVM-554 vm and vcpu kstats should contain a zonename field (fix lint)
-rw-r--r--kvm.c6
-rw-r--r--kvm_x86.c6
2 files changed, 8 insertions, 4 deletions
diff --git a/kvm.c b/kvm.c
index e4d5c24..37f413a 100644
--- a/kvm.c
+++ b/kvm.c
@@ -718,8 +718,10 @@ 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_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);
diff --git a/kvm_x86.c b/kvm_x86.c
index c656b96..21b3f6a 100644
--- a/kvm_x86.c
+++ b/kvm_x86.c
@@ -4715,8 +4715,10 @@ kvm_arch_vcpu_create(struct kvm *kvm, unsigned int id)
KVM_VCPU_KSTAT_INIT(vcpu, kvmvs_pf_guest, "pf-guest");
KVM_VCPU_KSTAT_INIT(vcpu, kvmvs_pf_fixed, "pf-fixed");
KVM_VCPU_KSTAT_INIT(vcpu, kvmvs_hypercalls, "hypercalls");
- kstat_named_init(&(vcpu->kvcpu_stats.kvmvs_zonename), "zonename", KSTAT_DATA_STRING);
- kstat_named_setstr(&(vcpu->kvcpu_stats.kvmvs_zonename), curproc->p_zone->zone_name);
+ kstat_named_init(&(vcpu->kvcpu_stats.kvmvs_zonename), "zonename",
+ KSTAT_DATA_STRING);
+ kstat_named_setstr(&(vcpu->kvcpu_stats.kvmvs_zonename),
+ curproc->p_zone->zone_name);
kstat_install(vcpu->kvcpu_kstat);