Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2588945imm; Fri, 20 Jul 2018 01:03:46 -0700 (PDT) X-Google-Smtp-Source: AAOMgpehc2N/xO9xz+gt/hYMa4BIOf+cqTyVUOprrkgqOwPjD/reKHIdCfyQFRKMM6MZCgjLsmXy X-Received: by 2002:a17:902:9302:: with SMTP id bc2-v6mr1105986plb.280.1532073826263; Fri, 20 Jul 2018 01:03:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532073826; cv=none; d=google.com; s=arc-20160816; b=xqV0B1XAann7bmPXP2HwEV/z+68YV9EzkKYk+TZCWyRxkWXyIBO6Kk9A+IMCQHS7ww Bw8KBH2MLJfjjtm4btkd5UYUJPM9hZl0CkCXqYa5dwQmOktvMCVLEe9NoDWTqW85cEAs Agqq/tX+7i0x1R1MRwDPoiR1Taczg+s895CQNvNue8eOl+j2WkupGAKEKkFJ68m/ZxQ/ 3WndVWI/HKyOzK1DssJRLCasoCKeugjTmRZoG6VVDkvnbfFRzH3zcsU+IQ3staVCJCAa d2ue7X0KhiZeDgiAqiWQI1t2gKIKQLvplUk3cJXd686fByjC29IdT1HpdeFuMpkH5Ney oGaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from :arc-authentication-results; bh=gyK/WIMyQ+TsrWVeJQj2UTuE+j8KWaNZg0hdapCBXnw=; b=DdMOEGa1fdfr3cGELFV3qeIwhmo+24rz4lPyB73Mah0jgYOzaSBkx8VWClVziMyqfz Xm5miiFsPgwzR+544D8ZRTjz5T38BizZifCQ8V1mpVy/753bHjcZUMBtFweDhQzzSYKN sBNywKISzzME6KGj+j6rOd6WITG0jwRZ2kp0IcKmSW3ldyU5u+pPd/vlzpPBerFy2upv pP4xBCu4FGrQ+ayraQOD0XKsEq8+i1BxeCWLzBK+ov4enDUV4aHTEysnsklMEpGrXhHu +Fsh7bHoXz/EgGCe1zaGxgtTT9ba1/MjoRwdio9zEu8T2bdYTwDSICn7cK/4CieswVdi /Smw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o25-v6si1345434pfi.279.2018.07.20.01.03.31; Fri, 20 Jul 2018 01:03:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728142AbeGTItS (ORCPT + 99 others); Fri, 20 Jul 2018 04:49:18 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:37558 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727176AbeGTItS (ORCPT ); Fri, 20 Jul 2018 04:49:18 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0D983401EF2E; Fri, 20 Jul 2018 08:02:15 +0000 (UTC) Received: from vitty.brq.redhat.com.redhat.com (ovpn-204-189.brq.redhat.com [10.40.204.189]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 264207C52; Fri, 20 Jul 2018 08:02:11 +0000 (UTC) From: Vitaly Kuznetsov To: Andy Lutomirski Cc: Rik van Riel , Peter Zijlstra , Andy Lutomirski , LKML , X86 ML , Mike Galbraith , kernel-team , Ingo Molnar , Dave Hansen Subject: Re: [PATCH 4/7] x86,tlb: make lazy TLB mode lazier References: <20180716190337.26133-1-riel@surriel.com> <20180716190337.26133-5-riel@surriel.com> Date: Fri, 20 Jul 2018 10:02:10 +0200 In-Reply-To: (Andy Lutomirski's message of "Thu, 19 Jul 2018 09:45:47 -0700") Message-ID: <87muumtjwd.fsf@vitty.brq.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Fri, 20 Jul 2018 08:02:15 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Fri, 20 Jul 2018 08:02:15 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'vkuznets@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andy Lutomirski writes: > [I added PeterZ and Vitaly -- can you see any way in which this would > break something obscure? I don't.] Thanks for CCing me, I don't see how this can break things either. At first glance, however, I'm afraid we can add performance penalty to virtualized guests which don't use native_flush_tlb_others() (Hyper-V, KVM): we will be reloading CR3 without a need as we don't look at lazy mode in PV tlb flush functions. We can either check to switch_mm_irqs_off() that native_flush_tlb_others() is in use or teach PV tlb flush functions to look at lazy mode too. (Sorry if I'm missing something important here or if this was already discussed. I just became aware of this work) [...] -- Vitaly