Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp292217pxj; Wed, 23 Jun 2021 22:31:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmSNlawA1HCJcmUhY+ajHGGt+1pS8a/JO6q/X1Lds/moJaYgtvGVkYcK8o0WqfanxSCJhN X-Received: by 2002:a17:907:2bd1:: with SMTP id gv17mr3458823ejc.15.1624512701546; Wed, 23 Jun 2021 22:31:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624512701; cv=none; d=google.com; s=arc-20160816; b=x45RXa7E9HbiiiUMNfwvof0X7Wnf0rQkfLjObll/WdQwVmT8erARNPhz4eupljuUjh eAJH7Dr9lYXZpx4mBK64/CunDb3L2GzDQj7bZ6TgR3J9bZ9N0xqCqST5ySarZ81v3keS Lho/vHEGoW7bnwrkmu+OjlEKo16Ha2Xgju1ETiuI52pSBdXs647WN7R+MKzdKDQmFq0F z4LnyQTNA74Gd17pCrdyZrFuUAl4XB19I9Ft68sHowipxFDzNjQs3dPJ/rb7BXau5CrU dQ8Zz0MF5fINcr1t4lqwnixszyCfGw7by0VQ981XjyqgPhFBueJDZrud7/q71fffNGfl PktA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=1HbIlu9ApD4QrYuyWbUFYAJHxJk4ZQ0KwdhAyPWULCY=; b=edjrB6NblLKG3kS36bL9I2VTLxobnKWF/l/0gsLLU6ZVWTX0FqknV9flefAW51NBLH gRFado7/gKvKQDzPJsfmIdLdGTSjAyHv1snT74WQ7gi5JA1Qlmu/4bsx/zUn0EvT9Cz5 GJp1Sn7UE7+CaXCX/PAmIvMxAoTtlREeo5GDMprpTGMpC1bH+VtdtJANf3I+Y5SRqQsE xm19Fz6hmLFb5gsJ9EVNl/gJ3Ngf4x4YwxKyX+VonnI+lPeHsLG7ZeM6mMLmZiBpZQI9 uPYg4ot++AgaubXOrkt3UfMuxpDLDdkDFF6po5HFRnCFrakdDeRdbBBr858G6DmDIyc2 gkPA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h21si1822564ejl.315.2021.06.23.22.31.12; Wed, 23 Jun 2021 22:31:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230229AbhFXFdM (ORCPT + 99 others); Thu, 24 Jun 2021 01:33:12 -0400 Received: from verein.lst.de ([213.95.11.211]:53053 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230093AbhFXFdM (ORCPT ); Thu, 24 Jun 2021 01:33:12 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 244BF68AFE; Thu, 24 Jun 2021 07:30:49 +0200 (CEST) Date: Thu, 24 Jun 2021 07:30:48 +0200 From: Christoph Hellwig To: Felix Kuehling Cc: Theodore Ts'o , Alex Sierra , akpm@linux-foundation.org, linux-mm@kvack.org, rcampbell@nvidia.com, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, hch@lst.de, jgg@nvidia.com, jglisse@redhat.com Subject: Re: [PATCH v3 0/8] Support DEVICE_GENERIC memory in migrate_vma_* Message-ID: <20210624053048.GB25004@lst.de> References: <20210617151705.15367-1-alex.sierra@amd.com> <905418d1-9099-0ea8-a6e6-84cc8ef3d0b0@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <905418d1-9099-0ea8-a6e6-84cc8ef3d0b0@amd.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Jun 23, 2021 at 05:49:55PM -0400, Felix Kuehling wrote: > For the reference counting changes we could use the dax driver with hmem > and use efi_fake_mem on the kernel command line to create some > DEVICE_GENERIC pages. I'm open to suggestions for good user mode tests to > exercise dax functionality on this type of memory. > > For the migration helper changes we could modify or parametrize > lib/hmm_test.c to create DEVICE_GENERIC pages instead of DEVICE_PRIVATE. > Then run tools/testing/selftests/vm/hmm-tests.c. We'll also need a real in-tree user of the enhanced DEVICE_GENERIC memory. So while the refcounting cleanups early in the series are something I'd really like to see upstream as soon as everything is sorted out, the actual bits that can't only be used by your updated driver should wait for that.