Re: [PATCH v4 00/12] KVM: x86/mmu: refine memtype related mmu zap

From: Sean Christopherson
Date: Fri Aug 25 2023 - 19:17:52 EST


On Fri, Jul 14, 2023, Yan Zhao wrote:
> This series refines mmu zap caused by EPT memory type update when guest
> MTRRs are honored.
>
> Patches 1-5 revolve around utilizing helper functions to check if
> KVM TDP honors guest MTRRs, TDP zaps and page fault max_level reduction
> are now only targeted to TDPs that honor guest MTRRs.
>
> -The 5th patch will trigger zapping of TDP leaf entries if non-coherent
> DMA devices count goes from 0 to 1 or from 1 to 0.
>
> Patches 6-7 are fixes and patches 9-12 are optimizations for mmu zaps
> when guest MTRRs are honored.
> Those mmu zaps are intended to remove stale memtypes of TDP entries
> caused by changes of guest MTRRs and CR0.CD and are usually triggered from
> all vCPUs in bursts.

Sorry for the delayed review, especially with respect to patches 1-5. I completely
forgot there were cleanups at the beginning of this series. I'll make to grab
1-5 early in the 6.7 cycle, even if you haven't sent a new version before then.