Re: [patch 10/10] KVM: MMU: speed up mmu_unsync_walk

Marcelo Tosatti
2008-09-21T00:46:47Z

On Fri, Sep 19, 2008 at 06:26:56PM -0700, Avi Kivity wrote:
>> --- kvm.orig/include/asm-x86/kvm_host.h
>> +++ kvm/include/asm-x86/kvm_host.h
>> @@ -201,6 +201,7 @@ struct kvm_mmu_page {
>> u64 *parent_pte; /* !multimapped */
>> struct hlist_head parent_ptes; /* multimapped, kvm_pte_chain */
>> };
>> + DECLARE_BITMAP(unsync_child_bitmap, 512);
>> };
>>
>
> Later, we can throw this bitmap out to a separate object.

Yeah.

> Also, it may make sense to replace it with an array of u16s.

Why?