Re: [RFT] mmu optimizations branch

Avi Kivity
2007-01-03T08:35:37Z

Anthony Liguori wrote:
>
> This should be hookable via arch_{enter,leave}_cpu_mode() via
> paravirt_ops. I was actually just looking at this myself (although I
> was focusing on lazy mmu hooks). I've taken the route of using a VMI
> ROM to actually hook it (instead of implementing a custom paravirt_ops
> for KVM).
>
> I can post the ROM if you're interested in this sort of approach. I
> like using VMI as we can access most of the things hookable by
> paravirt_ops without having to change a kernel binary.

VMI has the benefit of working for other OSes, not just Linux, if it
catches on. Please post it; it's certainly interesting.

My feelings is that if you have a paravirt_ops capable guest, you might
as well go all the way and use lhype. I'm willing to be convinced
otherwise though.