[PATCH 03/11] KVM: MMU: introduce kvm_mmu_slot_gfn_write_protect

2016-02-24 Thread Xiao Guangrong
Split rmap_write_protect() and introduce the function to abstract the write protection based on the slot This function will be used in the later patch Reviewed-by: Paolo Bonzini Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 16 +++- arch/x86/kvm/mmu.h | 2 ++ 2 files chan

[PATCH 03/11] KVM: MMU: introduce kvm_mmu_slot_gfn_write_protect

2015-11-30 Thread Xiao Guangrong
Split rmap_write_protect() and introduce the function to abstract the write protection based on the slot This function will be used in the later patch Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 16 +++- arch/x86/kvm/mmu.h | 2 ++ 2 files changed, 13 insertions(+), 5 del