Re: [PATCH v2 03/15] KVM: MMU: lazily drop large spte

2013-10-03 Thread Xiao Guangrong
On Oct 1, 2013, at 6:39 AM, Marcelo Tosatti wrote: > On Thu, Sep 05, 2013 at 06:29:06PM +0800, Xiao Guangrong wrote: >> Currently, kvm zaps the large spte if write-protected is needed, the later >> read can fault on that spte. Actually, we can make the large spte readonly >> instead of making

Re: [PATCH v2 03/15] KVM: MMU: lazily drop large spte

2013-10-03 Thread Xiao Guangrong
On Oct 1, 2013, at 6:39 AM, Marcelo Tosatti mtosa...@redhat.com wrote: On Thu, Sep 05, 2013 at 06:29:06PM +0800, Xiao Guangrong wrote: Currently, kvm zaps the large spte if write-protected is needed, the later read can fault on that spte. Actually, we can make the large spte readonly instead

Re: [PATCH v2 03/15] KVM: MMU: lazily drop large spte

2013-09-30 Thread Marcelo Tosatti
On Thu, Sep 05, 2013 at 06:29:06PM +0800, Xiao Guangrong wrote: > Currently, kvm zaps the large spte if write-protected is needed, the later > read can fault on that spte. Actually, we can make the large spte readonly > instead of making them un-present, the page fault caused by read access can >

Re: [PATCH v2 03/15] KVM: MMU: lazily drop large spte

2013-09-30 Thread Marcelo Tosatti
On Thu, Sep 05, 2013 at 06:29:06PM +0800, Xiao Guangrong wrote: Currently, kvm zaps the large spte if write-protected is needed, the later read can fault on that spte. Actually, we can make the large spte readonly instead of making them un-present, the page fault caused by read access can be

[PATCH v2 03/15] KVM: MMU: lazily drop large spte

2013-09-05 Thread Xiao Guangrong
Currently, kvm zaps the large spte if write-protected is needed, the later read can fault on that spte. Actually, we can make the large spte readonly instead of making them un-present, the page fault caused by read access can be avoided The idea is from Avi: | As I mentioned before,

[PATCH v2 03/15] KVM: MMU: lazily drop large spte

2013-09-05 Thread Xiao Guangrong
Currently, kvm zaps the large spte if write-protected is needed, the later read can fault on that spte. Actually, we can make the large spte readonly instead of making them un-present, the page fault caused by read access can be avoided The idea is from Avi: | As I mentioned before,