Merge branch 'kvm-guestmemfd' into HEAD
[sfrench/cifs-2.6.git] / arch / powerpc / kvm / powerpc.c
index f6af752698d0363e1432a3ab2f111ba325f417fc..c39945a7fce36f6a0f237c44a98f3718af1c1a10 100644 (file)
@@ -632,13 +632,8 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)
                break;
 #endif
        case KVM_CAP_SYNC_MMU:
-#ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE
-               r = hv_enabled;
-#elif defined(KVM_ARCH_WANT_MMU_NOTIFIER)
+               BUILD_BUG_ON(!IS_ENABLED(CONFIG_KVM_GENERIC_MMU_NOTIFIER));
                r = 1;
-#else
-               r = 0;
-#endif
                break;
 #ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE
        case KVM_CAP_PPC_HTAB_FD: