kvm/book3s: Make kernel emulated H_PUT_TCE available for "PR" KVM
[deliverable/linux.git] / arch / powerpc / kvm / book3s_pr.c
index d169a0aa48870189c070ca9ecb2efc140ce4ca59..815ac5938a9edfc64b574b87fa6d0065cafc201f 100644 (file)
@@ -1171,11 +1171,18 @@ void kvmppc_core_commit_memory_region(struct kvm *kvm,
 
 int kvmppc_core_init_vm(struct kvm *kvm)
 {
+#ifdef CONFIG_PPC64
+       INIT_LIST_HEAD(&kvm->arch.spapr_tce_tables);
+#endif
+
        return 0;
 }
 
 void kvmppc_core_destroy_vm(struct kvm *kvm)
 {
+#ifdef CONFIG_PPC64
+       WARN_ON(!list_empty(&kvm->arch.spapr_tce_tables));
+#endif
 }
 
 static int kvmppc_book3s_init(void)
This page took 0.025134 seconds and 5 git commands to generate.