diff options
author | Robert Mustacchi <rm@joyent.com> | 2011-08-05 22:09:45 +0000 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2011-08-05 22:09:45 +0000 |
commit | 9e952eddf9817156c9eb424200bc47464ff2433a (patch) | |
tree | a76763b3d17d5ad57941e1f9f32ecccac8368492 | |
parent | 6b4805585ee5fd1eca7ab4285895d41d996aedd7 (diff) | |
download | illumos-kvm-9e952eddf9817156c9eb424200bc47464ff2433a.tar.gz |
HVM-554 vm and vcpu kstats should contain a zonename field (fix lint)
-rw-r--r-- | kvm.c | 6 | ||||
-rw-r--r-- | kvm_x86.c | 6 |
2 files changed, 8 insertions, 4 deletions
@@ -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); @@ -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); |