diff options
author | Robert Mustacchi <rm@joyent.com> | 2011-09-06 22:11:38 +0000 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2011-09-06 22:11:38 +0000 |
commit | 01aa9c3e9047412b30f47aa9864b5c48d4869f28 (patch) | |
tree | fa0d89469312ace57bedd6ad0e6cb37b733a2163 /kvm_x86.c | |
parent | c02ec961594ab5807e49cd85f74c5f767b8da39b (diff) | |
download | illumos-kvm-01aa9c3e9047412b30f47aa9864b5c48d4869f28.tar.gz |
HVM-638 Non-GZ can see kstats
Diffstat (limited to 'kvm_x86.c')
-rw-r--r-- | kvm_x86.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4585,9 +4585,9 @@ kvm_arch_vcpu_create(struct kvm *kvm, unsigned int id) (void) snprintf(buf, sizeof (buf), "vcpu-%d", kvm->kvmid); - if ((kstat = kstat_create("kvm", id, buf, "misc", KSTAT_TYPE_NAMED, + if ((kstat = kstat_create_zone("kvm", id, buf, "misc", KSTAT_TYPE_NAMED, sizeof (kvm_vcpu_stats_t) / sizeof (kstat_named_t), - KSTAT_FLAG_VIRTUAL)) == NULL) { + KSTAT_FLAG_VIRTUAL, GLOBAL_ZONEID)) == NULL) { return (NULL); } |