Re: [PATCH v3 15/27] KVM: x86: hyper-v: Allow purging all TLB flush FIFOs

From: Jim Mattson

Date: Thu Oct 15 2026 - 18:02:35 EST


On Mon, Oct 12, 2026 at 4:36 PM Yosry Ahmed <yosry@xxxxxxxxxx> wrote:
>
> Refactor kvm_hv_purge_tlb_flush_fifo() to introduce an inner helper,
> __kvm_hv_purge_tlb_flush_fifo(), parameterized by an optional FIFO. If a
> FIFO is not passed in, all FIFOs are purged.
>
> Note that KVM_REQ_HV_TLB_FLUSH is consumed by
> __kvm_hv_purge_tlb_flush_fifo(), so a selective purge on one FIFO will
> render any subsequent non-selective purge useless. This is not a problem
> because purging TLB flush FIFOs is an optimization (and there are
> currently no users of the non-selective purges).
>
> No functional change intended as a FIFO is always being passed in now.
>
> Signed-off-by: Yosry Ahmed <yosry@xxxxxxxxxx>
Reviewed-by: Jim Mattson <jmattson@xxxxxxxxxx>