Re: [RFC][PATCH 4/5] [PATCH 4/5] kvm-ept-idle: EPT page table walk for A bits

2018-09-06 Thread Dave Hansen
On 09/01/2018 04:28 AM, Fengguang Wu wrote: > (2) would need fundemental changes to the interface. It seems existing > solutions > for sparse files like SEEK_HOLE/SEEK_DATA and FIEMAP ioctl may not serve this > situation well. The most efficient way could be to fill user space read() > buffer with

[RFC][PATCH 4/5] [PATCH 4/5] kvm-ept-idle: EPT page table walk for A bits

2018-09-01 Thread Fengguang Wu
This borrows host page table walk macros/functions to do EPT walk. So it depends on them using the same level. Dave Hansen raised the concern that hottest pages may be cached in TLB and don't frequently set the accessed bits. The solution would be to invalidate TLB for the mm being walked, when fi