On 11/24/2026 5:46 AM, Michael Kelley wrote:
From: Naman Jain <[email protected]> Sent: Tuesday, November 17, 2026
1:15 AM
Successful Hyper-V flush hypercalls do not run the guest callbacks that
How should I interpret the "Successful" qualifier on this statement? It seems
a bit spurious since unsuccessful flush hypercalls don't run the callbacks
either. But maybe there's something I'm not understanding ....
Michael
I meant that a failed hypercall leads to native fallback, which can run
the callbacks, whereas a successful call returns without
doing so. But the hypercall itself never runs those callbacks.
I can use this commit msg the next time.
x86/hyperv: Use native flushes for mask trimming and ASID transitions
When trimming mm_cpumask(), Linux needs to run flush_tlb_func() on
remote CPUs so they can clear their stale bits. A Hyper-V TLB flush
hypercall invalidates translations but does not run this function.
The same applies during a global ASID transition. CPUs still using
local ASIDs need to run flush_tlb_func() to switch to the global ASID.
Call native_flush_tlb_multi() in both cases so the required work runs
on the target CPUs.
Regards,
Naman