diff options
author | Scott Wood <scottwood@freescale.com> | 2011-12-20 10:34:26 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-04-08 05:51:05 -0400 |
commit | fafd68327858bf30c846d38c7ea144f0827f552e (patch) | |
tree | 2b848572072cf86ccd138d00610237c8eef9e4b7 | |
parent | 94fa9d9927627a948cef3eff7ebd228dcab5a316 (diff) |
KVM: PPC: booke: Move vm core init/destroy out of booke.c
e500mc will want to do lpid allocation/deallocation here.
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r-- | arch/powerpc/kvm/44x.c | 9 | ||||
-rw-r--r-- | arch/powerpc/kvm/booke.c | 9 | ||||
-rw-r--r-- | arch/powerpc/kvm/e500.c | 9 |
3 files changed, 18 insertions, 9 deletions
diff --git a/arch/powerpc/kvm/44x.c b/arch/powerpc/kvm/44x.c index 879a1a70acd0..50e7dbc7356c 100644 --- a/arch/powerpc/kvm/44x.c +++ b/arch/powerpc/kvm/44x.c | |||
@@ -163,6 +163,15 @@ void kvmppc_core_vcpu_free(struct kvm_vcpu *vcpu) | |||
163 | kmem_cache_free(kvm_vcpu_cache, vcpu_44x); | 163 | kmem_cache_free(kvm_vcpu_cache, vcpu_44x); |
164 | } | 164 | } |
165 | 165 | ||
166 | int kvmppc_core_init_vm(struct kvm *kvm) | ||
167 | { | ||
168 | return 0; | ||
169 | } | ||
170 | |||
171 | void kvmppc_core_destroy_vm(struct kvm *kvm) | ||
172 | { | ||
173 | } | ||
174 | |||
166 | static int __init kvmppc_44x_init(void) | 175 | static int __init kvmppc_44x_init(void) |
167 | { | 176 | { |
168 | int r; | 177 | int r; |
diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c index a2456c7a1d87..2ee9bae38328 100644 --- a/arch/powerpc/kvm/booke.c +++ b/arch/powerpc/kvm/booke.c | |||
@@ -932,15 +932,6 @@ void kvmppc_core_commit_memory_region(struct kvm *kvm, | |||
932 | { | 932 | { |
933 | } | 933 | } |
934 | 934 | ||
935 | int kvmppc_core_init_vm(struct kvm *kvm) | ||
936 | { | ||
937 | return 0; | ||
938 | } | ||
939 | |||
940 | void kvmppc_core_destroy_vm(struct kvm *kvm) | ||
941 | { | ||
942 | } | ||
943 | |||
944 | void kvmppc_set_tcr(struct kvm_vcpu *vcpu, u32 new_tcr) | 935 | void kvmppc_set_tcr(struct kvm_vcpu *vcpu, u32 new_tcr) |
945 | { | 936 | { |
946 | vcpu->arch.tcr = new_tcr; | 937 | vcpu->arch.tcr = new_tcr; |
diff --git a/arch/powerpc/kvm/e500.c b/arch/powerpc/kvm/e500.c index 2d5fe04d5eec..ac6c9ae14a63 100644 --- a/arch/powerpc/kvm/e500.c +++ b/arch/powerpc/kvm/e500.c | |||
@@ -226,6 +226,15 @@ void kvmppc_core_vcpu_free(struct kvm_vcpu *vcpu) | |||
226 | kmem_cache_free(kvm_vcpu_cache, vcpu_e500); | 226 | kmem_cache_free(kvm_vcpu_cache, vcpu_e500); |
227 | } | 227 | } |
228 | 228 | ||
229 | int kvmppc_core_init_vm(struct kvm *kvm) | ||
230 | { | ||
231 | return 0; | ||
232 | } | ||
233 | |||
234 | void kvmppc_core_destroy_vm(struct kvm *kvm) | ||
235 | { | ||
236 | } | ||
237 | |||
229 | static int __init kvmppc_e500_init(void) | 238 | static int __init kvmppc_e500_init(void) |
230 | { | 239 | { |
231 | int r, i; | 240 | int r, i; |