Re: [PATCH 2/2] KVM: x86/mmu: Optimize MMU page cache lookup for fully direct MMUs

2020-06-23 Thread Jon Cargille
LGTM. Reviewed-By: Jon Cargille On Tue, Jun 23, 2020 at 12:40 PM Sean Christopherson wrote: > > Skip the unsync checks and the write flooding clearing for fully direct > MMUs, which are guaranteed to not have unsync'd or indirect pages (write > flooding detection only applies to indirect pages

[PATCH 2/2] KVM: x86/mmu: Optimize MMU page cache lookup for fully direct MMUs

2020-06-23 Thread Sean Christopherson
Skip the unsync checks and the write flooding clearing for fully direct MMUs, which are guaranteed to not have unsync'd or indirect pages (write flooding detection only applies to indirect pages). For TDP, this avoids unnecessary memory reads and writes, and for the write flooding count will also