Re: [RFC PATCH] KVM: x86: Support write protect huge pages lazily

2021-04-14 Thread Keqian Zhu
Hi Ben, On 2021/4/14 0:43, Ben Gardon wrote: > On Tue, Apr 13, 2021 at 2:39 AM Keqian Zhu wrote: >> >> >> >> On 2021/4/13 1:19, Ben Gardon wrote: >>> On Tue, Apr 6, 2021 at 4:42 PM Sean Christopherson >>> wrote: +Ben On Tue, Apr 06, 2021, Keqian Zhu wrote: > Hi Paolo,

Re: [RFC PATCH] KVM: x86: Support write protect huge pages lazily

2021-04-13 Thread Ben Gardon
On Tue, Apr 13, 2021 at 2:39 AM Keqian Zhu wrote: > > > > On 2021/4/13 1:19, Ben Gardon wrote: > > On Tue, Apr 6, 2021 at 4:42 PM Sean Christopherson > > wrote: > >> > >> +Ben > >> > >> On Tue, Apr 06, 2021, Keqian Zhu wrote: > >>> Hi Paolo, > >>> > >>> I plan to rework this patch and do full

Re: [RFC PATCH] KVM: x86: Support write protect huge pages lazily

2021-04-13 Thread Keqian Zhu
On 2021/4/13 1:19, Ben Gardon wrote: > On Tue, Apr 6, 2021 at 4:42 PM Sean Christopherson wrote: >> >> +Ben >> >> On Tue, Apr 06, 2021, Keqian Zhu wrote: >>> Hi Paolo, >>> >>> I plan to rework this patch and do full test. What do you think about this >>> idea >>> (enable dirty logging for

Re: [RFC PATCH] KVM: x86: Support write protect huge pages lazily

2021-04-12 Thread Ben Gardon
On Tue, Apr 6, 2021 at 4:42 PM Sean Christopherson wrote: > > +Ben > > On Tue, Apr 06, 2021, Keqian Zhu wrote: > > Hi Paolo, > > > > I plan to rework this patch and do full test. What do you think about this > > idea > > (enable dirty logging for huge pages lazily)? > > Ben, don't you also have

Re: [RFC PATCH] KVM: x86: Support write protect huge pages lazily

2021-04-08 Thread Keqian Zhu
Hi Sean, On 2021/4/8 23:52, Sean Christopherson wrote: > On Thu, Apr 08, 2021, Keqian Zhu wrote: >> Hi Ben, >> >> Do you have any similar idea that can share with us? > > Doh, Ben is out this week, he'll be back Monday. Sorry for gumming up the > works :-/ Please don't mind. I'm glad we can

Re: [RFC PATCH] KVM: x86: Support write protect huge pages lazily

2021-04-08 Thread Sean Christopherson
On Thu, Apr 08, 2021, Keqian Zhu wrote: > Hi Ben, > > Do you have any similar idea that can share with us? Doh, Ben is out this week, he'll be back Monday. Sorry for gumming up the works :-/

Re: [RFC PATCH] KVM: x86: Support write protect huge pages lazily

2021-04-08 Thread Keqian Zhu
Hi Ben, Do you have any similar idea that can share with us? Thanks Keqian On 2021/4/7 7:42, Sean Christopherson wrote: > +Ben > > On Tue, Apr 06, 2021, Keqian Zhu wrote: >> Hi Paolo, >> >> I plan to rework this patch and do full test. What do you think about this >> idea >> (enable dirty

Re: [RFC PATCH] KVM: x86: Support write protect huge pages lazily

2021-04-06 Thread Sean Christopherson
+Ben On Tue, Apr 06, 2021, Keqian Zhu wrote: > Hi Paolo, > > I plan to rework this patch and do full test. What do you think about this > idea > (enable dirty logging for huge pages lazily)? Ben, don't you also have something similar (or maybe the exact opposite?) in the hopper? This sounds

Re: [RFC PATCH] KVM: x86: Support write protect huge pages lazily

2021-04-06 Thread Keqian Zhu
Hi Paolo, I plan to rework this patch and do full test. What do you think about this idea (enable dirty logging for huge pages lazily)? Best Regards, Keqian PS: As dirty log of TDP MMU has been supported, I should add more code. On 2020/8/28 16:11, Keqian Zhu wrote: > Currently during enable

[RFC PATCH] KVM: x86: Support write protect huge pages lazily

2020-08-28 Thread Keqian Zhu
Currently during enable dirty logging, if we're with init-all-set, we just write protect huge pages and leave normal pages untouched, for that we can enable dirty logging for these pages lazily. It seems that enable dirty logging lazily for huge pages is feasible too, which not only reduces the