Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1731197rwi; Thu, 3 Nov 2022 08:28:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM48K0qWEuEI+7Hb4YjlEM9EUv6UD4HC6dmkmCNzs+nBAd+oSvmLDYDnx8srAKaY2zOu6/FK X-Received: by 2002:a17:907:e93:b0:7ad:923a:5908 with SMTP id ho19-20020a1709070e9300b007ad923a5908mr30199227ejc.396.1667489318119; Thu, 03 Nov 2022 08:28:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667489318; cv=none; d=google.com; s=arc-20160816; b=FlnOT6WnHJLJaLpIE4l1dn6JcEcDqJez5E1RBqToVGMbd7pP0MfbKYkHGoUG+HNT0N fGEPzaFCL32Q+NkZ8Fat5Qi/EZrylERHgQAGC00YI14iaPgKvnI2qVNQ4l4+8p4GEfrV elBHauaWqJVOhvRIBxrOkHxTGYHzLBykreK9uay1F78qZhi8tBEMDD0PgOIpbQJF5psu NgsX5XthgHRk/G5nXkeRqj2Ny21m+4c8aTo7EZ0KY9UhgL5GH6Y0/CguA+n27CR1V7dv SMVRPQXqxWwvTnhI6z3UiIjPWU+YyJvBxZ/ftzVrOy/6Qwpdldfw0IUywmRCP/HkiGBt 9VgA== 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:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=IIuosJEuTIxTU4vgxtOOKlEeHtCDZ/WY4hzhdvsVb58=; b=XfDupqNDHP2DPiDCpg9zOcDt+oSku0EeqYtOoXhTSLVfUTrzUB7KlZ+fxjkxQpBAAZ 3KLNplgWlRHUgPGnA49vNny9jQQg4QA3ilI9xUt5aOMTsDe18EEd44HiUEspHeN8CEYR EhkIm2R2B2oWrlEgVYDUeZD5kFrVtbi0CGWNP7K2Otm/ngtGYEK2bv0HIluOCV+89dc7 4/Lb7S35rmgdLo2FErdtJYn4r/Uwtgf4AsM80C9IAZrR+mk1KW/hmqeVs2JQCJRwLuRF 580yo3BcivfVgCS6ZIvYR+wwZPMeY/OgzIa3USsNT2bZNP0kKXYxPsO7AyLxouKGID8Z cfzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Ba26o1h0; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v18-20020a1709061dd200b0077ef3eeca17si1222064ejh.155.2022.11.03.08.28.15; Thu, 03 Nov 2022 08:28:38 -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=@gmail.com header.s=20210112 header.b=Ba26o1h0; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231496AbiKCO1v (ORCPT + 97 others); Thu, 3 Nov 2022 10:27:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231294AbiKCO1l (ORCPT ); Thu, 3 Nov 2022 10:27:41 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF71F1705F; Thu, 3 Nov 2022 07:27:40 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id y13so1753543pfp.7; Thu, 03 Nov 2022 07:27:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=IIuosJEuTIxTU4vgxtOOKlEeHtCDZ/WY4hzhdvsVb58=; b=Ba26o1h0RwuZQrcVdQXGiWeePY+jTdQIWBBQKuQzaN7V42GxlZj2i1fdP1awb5nRYi I+XlmteiHLFtd+YYOFakh8deA+ZTwe2sijmvTewpGEHDXDgiBdwKoZO8LVgkGNlkjUQg ejex1GdrLJHlvKCDujXrlOUJYkLPMXbUlQ9kTKFZY3xU2PYafUzIzitV6KUUNFvgkb99 rcUp7UGzwyyAO2CAjupw4+6fZeuJTIOT2pe6EX1nDLTtAA2nMBUtjeOy7FAtVDtHUPbk AJlpy/v/2QXPCaDVK9fBaIvova8EoGRWFJspfPqLri0gnzTKjruMX+Y7mYIzhiWKankj 9oMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IIuosJEuTIxTU4vgxtOOKlEeHtCDZ/WY4hzhdvsVb58=; b=2K0yo5aI9rGnVi28nYdWHN+5AdYUv5LSH1kFHLj1IJTM5tzE3V93YoU7i/FD9VDqvr p2+iDiZ4LazMF2n30J+xEbceCKBkWtxQxquNF2A6QRYXyicDEvyxfT/L88Y5yOfmt/Nx CToBwJ90pU7euETfIzP1AUh4LqIvsJP+GI/zKFJ/YGPtvVB+9sV80esVCaAfe7HSWxMP jhuAl84etXoL2jZMuHdXADWac0wPEXhSzpcAhb25UUqnH6hvw88hn+byTaZno2KjmfnQ YMGGSjmf6NiXCwxNCHtgmrq4dDp3P6sLxqOiE9mfG4EmZBz6odjC3cPl88IlrVeWrWDm auPQ== X-Gm-Message-State: ACrzQf3alWIEHmyN13Q9o6zaTgUlsIVbWtaafcgkwFryX93AH482DqSz 5udLdxgK/WEriVbzIW3X6S4= X-Received: by 2002:a63:f964:0:b0:46f:e243:fd8e with SMTP id q36-20020a63f964000000b0046fe243fd8emr13936135pgk.207.1667485660470; Thu, 03 Nov 2022 07:27:40 -0700 (PDT) Received: from ?IPV6:2404:f801:0:5:8000::75b? ([2404:f801:9000:18:efec::75b]) by smtp.gmail.com with ESMTPSA id n184-20020a6227c1000000b0056b9df2a15esm825190pfn.62.2022.11.03.07.27.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Nov 2022 07:27:39 -0700 (PDT) Message-ID: Date: Thu, 3 Nov 2022 22:27:28 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH 07/12] Drivers: hv: vmbus: Remove second mapping of VMBus monitor pages Content-Language: en-US To: Michael Kelley , hpa@zytor.com, kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, luto@kernel.org, peterz@infradead.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, lpieralisi@kernel.org, robh@kernel.org, kw@linux.com, bhelgaas@google.com, arnd@arndb.de, hch@infradead.org, m.szyprowski@samsung.com, robin.murphy@arm.com, thomas.lendacky@amd.com, brijesh.singh@amd.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, Tianyu.Lan@microsoft.com, kirill.shutemov@linux.intel.com, sathyanarayanan.kuppuswamy@linux.intel.com, ak@linux.intel.com, isaku.yamahata@intel.com, dan.j.williams@intel.com, jane.chu@oracle.com, seanjc@google.com, tony.luck@intel.com, x86@kernel.org, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, netdev@vger.kernel.org, linux-pci@vger.kernel.org, linux-arch@vger.kernel.org, iommu@lists.linux.dev References: <1666288635-72591-1-git-send-email-mikelley@microsoft.com> <1666288635-72591-8-git-send-email-mikelley@microsoft.com> From: Tianyu Lan In-Reply-To: <1666288635-72591-8-git-send-email-mikelley@microsoft.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 10/21/2022 1:57 AM, Michael Kelley wrote: > With changes to how Hyper-V guest VMs flip memory between private > (encrypted) and shared (decrypted), creating a second kernel virtual > mapping for shared memory is no longer necessary. Everything needed > for the transition to shared is handled by set_memory_decrypted(). > > As such, remove the code to create and manage the second > mapping for VMBus monitor pages. Because set_memory_decrypted() > and set_memory_encrypted() are no-ops in normal VMs, it's > not even necessary to test for being in a Confidential VM > (a.k.a., "Isolation VM"). > > Signed-off-by: Michael Kelley Reviewed-by: Tianyu Lan