KVM: introduce kvm->srcu and convert kvm_set_memory_region to SRCU update
Use two steps for memslot deletion: mark the slot invalid (which stops
instantiation of new shadow pages for that slot, but allows destruction),
then instantiate the new empty slot.
Also simplifies kvm_handle_hva locking.
Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
Showing
- arch/ia64/kvm/kvm-ia64.c 3 additions, 1 deletionarch/ia64/kvm/kvm-ia64.c
- arch/x86/kvm/mmu.c 14 additions, 14 deletionsarch/x86/kvm/mmu.c
- arch/x86/kvm/vmx.c 5 additions, 1 deletionarch/x86/kvm/vmx.c
- include/linux/kvm.h 1 addition, 1 deletioninclude/linux/kvm.h
- include/linux/kvm_host.h 2 additions, 5 deletionsinclude/linux/kvm_host.h
- virt/kvm/assigned-dev.c 4 additions, 4 deletionsvirt/kvm/assigned-dev.c
- virt/kvm/iommu.c 2 additions, 2 deletionsvirt/kvm/iommu.c
- virt/kvm/kvm_main.c 105 additions, 36 deletionsvirt/kvm/kvm_main.c
Loading
Please register or sign in to comment