On Sun, 08 Apr 2012 16:09:58 +0300
Avi Kivity <[email protected]> wrote:
> > +/* make pte_list_desc fit well in cache line */
> > +#define PTE_LIST_EXT 3
> > +
> > struct pte_list_desc {
> > u64 *sptes[PTE_LIST_EXT];
> > struct pte_list_desc *more;
>
> We could go even further and have 4 pointers, and use bit 0 to decide
> whether it's a next pointer or an sptep.
>
> Not sure it's worth the extra complexity.
>
May not be so complex if we reuse rmap encoding/decoding but it is
for shadow paging only hack ... and mmu is already enough complex;
so not sure - I need to think again later.
My primary goal is to make the code saner and faster.
Takuya
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html