Ya. There is a measurable performance improvement, but it's really onlyif (iter->level == iter->min_level)Ah, right - so I agree with Ben that it's not too important.
return false;
/*
* Reread the SPTE before stepping down to avoid traversing into page
* tables that are no longer linked from this entry.
*/
iter->old_spte = READ_ONCE(*rcu_dereference(iter->sptep)); \
---> this is the code that is avoided
child_pt = spte_to_child_pt(iter->old_spte, iter->level); /
if (!child_pt)
return false;
meaningful when there aren't many SPTEs to zap, otherwise the cost of zapping
completely dominates the time.