On Thu, Jul 07, 2011 at 03:26:14AM +0800, Xiao Guangrong wrote:
> On 07/07/2011 02:08 AM, Marcelo Tosatti wrote:
>
> >> +static void free_pages_rcu(struct rcu_head *head)
> >> +{
> >> + struct kvm_mmu_page *next, *sp;
> >> +
> >> + sp = container_of(head, struct kvm_mmu_page, rcu);
> >> + while
On 07/07/2011 02:08 AM, Marcelo Tosatti wrote:
>> +static void free_pages_rcu(struct rcu_head *head)
>> +{
>> +struct kvm_mmu_page *next, *sp;
>> +
>> +sp = container_of(head, struct kvm_mmu_page, rcu);
>> +while (sp) {
>> +if (!list_empty(&sp->link))
>> +
On Thu, Jun 30, 2011 at 04:26:31PM +0800, Xiao Guangrong wrote:
> Use rcu to protect shadow pages table to be freed, so we can safely walk it,
> it should run fastly and is needed by mmio page fault
>
> Signed-off-by: Xiao Guangrong
> ---
> arch/x86/include/asm/kvm_host.h |8 +++
> arch/x86/