]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - arch/powerpc/kvm/powerpc.c
Merge branch 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux.git] / arch / powerpc / kvm / powerpc.c
index 3e566c2e6066748c82cb3c43eed2fe27d255f982..9e085e931d7494cc7a31335a389c4787b72ba8b5 100644 (file)
@@ -522,6 +522,8 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)
        case KVM_CAP_IMMEDIATE_EXIT:
                r = 1;
                break;
+       case KVM_CAP_PPC_GUEST_DEBUG_SSTEP:
+               /* fall through */
        case KVM_CAP_PPC_PAIRED_SINGLES:
        case KVM_CAP_PPC_OSI:
        case KVM_CAP_PPC_GET_PVINFO:
@@ -561,7 +563,8 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)
                 * a POWER9 processor) and the PowerNV platform, as
                 * nested is not yet supported.
                 */
-               r = xive_enabled() && !!cpu_has_feature(CPU_FTR_HVMODE);
+               r = xive_enabled() && !!cpu_has_feature(CPU_FTR_HVMODE) &&
+                       kvmppc_xive_native_supported();
                break;
 #endif