Re: [patch 2/3] KVM: MMU: skip global pgtables on sync due to cr3 switch

Marcelo Tosatti
2008-10-31T19:51:56Z

On Fri, Oct 31, 2008 at 09:43:50PM +0200, Avi Kivity wrote:
> Marcelo Tosatti wrote:
>>> But a more accurate approach is to keep a count of non-global
>>> present mappings, and to activate the global logic when this count
>>> is nonzero.
>>>
>>
>> I don't think the overhead it adds is significant for the added
>> complexity?
>
> Not sure what you're asking exactly (-ENOPARSE). I don't think it's
> worthwhile to account for !global -> global transitions.

Was referring to "active the global logic when this count is nonzero"
(ie don't see the point of keeping non-global count).