• Jeremy Fitzhardinge's avatar
    x86/paravirt: make arch_flush_lazy_mmu/cpu disable preemption · d85cf93d
    Jeremy Fitzhardinge authored
    Impact: avoid access to percpu vars in preempible context
    
    They are intended to be used whenever there's the possibility
    that there's some stale state which is going to be overwritten
    with a queued update, or to force a state change when we may be
    in lazy mode.  Either way, we could end up calling it with
    preemption enabled, so wrap the functions in their own little
    preempt-disable section so they can be safely called in any
    context (though preemption should never be enabled if we're actually
    in a lazy state).
    
    (Move out of line to avoid #include dependencies.)
    Signed-off-by: default avatarJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    d85cf93d
paravirt.c 11.7 KB