Re: [PATCH] KVM: MMU: protect TDP MMU pages only down to required level

2021-04-06 Thread Keqian Zhu
On 2021/4/7 7:38, Sean Christopherson wrote: > On Tue, Apr 06, 2021, Keqian Zhu wrote: >> Hi Paolo, >> >> I'm just going to fix this issue, and found that you have done this ;-) > > Ha, and meanwhile I'm having a serious case of deja vu[1]. It even received a > variant of the magic "Queued, th

Re: [PATCH] KVM: MMU: protect TDP MMU pages only down to required level

2021-04-06 Thread Sean Christopherson
On Tue, Apr 06, 2021, Keqian Zhu wrote: > Hi Paolo, > > I'm just going to fix this issue, and found that you have done this ;-) Ha, and meanwhile I'm having a serious case of deja vu[1]. It even received a variant of the magic "Queued, thanks"[2]. Doesn't appear in either of the 5.12 pull reque

Re: [PATCH] KVM: MMU: protect TDP MMU pages only down to required level

2021-04-05 Thread Keqian Zhu
Hi Paolo, I'm just going to fix this issue, and found that you have done this ;-) Please feel free to add: Reviewed-by: Keqian Zhu Thanks, Keqian On 2021/4/2 20:17, Paolo Bonzini wrote: > When using manual protection of dirty pages, it is not necessary > to protect nested page tables down to t

[PATCH] KVM: MMU: protect TDP MMU pages only down to required level

2021-04-02 Thread Paolo Bonzini
When using manual protection of dirty pages, it is not necessary to protect nested page tables down to the 4K level; instead KVM can protect only hugepages in order to split them lazily, and delay write protection at 4K-granularity until KVM_CLEAR_DIRTY_LOG. This was overlooked in the TDP MMU, so d