aboutsummaryrefslogtreecommitdiffstats
path: root/virt/kvm/kvm_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'virt/kvm/kvm_main.c')
-rw-r--r--virt/kvm/kvm_main.c8
1 files changed, 4 insertions, 4 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)