On 15.07.2025 09:45, Roger Pau Monne wrote:
> The current p2m type-change loop in ept_vcpu_flush_pml_buffer() relies on
> each call to p2m_change_type_one() taking the p2m lock, doing the change
> and then dropping the lock and flushing the p2m.  Instead take the p2m lock
> outside of the loop, so that calls to gfn_{,un}lock() inside
> p2m_change_type_one() just take the p2m lock recursively, and more
> importantly, the flush is deferred until the p2m is unlocked in
> ept_vcpu_flush_pml_buffer().
> 
> No functional change intended in the end result of
> ept_vcpu_flush_pml_buffer(), however a possibly noticeable performance
> improvement is expected.
> 
> Signed-off-by: Roger Pau Monné <roger....@citrix.com>

Reviewed-by: Jan Beulich <jbeul...@suse.com>


Reply via email to