Re: [PATCH 3/3] Eliminate read_cr3 on TLB flush

Zachary Amsden
2007-05-30T21:49:03Z

Anthony Liguori wrote:
>
> I was thinking the same thing :-)
>
> I was actually thinking about adding a hypercall to set/clear a bit in
> a control register. The thought here is that it would be useful not
> just for the global bit but also for CR0.TS although we would need
> another paravirt_op hook for stts.

You don't need STTS: just cache CR0 value on writes and replace
read_cr0. More paravirt_op hooks would likely be frowned upon, we've
already got too many.

Zach