Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp752639pxp; Wed, 16 Mar 2022 16:16:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQ3rV5il/bs2t/y9GBOJ+hnWCCdmJOj1QV/xpO9+XZjW49AylDgA7BJXgApHsucfMPjXoM X-Received: by 2002:a05:6402:5304:b0:413:8a0c:c54a with SMTP id eo4-20020a056402530400b004138a0cc54amr1702264edb.172.1647472575395; Wed, 16 Mar 2022 16:16:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647472575; cv=none; d=google.com; s=arc-20160816; b=nuOIq2Vme4w4mYQqHNLywovXQMvL8vY8gHMX2Z0BPwwuzzlAPDHjpJZ0awuiV/J/xr CQchyd4RtigyY0MlDi1fi2Kd4jxa0icJ5rED97asXRelmwuGe5K2bbg8HoPkZijmmcKS oLsxutch0lenrnvEcUleI7Q5g1QYbZ1PRr805PtSzhXJFgvCU+Jv73jjxfF/JGbhRtC6 fmCh96ZpK67EJ/Eo/5KpeXwlJOaibg0n8RA9gio/BQ4bQJgad+41BPizNwU+t3uTU6Kq Z9T0QIPY/4B6/vK04uY7ZZ3upkc3PMhPXBjort/6BUW2XXxuZbTQkKMqUMQAGFVNkmrj XzuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=Y8F+0nbykq1CcPx/uHLXi0NRCLmTsLDvPQLKz+Svl38=; b=Y9Kl04HcDaVn4CIdrvAKYCSz1HSq3owEz8FHvzUv7r6NVSruez04Ex/XbkYSYtDtoQ /XR7vhRQROHdpyl+YbGUpQ7kel/mZlTCSI+zWKdmKBj7+41lmqSwdyOvNaJGn3S/FVAp 74ygHsGwP8XDVSp5HJba6BmOl9sY98vcfx9W+RvkQrqna26KIEozBVUQWz7otsT/6DIO fx5krqjf0hPZmhpQ8LMdbZfUoDlOpIo9nlRd1H36OReIdFUDDKobeNi0xCNYiIC9YivB ZFT3lnDk47trlNuyubOQ2Db5nn98jgOGlrZ0YpaV2vHI5pvVJincISm9E36BoqZR9fO/ /Q9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dKNjrhVL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v14-20020a50a44e000000b00418c2b5bd8asi348694edb.108.2022.03.16.16.15.38; Wed, 16 Mar 2022 16:16:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dKNjrhVL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236461AbiCNPWQ (ORCPT + 99 others); Mon, 14 Mar 2022 11:22:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232620AbiCNPWP (ORCPT ); Mon, 14 Mar 2022 11:22:15 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A2EB13F66 for ; Mon, 14 Mar 2022 08:21:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647271265; x=1678807265; h=message-id:date:mime-version:to:cc:references:from: subject:in-reply-to:content-transfer-encoding; bh=U3CvAktVdU1usYTq7NAeaK3m9HJMxau0P6laS9k8Lps=; b=dKNjrhVL0AP5WqCM1phAFbKQOGCBqdMrhZup7XiTXr/Q7REZqw4EeseU zRylSYgWlRNUbn1neXaW3WOKDu8jvJFFpC1XQY17evKblf6YcsqxWZ+U6 dLOB4WOC9pfdFqXg1cXVn4cGSCF+WXAu5+hiM8xZjSq35jIurXl7tE7LK 8pPT4IrwdwYyuC6qBLmM5Mz2rhvVWBGkjR2KBnBuetHSPDNTD3mjHxtj+ iu3NVVHfr2zWvzqSNgF6vRrY8hfqCvt0i8lzWUXONAgJo8AcLZpaN4vD7 29+M4HfJcr6g4R8CQbXrwglotsqXQTXDXUyn/RUIZ3y4mtDGlKpb2rBPp g==; X-IronPort-AV: E=McAfee;i="6200,9189,10285"; a="236003299" X-IronPort-AV: E=Sophos;i="5.90,181,1643702400"; d="scan'208";a="236003299" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Mar 2022 08:21:04 -0700 X-IronPort-AV: E=Sophos;i="5.90,181,1643702400"; d="scan'208";a="515467811" Received: from zborja-mobl1.amr.corp.intel.com (HELO [10.212.239.199]) ([10.212.239.199]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Mar 2022 08:21:04 -0700 Message-ID: <6b63d2ad-9b21-3fd6-37b4-31d7ad804c30@intel.com> Date: Mon, 14 Mar 2022 08:20:57 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Content-Language: en-US To: Oscar Salvador , "Huang, Ying" Cc: Andrew Morton , Dave Hansen , Abhishek Goel , Baolin Wang , linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20220310120749.23077-1-osalvador@suse.de> <87mthxb514.fsf@yhuang6-desk2.ccr.corp.intel.com> <87czip73b4.fsf@yhuang6-desk2.ccr.corp.intel.com> From: Dave Hansen Subject: Re: [PATCH v2] mm: Only re-generate demotion targets when a numa node changes its N_CPU state In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/14/22 08:13, Oscar Salvador wrote: > On Mon, Mar 14, 2022 at 09:03:59AM +0800, Huang, Ying wrote: >> Oscar Salvador writes: >> On host machine, PMEM is always exposed via memory hotplug. But later >> on, we found that for guest system it's possible for PMEM to be exposed >> as normal memory. > Could you please elaborate on that? How is it done? I would love to hear the > details. Qemu, for instance, has a "mem-path" argument. It's typically used for using hugetlbfs as guest memory. But, there's nothing stopping you from pointing it to a DAX device or a file on a DAX filesystem that's backed by pmem.