Re: [PATCH v3 1/2] KVM: x86/mmu: Ensure TDP MMU roots are freed after yield

From: Paolo Bonzini
Date: Thu Jan 07 2021 - 12:55:30 EST


On 07/01/21 18:40, Sean Christopherson wrote:
/*
* The yield_safe() variant of the TDP root iterator gets and puts references to
* the roots it iterates over. This makes it safe to release the MMU lock and
* yield within the loop, but the caller MUST NOT exit the loop early.
*/


Nicer, thanks!

Paolo