On 04/21/2017 02:15 PM, Andy Lutomirski wrote: > flush_tlb_page() passes a bogus range to flush_tlb_others() and > expects the latter to fix it up. native_flush_tlb_others() has the > fixup but Xen's version doesn't. Move the fixup to > flush_tlb_others(). > > AFAICS the only real effect is that, without this fix, Xen would > flush everything instead of just the one page on remote vCPUs in > when flush_tlb_page() was called. > > Cc: Rik van Riel <[email protected]> > Cc: Dave Hansen <[email protected]> > Cc: Nadav Amit <[email protected]> > Cc: Michal Hocko <[email protected]> > Cc: Sasha Levin <[email protected]> > Cc: Andrew Morton <[email protected]> > Cc: Boris Ostrovsky <[email protected]> > Cc: Juergen Gross <[email protected]> > Cc: Konrad Rzeszutek Wilk <[email protected]> > Fixes: e7b52ffd45a6 ("x86/flush_tlb: try flush_tlb_single one by one in > flush_tlb_range") > Signed-off-by: Andy Lutomirski <[email protected]> > --- > arch/x86/mm/tlb.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-)
Thanks, Andy. Reviewed-by: Boris Ostrovsky <[email protected]>

