]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: only perform eager page splitting on valid roots
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 2 Mar 2022 13:44:22 +0000 (08:44 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 8 Mar 2022 14:31:50 +0000 (09:31 -0500)
commitd4fd9c7db2189000d412c197a6eaa319fe446569
tree900c26862faece0ed15fbca84d44f75254efe625
parent3c63a89459a4be4fdcf88114573d5f63a524f14e
KVM: x86/mmu: only perform eager page splitting on valid roots

Eager page splitting is an optimization; it does not have to be performed on
invalid roots.  It is also the only case in which a reader might acquire
a reference to an invalid root, so after this change we know that readers
will skip both dying and invalid roots.

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