]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Fix TDP MMU zap collapsible SPTEs
authorBen Gardon <bgardon@google.com>
Tue, 2 Feb 2021 18:57:16 +0000 (10:57 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Feb 2021 09:38:53 +0000 (04:38 -0500)
commit5df9ff93f59bf0ee9fb8e8842ae07d23c011b229
treee6b16fc6cb6e6ae99b79819a87dd6e32b519e8bc
parent954c38d21b15ceddfa1864a881820256b4e7ebb1
KVM: x86/mmu: Fix TDP MMU zap collapsible SPTEs

There is a bug in the TDP MMU function to zap SPTEs which could be
replaced with a larger mapping which prevents the function from doing
anything. Fix this by correctly zapping the last level SPTEs.

Cc: stable@vger.kernel.org
Fixes: 5c53ee5ce54d ("kvm: x86/mmu: Support disabling dirty logging for the tdp MMU")
Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20210202185734.1680553-11-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/tdp_mmu.c