Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1701543pxb; Thu, 4 Feb 2021 22:00:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJzWQvjAMefd4gtz3iHqa9huOuVVKBTMBaSQWQW+QdwNDVTplds08GQZDuEx0lzkImXAdic5 X-Received: by 2002:a05:6402:31ae:: with SMTP id dj14mr2031755edb.364.1612504842604; Thu, 04 Feb 2021 22:00:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612504842; cv=none; d=google.com; s=arc-20160816; b=UgluIeUEWACJRm3Vj2DyStlI7o47ErmYpuVqjLRyRsUyUeRowm1ZYG02qh2OYxcIDp HjFaG7BtXp82nu+EDOCE0yHBN5n0g0iY4SxRVg278QC7U3Ahv1BLCxV0+Uihsewkp9pa AhE00/9O3cpAEYRciB6XH2meiNJpxgdkKI1O7Ll/dYYECGqk9YArp2BigYLgJvjTs3oX H/CdW3KEwHWEMfcgE30/ovnTiWTEunbx6P/DnGmrN5u5kY/WGhbP2ysOfdVh84F4ODtN 59VxE+SkleKtIKSbQ+a+LU9siCLQpB/vu1Fl8qqFqjfYlAM7MpAbUJVC5G69OjjTxVpG yKZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=SZ0GQLJipF2hQIt0oYg/b3YND75QYohdSOPgCgGvmtI=; b=Hn/td5HoIEvWx18p06BYcXWeyBFOD/oI6skSf4pASdrK/1SKTvBZDBmzDcS56e7y8U EIdC+9SHjNe/8JbHEY4CDgl76nBoTNc7c+52o721MhO6Hfk4rsn2jzoAjc0USrtp2tql kJvu8vMREzCUCrscGu1gaPH5oPgiIYrizG7TRcCQyFusrysChX1yQpmWi+CBW39d1Nrv SpqU4ZrkYbkDJ5EyHrY/y5ofKAA+nz6px88VXOAilvQYc8qH8vUYttOY1WRr6D5DllAN Z2Ckm78l+5c9EfYT0Xilx7LvKatA44ARpoE2T5f11r+CvCaJ8kG9adWX4RPeFoYNC1hf FOlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=oPGsTQx7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r20si4553933ejx.492.2021.02.04.22.00.18; Thu, 04 Feb 2021 22:00:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=oPGsTQx7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230256AbhBEF7e (ORCPT + 99 others); Fri, 5 Feb 2021 00:59:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230075AbhBEF7b (ORCPT ); Fri, 5 Feb 2021 00:59:31 -0500 Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3136C06178B for ; Thu, 4 Feb 2021 21:58:50 -0800 (PST) Received: by mail-qk1-x72d.google.com with SMTP id k193so5879960qke.6 for ; Thu, 04 Feb 2021 21:58:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SZ0GQLJipF2hQIt0oYg/b3YND75QYohdSOPgCgGvmtI=; b=oPGsTQx7+FdG6LRGl1TD3o+RbriHfudMdPEUWdoVcGtiFVzJyADmDY4/qjjG1+UIcy wjKL99cqQfoIL+mWKhEojF7j3xy7b/FwNrgzFcnaC4VE2BI5tBDFbEYcfnximoQpd7Bo foetOy+pvkseCt44S1+fCOI+yg3iGoGzvmkUU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SZ0GQLJipF2hQIt0oYg/b3YND75QYohdSOPgCgGvmtI=; b=jiL+KGOOpfrGW1ltdFIbtHerFqvI4licC166/ZbkwWxecR5OEcpSc6wgpUc8p4d0Fn E8d2JFyJRJZe/viA+Mc2WYePWPtZK+0e5EZfVC2HPyLbH9ceTuu3KZe0aY9HCSIlUYNL I24Shi0qT1mtAHVvbbWPQYtgf443ISh1B+uylUQt1VKlxFEIclQuMRfaaJTrHIf70YTB Dxn5fmW6Y6FD1d+h/BfMgnjA1RFJOIYxpZe36D16BTLKRGCCXXwLftN0rwR6/IQ/RjtO 9pn9Y5lRLKgamNCDS8CFFZTwVXbsRffTnntMKgdBhvEGT9Q8PzU3dCRN5vSSvWAwNZHk Ya+w== X-Gm-Message-State: AOAM533Gy0bS4sBGcd6YAnKZWo9i2sP6vCm0qxXtECKyFtUuH00r+Uvg JOrMVe17Xwai1FWWKM0c1S4sAjsDEQSGGdUJQECPpQ== X-Received: by 2002:a37:73c3:: with SMTP id o186mr2728785qkc.194.1612504730031; Thu, 04 Feb 2021 21:58:50 -0800 (PST) MIME-Version: 1.0 References: <20210128060515.1732758-1-stevensd@google.com> In-Reply-To: From: David Stevens Date: Fri, 5 Feb 2021 14:58:38 +0900 Message-ID: Subject: Re: [PATCH v3 0/2] KVM: x86/mmu: Skip mmu_notifier changes when possible To: Paolo Bonzini Cc: Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, open list , Marc Zyngier , James Morse , Julien Thierry , Suzuki K Poulose , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, Huacai Chen , Aleksandar Markovic , linux-mips@vger.kernel.org, Paul Mackerras , kvm-ppc@vger.kernel.org, Christian Borntraeger , Janosch Frank , David Hildenbrand , Cornelia Huck , Claudio Imbrenda , David Stevens Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These patches might be responsible for some instability in one of our stress tests. I'll send an update once I figure out what's going on. Thanks, David On Thu, Jan 28, 2021 at 9:48 PM Paolo Bonzini wrote: > > On 28/01/21 07:05, David Stevens wrote: > > These patches reduce how often mmu_notifier updates block guest page > > faults. The primary benefit of this is the reduction in the likelihood > > of extreme latency when handling a page fault due to another thread > > having been preempted while modifying host virtual addresses. > > > > v2 -> v3: > > - Added patch to skip check for MMIO page faults > > - Style changes > > > > David Stevens (1): > > KVM: x86/mmu: Consider the hva in mmu_notifier retry > > > > Sean Christopherson (1): > > KVM: x86/mmu: Skip mmu_notifier check when handling MMIO page fault > > > > arch/powerpc/kvm/book3s_64_mmu_hv.c | 2 +- > > arch/powerpc/kvm/book3s_64_mmu_radix.c | 2 +- > > arch/x86/kvm/mmu/mmu.c | 16 ++++++++------ > > arch/x86/kvm/mmu/paging_tmpl.h | 7 ++++--- > > include/linux/kvm_host.h | 25 +++++++++++++++++++++- > > virt/kvm/kvm_main.c | 29 ++++++++++++++++++++++---- > > 6 files changed, 65 insertions(+), 16 deletions(-) > > > > Queued, thanks. > > Paolo >