KVM: PPC: booke: Move vm core init/destroy out of booke.c
authorScott Wood <scottwood@freescale.com>
Tue, 20 Dec 2011 15:34:26 +0000 (15:34 +0000)
committerAvi Kivity <avi@redhat.com>
Sun, 8 Apr 2012 09:51:05 +0000 (12:51 +0300)
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>
arch/powerpc/kvm/44x.c
arch/powerpc/kvm/booke.c
arch/powerpc/kvm/e500.c

index 879a1a70acd0baecf1b82fd40564a007f0b68dd1..50e7dbc7356cd0ed574f3ac9fa61ea509fb26439 100644 (file)
@@ -163,6 +163,15 @@ void kvmppc_core_vcpu_free(struct kvm_vcpu *vcpu)
        kmem_cache_free(kvm_vcpu_cache, vcpu_44x);
 }
 
+int kvmppc_core_init_vm(struct kvm *kvm)
+{
+       return 0;
+}
+
+void kvmppc_core_destroy_vm(struct kvm *kvm)
+{
+}
+
 static int __init kvmppc_44x_init(void)
 {
        int r;
index a2456c7a1d8782d37d08ff5b4e8d34b526680c07..2ee9bae3832806a358bed01401177580bf225ba9 100644 (file)
@@ -932,15 +932,6 @@ void kvmppc_core_commit_memory_region(struct kvm *kvm,
 {
 }
 
-int kvmppc_core_init_vm(struct kvm *kvm)
-{
-       return 0;
-}
-
-void kvmppc_core_destroy_vm(struct kvm *kvm)
-{
-}
-
 void kvmppc_set_tcr(struct kvm_vcpu *vcpu, u32 new_tcr)
 {
        vcpu->arch.tcr = new_tcr;
index 2d5fe04d5eec36914a19f0765db87eed8a35af70..ac6c9ae14a63e5ecc35b9a654751ca285566ff44 100644 (file)
@@ -226,6 +226,15 @@ void kvmppc_core_vcpu_free(struct kvm_vcpu *vcpu)
        kmem_cache_free(kvm_vcpu_cache, vcpu_e500);
 }
 
+int kvmppc_core_init_vm(struct kvm *kvm)
+{
+       return 0;
+}
+
+void kvmppc_core_destroy_vm(struct kvm *kvm)
+{
+}
+
 static int __init kvmppc_e500_init(void)
 {
        int r, i;