projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
KVM: PPC: Move xics_debugfs_init out of create
[linux-2.6-block.git]
/
arch
/
powerpc
/
kvm
/
book3s_xics.c
diff --git
a/arch/powerpc/kvm/book3s_xics.c
b/arch/powerpc/kvm/book3s_xics.c
index a75ba38a2d81415dfcbe497c27b1329fdd6c8736..f2def8e45fef1321c579c8dcc224ded4ff351ce9 100644
(file)
--- a/
arch/powerpc/kvm/book3s_xics.c
+++ b/
arch/powerpc/kvm/book3s_xics.c
@@
-1341,8
+1341,6
@@
static int kvmppc_xics_create(struct kvm_device *dev, u32 type)
return ret;
}
return ret;
}
- xics_debugfs_init(xics);
-
#ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE
if (cpu_has_feature(CPU_FTR_ARCH_206)) {
/* Enable real mode support */
#ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE
if (cpu_has_feature(CPU_FTR_ARCH_206)) {
/* Enable real mode support */
@@
-1354,9
+1352,17
@@
static int kvmppc_xics_create(struct kvm_device *dev, u32 type)
return 0;
}
return 0;
}
+static void kvmppc_xics_init(struct kvm_device *dev)
+{
+ struct kvmppc_xics *xics = (struct kvmppc_xics *)dev->private;
+
+ xics_debugfs_init(xics);
+}
+
struct kvm_device_ops kvm_xics_ops = {
.name = "kvm-xics",
.create = kvmppc_xics_create,
struct kvm_device_ops kvm_xics_ops = {
.name = "kvm-xics",
.create = kvmppc_xics_create,
+ .init = kvmppc_xics_init,
.destroy = kvmppc_xics_free,
.set_attr = xics_set_attr,
.get_attr = xics_get_attr,
.destroy = kvmppc_xics_free,
.set_attr = xics_set_attr,
.get_attr = xics_get_attr,