aboutsummaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
Diffstat (limited to 'virt')
-rw-r--r--virt/kvm/kvm_main.c8
-rw-r--r--virt/kvm/kvm_trace.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 099845574901..d3cb4cc0a5aa 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -60,7 +60,7 @@ EXPORT_SYMBOL_GPL(kvm_vcpu_cache);
60 60
61static __read_mostly struct preempt_ops kvm_preempt_ops; 61static __read_mostly struct preempt_ops kvm_preempt_ops;
62 62
63struct dentry *debugfs_dir; 63struct dentry *kvm_debugfs_dir;
64 64
65static long kvm_vcpu_ioctl(struct file *file, unsigned int ioctl, 65static long kvm_vcpu_ioctl(struct file *file, unsigned int ioctl,
66 unsigned long arg); 66 unsigned long arg);
@@ -1392,9 +1392,9 @@ static void kvm_init_debug(void)
1392{ 1392{
1393 struct kvm_stats_debugfs_item *p; 1393 struct kvm_stats_debugfs_item *p;
1394 1394
1395 debugfs_dir = debugfs_create_dir("kvm", NULL); 1395 kvm_debugfs_dir = debugfs_create_dir("kvm", NULL);
1396 for (p = debugfs_entries; p->name; ++p) 1396 for (p = debugfs_entries; p->name; ++p)
1397 p->dentry = debugfs_create_file(p->name, 0444, debugfs_dir, 1397 p->dentry = debugfs_create_file(p->name, 0444, kvm_debugfs_dir,
1398 (void *)(long)p->offset, 1398 (void *)(long)p->offset,
1399 stat_fops[p->kind]); 1399 stat_fops[p->kind]);
1400} 1400}
@@ -1405,7 +1405,7 @@ static void kvm_exit_debug(void)
1405 1405
1406 for (p = debugfs_entries; p->name; ++p) 1406 for (p = debugfs_entries; p->name; ++p)
1407 debugfs_remove(p->dentry); 1407 debugfs_remove(p->dentry);
1408 debugfs_remove(debugfs_dir); 1408 debugfs_remove(kvm_debugfs_dir);
1409} 1409}
1410 1410
1411static int kvm_suspend(struct sys_device *dev, pm_message_t state) 1411static int kvm_suspend(struct sys_device *dev, pm_message_t state)
diff --git a/virt/kvm/kvm_trace.c b/virt/kvm/kvm_trace.c
index 5425440c54bf..0e495470788d 100644
--- a/virt/kvm/kvm_trace.c
+++ b/virt/kvm/kvm_trace.c
@@ -159,12 +159,12 @@ static int do_kvm_trace_enable(struct kvm_user_trace_setup *kuts)
159 159
160 r = -EIO; 160 r = -EIO;
161 atomic_set(&kt->lost_records, 0); 161 atomic_set(&kt->lost_records, 0);
162 kt->lost_file = debugfs_create_file("lost_records", 0444, debugfs_dir, 162 kt->lost_file = debugfs_create_file("lost_records", 0444, kvm_debugfs_dir,
163 kt, &kvm_trace_lost_ops); 163 kt, &kvm_trace_lost_ops);
164 if (!kt->lost_file) 164 if (!kt->lost_file)
165 goto err; 165 goto err;
166 166
167 kt->rchan = relay_open("trace", debugfs_dir, kuts->buf_size, 167 kt->rchan = relay_open("trace", kvm_debugfs_dir, kuts->buf_size,
168 kuts->buf_nr, &kvm_relay_callbacks, kt); 168 kuts->buf_nr, &kvm_relay_callbacks, kt);
169 if (!kt->rchan) 169 if (!kt->rchan)
170 goto err; 170 goto err;