Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5525817imu; Tue, 13 Nov 2018 07:53:34 -0800 (PST) X-Google-Smtp-Source: AJdET5dPxhIVE41UT45w8zcSUqPVULXituJzPaVqJKjSs2irBU00+b5aBeDxQzmPAsYFp8u6Ewkn X-Received: by 2002:a63:5f41:: with SMTP id t62mr5251916pgb.76.1542124414351; Tue, 13 Nov 2018 07:53:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542124414; cv=none; d=google.com; s=arc-20160816; b=fMo4zOwdvweTbXKloR+VpOUGxAsiY4nGx7B9gz5zYtPYv52tW9dU5LtEmtrxCwLAA/ c0DcdsYUUwyKw0dzjvwx7lQyAQ3bLtbGsD42VNdlbSyzdSoB3d55fPkYYpv2LU6GFihc E9E4ZE+npItDZBNibLr15LlvftOBmt+lHCRXK25x/K97oGFNiS9qpPL3m0io3eYPZ2PL s9ZdSgCUfiNDJMxl55tgjmxuwad99m67uIoMKb8sLyHsI30H4eQIYRs/RbjL+zutzao/ XPZZ8AK0QmaOKEmrgAyYzzg6J/wVdWlK8eXG2yMwJzOJsURh8yQTNtUccP9pgTTfdAET G4qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=lIFJYXCCYbIE9QdI6j4zxGOHMCkI5//En2xA/fsGVfE=; b=yo5onjcZHZl7zI6NeLhtGknmmZr0DaTLlLLezy2WiyUiSX5CsoyRPUwf6vsitBqJK8 GiId0zqZiFLlxMFCgbh1UrLr1BvLQrB3A1Wa4uBDYz1PJkXB7FUmYU0bWstXS3JCQ01R jeLOe5Va0/Rr0cJSns4y2PDUSFfxqLpo3uZ1CIwr/iZFxT3fDdTXbrR3SQD2MXj3OuM8 A/lF3CM9xARZeZW4d55S8y284Au5YuDBEli5t0/8vhOJ3SSGBodrfREQB+xmbff6Q/hm UCTQrH5hSgmy4J1byv/lXRVaVQFMZ8uN4iRZyzDhqIYS8u04T0BdqnXkC4FdXqFbf4YH aoEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=HfCfIWBH; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n6-v6si20945281pla.245.2018.11.13.07.53.08; Tue, 13 Nov 2018 07:53:34 -0800 (PST) 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; dkim=pass header.i=@google.com header.s=20161025 header.b=HfCfIWBH; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387998AbeKNBtg (ORCPT + 99 others); Tue, 13 Nov 2018 20:49:36 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:41533 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731721AbeKNBtg (ORCPT ); Tue, 13 Nov 2018 20:49:36 -0500 Received: by mail-pg1-f195.google.com with SMTP id 70so5868585pgh.8 for ; Tue, 13 Nov 2018 07:50:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lIFJYXCCYbIE9QdI6j4zxGOHMCkI5//En2xA/fsGVfE=; b=HfCfIWBHVP9ZHgf7dtz+iirn8OFYl64MoTUn9FR3y1ATIY6kCxGOt09lWk3h1dXVme FOL0CwR/Q2Gh2gX4hVG5aC/kb0R/SgXP1Y78e0HPF+SFKfOLj5VsetB5BrpIMjVJqH// f1FJ01DJdtlZCO/gGd1r72Juv+uhl/y+ewo7+S2txm1Ric59px3GXc0aFODxpo2D3bqs v0J53lYV9RMfZ/ZFryOiQ9bvAah6f9yjc3qXx9/pf/gXOVFXqy+HVcsDZPKXNoHuCBoD mjj7jQyFrO7YTnOlsDNQWal+soLFt5746hoKha/Uz1ww9WuHBC6rd3Wred6lIGNCbJIC G1cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lIFJYXCCYbIE9QdI6j4zxGOHMCkI5//En2xA/fsGVfE=; b=S3qSUfNJQoOruSuOhAJB0F2vZBfsfD2wz1Qjw4oabE0o06F7C+zaJ4nCvpzQrOuvGW kBX4xWp2g02Xl76nLe+WejtllhwyZPfp4Jh5id20Xub91psB7+6JcdVAaee3DQGPjVO6 GrbcNc2Oc4U1rSa3h7z6786aBxcBFAnTcMd2n/UplwiYau6EL0SvCZW9NWZCZ8Eh4xH8 xlROkX4oyOsv4n82EeMlazqJ+y3UWaZ2YNqIZsvmJKGTlhBuchIBI1BYxruC4DV2Owd3 87SG3LH0qHLNAWEq9QEgNoe3i33I4a32Hihqjj+SZp3LrksUW5Ir7V4OddLgDJNH8sDc 5mUA== X-Gm-Message-State: AGRZ1gKChjXl2zbtnLp8aaPBqpWyQZjXcQxS4tm/iQpJNjA/Mp1c02IS QRNCbi8L9I4bybQ4f2x5u8hO/w== X-Received: by 2002:a62:4587:: with SMTP id n7mr5624902pfi.118.1542124256758; Tue, 13 Nov 2018 07:50:56 -0800 (PST) Received: from gnomeregan.cam.corp.google.com ([2620:15c:6:14:ad22:1cbb:d8fa:7d55]) by smtp.gmail.com with ESMTPSA id k75-v6sm55824011pfb.119.2018.11.13.07.50.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Nov 2018 07:50:56 -0800 (PST) Date: Tue, 13 Nov 2018 10:50:51 -0500 From: Barret Rhoden To: David Hildenbrand Cc: Dan Williams , Dave Jiang , Ross Zwisler , Vishal Verma , Paolo Bonzini , Radim =?UTF-8?B?S3LEjW3DocWZ?= , Thomas Gleixner , Ingo Molnar , Borislav Petkov , linux-nvdimm@lists.01.org, linux-kernel@vger.kernel.org, "H. Peter Anvin" , x86@kernel.org, kvm@vger.kernel.org, yu.c.zhang@intel.com, yi.z.zhang@intel.com Subject: Re: [PATCH 2/2] kvm: Use huge pages for DAX-backed files Message-ID: <20181113105051.2ffaf468@gnomeregan.cam.corp.google.com> In-Reply-To: <043a592d-6592-3053-15a0-68cc54a26deb@redhat.com> References: <20181109203921.178363-1-brho@google.com> <20181109203921.178363-3-brho@google.com> <043a592d-6592-3053-15a0-68cc54a26deb@redhat.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-11-13 at 10:36 David Hildenbrand wrote: > > Note that KVM already faulted in the page (or huge page) in the host's > > page table, and we hold the KVM mmu spinlock (grabbed before checking > > the mmu seq). > > I wonder if the KVM mmu spinlock is enough for walking (not KVM > exclusive) host page tables. Can you elaborate? I'll update the commit message with the info from Paolo's email (about kvm_mmu_notifier_invalidate_range_end()). Thanks, Barret