]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Make walk_shadow_page_lockless_{begin,end} interoperate with the TDP MMU
authorDavid Matlack <dmatlack@google.com>
Tue, 13 Jul 2021 22:09:54 +0000 (22:09 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 2 Aug 2021 15:01:47 +0000 (11:01 -0400)
commitd59dbe4d0eeaf739cdc1ebc2e9a3e6104406398c
treed113b740b5ff72ef8ebef6eeb8f41014eeee9436
parentb4f4d03a559d77975e51d628bebe8961a9fd4938
KVM: x86/mmu: Make walk_shadow_page_lockless_{begin,end} interoperate with the TDP MMU

Acquire the RCU read lock in walk_shadow_page_lockless_begin and release
it in walk_shadow_page_lockless_end when the TDP MMU is enabled.  This
should not introduce any functional changes but is used in the following
commit to make fast_page_fault interoperate with the TDP MMU.

Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20210713220957.3493520-4-dmatlack@google.com>
[Use if...else instead of if(){return;}]
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