KVM: MMU: Switch to mmu spinlock
Convert the synchronization of the shadow handling to a separate mmu_lock spinlock. Also guard fetch() by mmap_sem in read-mode to protect against alias and memslot changes. Signed-off-by:Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by:
Avi Kivity <avi@qumranet.com>
Showing
- arch/x86/kvm/mmu.c 26 additions, 22 deletionsarch/x86/kvm/mmu.c
- arch/x86/kvm/paging_tmpl.h 6 additions, 4 deletionsarch/x86/kvm/paging_tmpl.h
- arch/x86/kvm/vmx.c 0 additions, 2 deletionsarch/x86/kvm/vmx.c
- include/linux/kvm_host.h 2 additions, 1 deletioninclude/linux/kvm_host.h
- virt/kvm/kvm_main.c 1 addition, 2 deletionsvirt/kvm/kvm_main.c
Loading
Please register or sign in to comment