]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
KVM: x86: disable paravirt mmu reporting
authorMarcelo Tosatti <mtosatti@redhat.com>
Thu, 1 Oct 2009 22:28:39 +0000 (19:28 -0300)
committerAvi Kivity <avi@redhat.com>
Mon, 5 Oct 2009 12:48:03 +0000 (14:48 +0200)
Disable paravirt MMU capability reporting, so that new (or rebooted)
guests switch to native operation.

Paravirt MMU is a burden to maintain and does not bring significant
advantages compared to shadow anymore.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c

index 2bc9693b9d6952b0339e5e87ac1ce182d7dff175..b2e196ee7fbc0135e0ab556c473a8a90341e7cac 100644 (file)
@@ -1238,8 +1238,8 @@ int kvm_dev_ioctl_check_extension(long ext)
        case KVM_CAP_NR_MEMSLOTS:
                r = KVM_MEMORY_SLOTS;
                break;
-       case KVM_CAP_PV_MMU:
-               r = !tdp_enabled;
+       case KVM_CAP_PV_MMU:    /* obsolete */
+               r = 0;
                break;
        case KVM_CAP_IOMMU:
                r = iommu_found();