Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423912AbdDUSr2 (ORCPT ); Fri, 21 Apr 2017 14:47:28 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:51505 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423870AbdDUSrY (ORCPT ); Fri, 21 Apr 2017 14:47:24 -0400 Subject: Re: [PATCH v2 3/3] x86/mm: Fix flush_tlb_page() on Xen To: Andy Lutomirski , x86@kernel.org References: <62bc178865793458e1df07dfd62c765343dc2c85.1492798187.git.luto@kernel.org> Cc: linux-kernel@vger.kernel.org, Borislav Petkov , Rik van Riel , Dave Hansen , Nadav Amit , Michal Hocko , Sasha Levin , Andrew Morton , Juergen Gross , Konrad Rzeszutek Wilk From: Boris Ostrovsky Message-ID: <382b3edb-824a-441f-7fce-f100ee348604@oracle.com> Date: Fri, 21 Apr 2017 14:46:32 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <62bc178865793458e1df07dfd62c765343dc2c85.1492798187.git.luto@kernel.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Source-IP: userv0022.oracle.com [156.151.31.74] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1121 Lines: 28 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 > Cc: Dave Hansen > Cc: Nadav Amit > Cc: Michal Hocko > Cc: Sasha Levin > Cc: Andrew Morton > Cc: Boris Ostrovsky > Cc: Juergen Gross > Cc: Konrad Rzeszutek Wilk > Fixes: e7b52ffd45a6 ("x86/flush_tlb: try flush_tlb_single one by one in flush_tlb_range") > Signed-off-by: Andy Lutomirski > --- > arch/x86/mm/tlb.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) Thanks, Andy. Reviewed-by: Boris Ostrovsky