summaryrefslogtreecommitdiff
path: root/kvm_x86.c
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2011-09-06 22:11:38 +0000
committerRobert Mustacchi <rm@joyent.com>2011-09-06 22:11:38 +0000
commit01aa9c3e9047412b30f47aa9864b5c48d4869f28 (patch)
treefa0d89469312ace57bedd6ad0e6cb37b733a2163 /kvm_x86.c
parentc02ec961594ab5807e49cd85f74c5f767b8da39b (diff)
downloadillumos-kvm-01aa9c3e9047412b30f47aa9864b5c48d4869f28.tar.gz
HVM-638 Non-GZ can see kstats
Diffstat (limited to 'kvm_x86.c')
-rw-r--r--kvm_x86.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvm_x86.c b/kvm_x86.c
index c9649dc..8f6d2bc 100644
--- a/kvm_x86.c
+++ b/kvm_x86.c
@@ -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);
}