]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Use an rwlock for the x86 MMU
authorBen Gardon <bgardon@google.com>
Tue, 2 Feb 2021 18:57:24 +0000 (10:57 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Feb 2021 10:27:43 +0000 (05:27 -0500)
commita6b39cf034e2f4b056b129d51417b4f6aee2128c
tree2f8d7a33fea95476a3181b4f1aca2e1f973a4295
parentc04f7facec61ef557fe5f82dcfcc6827f02e4673
KVM: x86/mmu: Use an rwlock for the x86 MMU

Add a read / write lock to be used in place of the MMU spinlock on x86.
The rwlock will enable the TDP MMU to handle page faults, and other
operations in parallel in future commits.

Reviewed-by: Peter Feiner <pfeiner@google.com>
Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20210202185734.1680553-19-bgardon@google.com>
[Introduce virt/kvm/mmu_lock.h - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/page_track.c
arch/x86/kvm/mmu/paging_tmpl.h
arch/x86/kvm/mmu/tdp_mmu.c
arch/x86/kvm/x86.c
include/linux/kvm_host.h
virt/kvm/dirty_ring.c
virt/kvm/kvm_main.c
virt/kvm/mmu_lock.h [new file with mode: 0644]