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
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to