On Sun, 29 Jan 2012 15:25:59 +0200
Avi Kivity <a...@redhat.com> wrote:

> > I think introducing kvm_handle_hva_range() is the right thing if we really
> > care about unmapping large area at once.
> >
> > Current iteration:
> > for each page
> >     for each slot
> >             for each level
> >
> > My suggestion:
> > for each slot
> >     for each level
> >             for each page
> >
> > This way compiler can optimize the task to be a simple iteration over the
> > rmap array.
> 
> Yes.  This automatically includes the intersection calculation, since
> you have to do it for the 'for each page in slot' loop.
> 

I personally implemented this before but stopped it because I wanted to
do rmap and rmap_pde refactoring first.

        Takuya
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to