[PATCH v8 01/11] KVM: x86: drop calling kvm_mmu_zap_all in emulator_fix_hypercall

2013-05-30 Thread Xiao Guangrong
Quote Gleb's mail: | Back then kvm->lock protected memslot access so code like: | | mutex_lock(>kvm->lock); | kvm_mmu_zap_all(vcpu->kvm); | mutex_unlock(>kvm->lock); | | which is what 7aa81cc0 does was enough to guaranty that no vcpu will | run while code is patched. This is no longer the case

[PATCH v8 01/11] KVM: x86: drop calling kvm_mmu_zap_all in emulator_fix_hypercall

2013-05-30 Thread Xiao Guangrong
Quote Gleb's mail: | Back then kvm-lock protected memslot access so code like: | | mutex_lock(vcpu-kvm-lock); | kvm_mmu_zap_all(vcpu-kvm); | mutex_unlock(vcpu-kvm-lock); | | which is what 7aa81cc0 does was enough to guaranty that no vcpu will | run while code is patched. This is no longer the