From 62501ff6ab1a58aa1df0592c88b648c6dd4057f8 Mon Sep 17 00:00:00 2001 From: Marcelo Tosatti <mtosatti@redhat.com> Date: Fri, 19 Mar 2010 20:47:36 -0300 Subject: [PATCH 3/3] KVM: x86: disable paravirt mmu reporting RH-Author: Marcelo Tosatti <mtosatti@redhat.com> Message-id: <patch-7922-clone-for-rhel5-rhel56> Patchwork-id: 7977 O-Subject: [PATCH RHEL 5.4.z 5.5] KVM: x86: disable paravirt mmu reporting Bugzilla: 574621 RH-Acked-by: Juan Quintela <quintela@redhat.com> RH-Acked-by: Avi Kivity <avi@redhat.com> RH-Acked-by: Zachary Amsden <zamsden@redhat.com> RH-Acked-by: Rik van Riel <riel@redhat.com> commit a68a6a7282373bedba8a2ed751b6384edb983a64 Author: Marcelo Tosatti <mtosatti@redhat.com> Date: Thu Oct 1 19:28:39 2009 -0300 KVM: x86: disable paravirt mmu reporting 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> BZ: 575257 Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> --- arch/x86/kvm/x86.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index d4cbf5e..bd28343 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -1098,7 +1098,7 @@ int kvm_dev_ioctl_check_extension(long ext) r = KVM_MEMORY_SLOTS; break; case KVM_CAP_PV_MMU: - r = !tdp_enabled; + r = 0; break; case KVM_CAP_IOMMU: r = iommu_found(); -- 1.7.0.3