Skip to contentSkip to conversation

KVM: x86: disable paravirt mmu reporting

PATCH Marcelo Tosatti 1 participant 1 message Oct 1, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

arch/x86/kvm/x86.c +2 -2
index ffccb5c..fe467cb 100644
@@ -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();