Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp644968rwb; Thu, 8 Dec 2022 00:43:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf5hSWICm9mCP8v4A1DMOV42epoGzeXMJ9KGZeqCNMJRo0g+kesPvFJdp8bfQPG1PIShNa8w X-Received: by 2002:a17:907:c242:b0:7c0:b44d:92b2 with SMTP id tj2-20020a170907c24200b007c0b44d92b2mr24288030ejc.754.1670488984250; Thu, 08 Dec 2022 00:43:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670488984; cv=none; d=google.com; s=arc-20160816; b=NkVq2Sw0a2wglblWZ98Fh/29TVHRb5HKV1bL5FJEm+4QWT3+BzUG6J0QfBOCrkoxPR tp3hIgypc6W1NrWR9NZgYe/A9zbOAyE1R4p0w9un9KGeLmhhAe6wVctVGgo/14Tof7DT /cjSVgHlDSTgS7evZuVwR4gSXr3S7NAB9YeCcvvQQXvRdakUy17DzbL2JjbqE70+60i0 cnXfwTWkiDhPqZdQAWR3W758AqoiqD2CI74Mzd/xv6BcxQpN1Gd2lY4Ui4+iBoq/E+XH Kb/RCjpcYcm1QnRXPwk+DFqqFqGCmS1owIJTRs/Nb5P80RXTqB+t/b/baZevvtRfgmY/ kmlQ== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=JiCALZbJ3mX2GoBz+zUvktr9QyBmricb44rUYUdep3s=; b=EAlJyRTSl6bE8/Y0L+zeQPvxcfC3ovX3ByfOu35MmK/MXSFjRq3Ro3OYiYWdiqT+B/ MM5Yic8J7P0DS4Q6z8jgroAxEsiBaKZGubZa9COHljn9y6iLqgP5SDhJknJIr7ZrTT1x qinNqiYMk6EbAkp4WC1g+2dsUh6w85+eF6K0vP6rK+BpLlS4twcwc1w8kCzNF9aHBEit 2byFiuI8cbk0+ldLiNNwHz668r7D6UsQh2iuyBNj6WH//8nXhfi9mShmLOlpdmgkPaY9 59ufT+UczTHDzd40a18dN62rvGrLO3QlKhxvaNs4WAQ30ndFuzW18dQMsD+xbOsXXDHd Gq3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kyIWeA5d; 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 hs21-20020a1709073e9500b0073866c0672asi7198895ejc.73.2022.12.08.00.42.46; Thu, 08 Dec 2022 00:43:04 -0800 (PST) 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=kyIWeA5d; 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 S229576AbiLHIh1 (ORCPT + 72 others); Thu, 8 Dec 2022 03:37:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229786AbiLHIhT (ORCPT ); Thu, 8 Dec 2022 03:37:19 -0500 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3078761BB1; Thu, 8 Dec 2022 00:37:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670488637; x=1702024637; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=mp8wMDnH+XvlgDi27JmuMhnOonriOi5aQPBcwc8cBlo=; b=kyIWeA5d58X7lbTcAwJtGqHsBLOoZv9LE5uk8KxHQNSnwxkMX0mxh/ff Yxgbcg5kkP7sauuW6C+MHGKS324V6YPNcTePd04X2r+n320xfaQOQn5RW tNewBKzhh13nIlRV4d1LhnI5Z41ATrWqcFS67qTAlWdSPM4R9m0wTG/hZ xrqumd5GzgH8GLnql7asl63xHU0OTqXUOXoSasRuO0HXNpEeexm0HzZsS xQHz8gMCF1EgHwabZOk4avgZgE8+H6kPC+vTBRFKmjOsbcPsXsOVZbEF5 LZQtbn4FUqBCN1+vdorKtagDwRx4+MLHyeGNZIrtgms3h9dpBUKAQ42kI g==; X-IronPort-AV: E=McAfee;i="6500,9779,10554"; a="296808118" X-IronPort-AV: E=Sophos;i="5.96,227,1665471600"; d="scan'208";a="296808118" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2022 00:37:16 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10554"; a="710381311" X-IronPort-AV: E=Sophos;i="5.96,227,1665471600"; d="scan'208";a="710381311" Received: from xiaoyaol-hp-g830.ccr.corp.intel.com (HELO [10.249.174.177]) ([10.249.174.177]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2022 00:37:05 -0800 Message-ID: Date: Thu, 8 Dec 2022 16:37:03 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.5.1 Subject: Re: [PATCH v10 3/9] KVM: Extend the memslot to support fd-based private memory Content-Language: en-US To: Chao Peng , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, linux-doc@vger.kernel.org, qemu-devel@nongnu.org Cc: Paolo Bonzini , Jonathan Corbet , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Arnd Bergmann , Naoya Horiguchi , Miaohe Lin , x86@kernel.org, "H . Peter Anvin" , Hugh Dickins , Jeff Layton , "J . Bruce Fields" , Andrew Morton , Shuah Khan , Mike Rapoport , Steven Price , "Maciej S . Szmigiero" , Vlastimil Babka , Vishal Annapurve , Yu Zhang , "Kirill A . Shutemov" , luto@kernel.org, jun.nakajima@intel.com, dave.hansen@intel.com, ak@linux.intel.com, david@redhat.com, aarcange@redhat.com, ddutile@redhat.com, dhildenb@redhat.com, Quentin Perret , tabba@google.com, Michael Roth , mhocko@suse.com, wei.w.wang@intel.com References: <20221202061347.1070246-1-chao.p.peng@linux.intel.com> <20221202061347.1070246-4-chao.p.peng@linux.intel.com> From: Xiaoyao Li In-Reply-To: <20221202061347.1070246-4-chao.p.peng@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HK_RANDOM_ENVFROM, HK_RANDOM_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_NONE 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 12/2/2022 2:13 PM, Chao Peng wrote: .. > Together with the change, a new config HAVE_KVM_RESTRICTED_MEM is added > and right now it is selected on X86_64 only. > From the patch implementation, I have no idea why HAVE_KVM_RESTRICTED_MEM is needed.