All of lore.kernel.org
 help / color / mirror / Atom feed
* KVM: MMU: Tracking guest writes through EPT entries ?
@ 2012-07-30 17:18 Sunil
  2012-07-31  2:49 ` Xiao Guangrong
  0 siblings, 1 reply; 13+ messages in thread
From: Sunil @ 2012-07-30 17:18 UTC (permalink / raw)
  To: kvm

Hello List,

I am a KVM newbie and studying KVM mmu code.

On the existing guest, I am trying to track all guest writes by
marking page table entry as read-only in EPT entry [ I am using Intel
machine with vmx and ept support ]. Looks like EPT support re-uses
shadow page table(SPT) code and hence some of SPT routines.

I was thinking of below possible approach. Use pte_list_walk() to
traverse through list of sptes and use mmu_spte_update()  to flip the
PT_WRITABLE_MASK flag. But all SPTEs are not part of any single list;
but on separate lists (based on gfn, page level, memory_slot). So,
recording all the faulted guest GFN and then using above method work ?

Can you please help if there is more direct and cleaner way to do it ?
 (or if I am totally off the track)

Thanks !

--
Sunil

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2012-09-05  3:24 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-30 17:18 KVM: MMU: Tracking guest writes through EPT entries ? Sunil
2012-07-31  2:49 ` Xiao Guangrong
2012-07-31 18:53   ` Sunil Agham
2012-08-30 21:30     ` Davidlohr Bueso
2012-08-28  3:30   ` Felix
2012-08-30 10:22     ` Xiao Guangrong
2012-08-30 18:59       ` Hugo
2012-08-31  2:54         ` Xiao Guangrong
2012-08-31 21:30           ` Hui Lin (Hugo) 
2012-09-02 13:29             ` Xiao Guangrong
     [not found]             ` <bb786815f6c14144acc31b8041486282@CITESHT1.ad.uillinois.edu>
2012-09-03  2:09               ` Hugo
2012-09-03  6:11                 ` Xiao Guangrong
2012-09-05  3:23                   ` Hugo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.