Revert "KVM: x86/mmu: Zap only TDP MMU leafs in kvm_zap_gfn_range()"
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 18 Mar 2022 16:30:32 +0000 (12:30 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 21 Mar 2022 09:11:51 +0000 (05:11 -0400)
commit873dd122172f8cce329113cfb0dfe3d2344d80c0
tree27a14a6655f7b112b641acc6cc7e27ada689705d
parentfcb93eb6d09dd302cbef22bd95a5858af75e4156
Revert "KVM: x86/mmu: Zap only TDP MMU leafs in kvm_zap_gfn_range()"

This reverts commit cf3e26427c08ad9015956293ab389004ac6a338e.

Multi-vCPU Hyper-V guests started crashing randomly on boot with the
latest kvm/queue and the problem can be bisected the problem to this
particular patch. Basically, I'm not able to boot e.g. 16-vCPU guest
successfully anymore. Both Intel and AMD seem to be affected. Reverting
the commit saves the day.

Reported-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/tdp_mmu.c
arch/x86/kvm/mmu/tdp_mmu.h