[PATCH v2 15/15] KVM: MMU: use rcu functions to access the pointer

2013-09-05 Thread Xiao Guangrong
Use rcu_assign_pointer() to update all the pointer in desc and use rcu_dereference() to lockless read the pointer Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 46 -- 1 file changed, 28 insertions(+), 18 deletions(-) diff --git

[PATCH v2 15/15] KVM: MMU: use rcu functions to access the pointer

2013-09-05 Thread Xiao Guangrong
Use rcu_assign_pointer() to update all the pointer in desc and use rcu_dereference() to lockless read the pointer Signed-off-by: Xiao Guangrong xiaoguangr...@linux.vnet.ibm.com --- arch/x86/kvm/mmu.c | 46 -- 1 file changed, 28 insertions(+), 18