lkml.org 
[lkml]   [2011]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 7/7] KVM: MMU: cache guest page number to guest frame number
On 02/22/2011 10:16 AM, Xiao Guangrong wrote:
> Cache guest page number to guest frame number to avoid walk guest page table
> frequently, the 'vtlb' idea is from Xen.
>
> Note:
> we can't use vtlb in ept guests since the guest tlb invalid operation is not
> intercept(reload CR3, invlpg), also can't used in L2 nnpt guest for the same
> reason, but we can used it to cache L1's npt page table.
>

I'm not so hot about introducing a new mechanism strictly for older
hosts... EPT exists in three generations of Intel processors now (Sandy
Bridge, Westmere, and Nehalem), and NPT is significantly older.

I'd rather make the guest page table walk faster. I believe that things
like get_user() can be significantly faster than copy_from_user() on
older hosts, and a four-level page table walk shouldn't be that slow.

--
error compiling committee.c: too many arguments to function



\
 
 \ /
  Last update: 2011-02-22 15:35    [W:0.136 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site