diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2009-10-01 18:28:39 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-12-03 02:32:14 -0500 |
commit | a68a6a7282373bedba8a2ed751b6384edb983a64 (patch) | |
tree | dc92225ea662d36146f4fb66eec61c29b9e0a132 /arch/x86/kvm/x86.c | |
parent | 355be0b9300579e02275d7d19374806a974ce622 (diff) |
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>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index a06f88e66c89..4693f915f3bd 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -1238,8 +1238,8 @@ int kvm_dev_ioctl_check_extension(long ext) | |||
1238 | case KVM_CAP_NR_MEMSLOTS: | 1238 | case KVM_CAP_NR_MEMSLOTS: |
1239 | r = KVM_MEMORY_SLOTS; | 1239 | r = KVM_MEMORY_SLOTS; |
1240 | break; | 1240 | break; |
1241 | case KVM_CAP_PV_MMU: | 1241 | case KVM_CAP_PV_MMU: /* obsolete */ |
1242 | r = !tdp_enabled; | 1242 | r = 0; |
1243 | break; | 1243 | break; |
1244 | case KVM_CAP_IOMMU: | 1244 | case KVM_CAP_IOMMU: |
1245 | r = iommu_found(); | 1245 | r = iommu_found(); |