Re: KVM: MMU: Tracking guest writes through EPT entries ?

2012-09-04 Thread Hugo
On Mon, Sep 3, 2012 at 1:11 AM, Xiao Guangrong xiaoguangr...@linux.vnet.ibm.com wrote: On 09/03/2012 10:09 AM, Hugo wrote: On Sun, Sep 2, 2012 at 8:29 AM, Xiao Guangrong xiaoguangr...@linux.vnet.ibm.com wrote: On 09/01/2012 05:30 AM, Hui Lin (Hugo) wrote: On Thu, Aug 30, 2012 at 9:54 PM, Xiao

Re: KVM: MMU: Tracking guest writes through EPT entries ?

2012-09-03 Thread Xiao Guangrong
On 09/03/2012 10:09 AM, Hugo wrote: On Sun, Sep 2, 2012 at 8:29 AM, Xiao Guangrong xiaoguangr...@linux.vnet.ibm.com wrote: On 09/01/2012 05:30 AM, Hui Lin (Hugo) wrote: On Thu, Aug 30, 2012 at 9:54 PM, Xiao Guangrong xiaoguangr...@linux.vnet.ibm.com wrote: On 08/31/2012 02:59 AM, Hugo wrote:

Re: KVM: MMU: Tracking guest writes through EPT entries ?

2012-09-02 Thread Xiao Guangrong
On 09/01/2012 05:30 AM, Hui Lin (Hugo) wrote: On Thu, Aug 30, 2012 at 9:54 PM, Xiao Guangrong xiaoguangr...@linux.vnet.ibm.com wrote: On 08/31/2012 02:59 AM, Hugo wrote: On Thu, Aug 30, 2012 at 5:22 AM, Xiao Guangrong xiaoguangr...@linux.vnet.ibm.com wrote: On 08/28/2012 11:30 AM, Felix

Re: KVM: MMU: Tracking guest writes through EPT entries ?

2012-09-02 Thread Hugo
On Sun, Sep 2, 2012 at 8:29 AM, Xiao Guangrong xiaoguangr...@linux.vnet.ibm.com wrote: On 09/01/2012 05:30 AM, Hui Lin (Hugo) wrote: On Thu, Aug 30, 2012 at 9:54 PM, Xiao Guangrong xiaoguangr...@linux.vnet.ibm.com wrote: On 08/31/2012 02:59 AM, Hugo wrote: On Thu, Aug 30, 2012 at 5:22 AM,

Re: KVM: MMU: Tracking guest writes through EPT entries ?

2012-08-31 Thread Hui Lin (Hugo)
On Thu, Aug 30, 2012 at 9:54 PM, Xiao Guangrong xiaoguangr...@linux.vnet.ibm.com wrote: On 08/31/2012 02:59 AM, Hugo wrote: On Thu, Aug 30, 2012 at 5:22 AM, Xiao Guangrong xiaoguangr...@linux.vnet.ibm.com wrote: On 08/28/2012 11:30 AM, Felix wrote: Xiao Guangrong xiaoguangrong at

Re: KVM: MMU: Tracking guest writes through EPT entries ?

2012-08-30 Thread Xiao Guangrong
On 08/28/2012 11:30 AM, Felix wrote: Xiao Guangrong xiaoguangrong at linux.vnet.ibm.com writes: On 07/31/2012 01:18 AM, Sunil wrote: 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

Re: KVM: MMU: Tracking guest writes through EPT entries ?

2012-08-30 Thread Hugo
On Thu, Aug 30, 2012 at 5:22 AM, Xiao Guangrong xiaoguangr...@linux.vnet.ibm.com wrote: On 08/28/2012 11:30 AM, Felix wrote: Xiao Guangrong xiaoguangrong at linux.vnet.ibm.com writes: On 07/31/2012 01:18 AM, Sunil wrote: Hello List, I am a KVM newbie and studying KVM mmu code. On the

Re: KVM: MMU: Tracking guest writes through EPT entries ?

2012-08-30 Thread Davidlohr Bueso
On Tue, 2012-07-31 at 14:53 -0400, Sunil Agham wrote: On Mon, Jul 30, 2012 at 10:49 PM, Xiao Guangrong xiaoguangr...@linux.vnet.ibm.com wrote: On 07/31/2012 01:18 AM, Sunil wrote: Hello List, I am a KVM newbie and studying KVM mmu code. On the existing guest, I am trying to track all

Re: KVM: MMU: Tracking guest writes through EPT entries ?

2012-08-30 Thread Xiao Guangrong
On 08/31/2012 02:59 AM, Hugo wrote: On Thu, Aug 30, 2012 at 5:22 AM, Xiao Guangrong xiaoguangr...@linux.vnet.ibm.com wrote: On 08/28/2012 11:30 AM, Felix wrote: Xiao Guangrong xiaoguangrong at linux.vnet.ibm.com writes: On 07/31/2012 01:18 AM, Sunil wrote: Hello List, I am a KVM newbie

Re: KVM: MMU: Tracking guest writes through EPT entries ?

2012-08-27 Thread Felix
Xiao Guangrong xiaoguangrong at linux.vnet.ibm.com writes: On 07/31/2012 01:18 AM, Sunil wrote: 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

Re: KVM: MMU: Tracking guest writes through EPT entries

2012-08-27 Thread Hugo
Hi, I have done similar things posted in http://article.gmane.org/gmane.comp.emulators.kvm.devel/95342/match=tracking+guest+writes+ept . However, I found some very weird situations. Basically, in the guest vm, I allocate a chunk of memory (with size of a page) in a user level program. Through a

Re: KVM: MMU: Tracking guest writes through EPT entries ?

2012-07-31 Thread Sunil Agham
On Mon, Jul 30, 2012 at 10:49 PM, Xiao Guangrong xiaoguangr...@linux.vnet.ibm.com wrote: On 07/31/2012 01:18 AM, Sunil wrote: 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

KVM: MMU: Tracking guest writes through EPT entries ?

2012-07-30 Thread Sunil
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

Re: KVM: MMU: Tracking guest writes through EPT entries ?

2012-07-30 Thread Xiao Guangrong
On 07/31/2012 01:18 AM, Sunil wrote: 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