Re: [Qemu-devel] [PATCH v1 6/6] mem: change tcg code to rcu style

2013-05-29 Thread Paolo Bonzini
Il 29/05/2013 11:00, liu ping fan ha scritto: >> Remember that this code is running under the BQL, so there is no need to >> protect the TLB flushes otherwise. There is also no need to do anything > > Do you mean that cpu_exec() can not be out of BQL like kvm path? If > it is true, then there is

Re: [Qemu-devel] [PATCH v1 6/6] mem: change tcg code to rcu style

2013-05-29 Thread liu ping fan
On Wed, May 29, 2013 at 3:22 PM, Paolo Bonzini wrote: > Il 29/05/2013 04:11, Liu Ping Fan ha scritto: >> From: Liu Ping Fan >> >> When adopting rcu style, for tcg code, need to fix two kind of path: >> -tlb_set_page() will cache translation info. >> -instruction emualation path >> >> Signed-off

Re: [Qemu-devel] [PATCH v1 6/6] mem: change tcg code to rcu style

2013-05-29 Thread Paolo Bonzini
Il 29/05/2013 04:11, Liu Ping Fan ha scritto: > From: Liu Ping Fan > > When adopting rcu style, for tcg code, need to fix two kind of path: > -tlb_set_page() will cache translation info. > -instruction emualation path > > Signed-off-by: Liu Ping Fan > > Not sure about tcg code, so I took

[Qemu-devel] [PATCH v1 6/6] mem: change tcg code to rcu style

2013-05-28 Thread Liu Ping Fan
From: Liu Ping Fan When adopting rcu style, for tcg code, need to fix two kind of path: -tlb_set_page() will cache translation info. -instruction emualation path Signed-off-by: Liu Ping Fan Not sure about tcg code, so I took helper_st as the example. --- cputlb.c