Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp948937iob; Fri, 13 May 2022 17:25:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2+bRJEwTjxECNgisWCtgAnAXb3LNN9nyK0RMn1t00rvCVwUvL8Tx49sPPc8zecz1fvmO5 X-Received: by 2002:a05:600c:1d10:b0:394:737f:e36 with SMTP id l16-20020a05600c1d1000b00394737f0e36mr6755286wms.202.1652487954608; Fri, 13 May 2022 17:25:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652487954; cv=none; d=google.com; s=arc-20160816; b=Gojw1GsR3HxgUjpBw/2FJZs1cB2JVT6gW2SP8KbrJTlNU+qbwRFWbkhpLVzzsKnQYI i31eOp/GIXJDUK6421Wd0lyU+DldvGXzEXNTvyJeHTFaWbkWJT8kCokhbYmZCbEo3chR ePhPnnAbH9/tjFKYGBvGaMnSD11OFFrFYao2sWAlYXQ2fGU47x+3OUCszRCRrxZNAw9+ xZx2GSOitNVlDAHOrqdjezNghQhPY7kdYw6TTSgavnTrkdFl7A5dY/Sgh0WF+Z1vX801 ZczdzIPclS97dALWUxD6pW2MFnvWCu7pTfvDch7I1QK4I6FDINeOiPuSITi3N0nxN/+9 NxNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ZziBTXmRqnnjBhHuhXJdxWbOyffyqPRZmceazeKo90w=; b=Z8eKhAb32p4OZWX7J6xd/GYsowW/WQyZj8h9wZflJlF6kLbLVx8aGRcMaualmT1Ztg CEowD6Owigx/YzzUneTQLnxdAS/U/RqvFtZc3kJXgOzkyNQIN4vkKtRZPg92NaBpZ4Vy pZ+NYWa1ZL3V4tLyKA8EsD0JJt9uqn04W22ScPPpJC9uvyKyWOHl7H9opFE/g4VJJCHh ObIU83PYkn5p7j9T1m8gOzda7lYbDQ2ZwYSNBpwBowqzl2urIFc5z9RfFXOEGZa++mPT jCRugJ/jQI1pQhm6j4Dh/5YnizTqDLTANBNkQNwWdHuXMQVR79x8AOuz+ds4s2AVf4HL Y9Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=JQPjZMg6; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id r81-20020a1c4454000000b00394788a24ebsi3744786wma.47.2022.05.13.17.25.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 17:25:54 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=JQPjZMg6; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EBB913028E5; Fri, 13 May 2022 16:21:36 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383320AbiEMScY (ORCPT + 99 others); Fri, 13 May 2022 14:32:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383125AbiEMScW (ORCPT ); Fri, 13 May 2022 14:32:22 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7674F59B8A for ; Fri, 13 May 2022 11:32:21 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id t25so11261994ljd.6 for ; Fri, 13 May 2022 11:32:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZziBTXmRqnnjBhHuhXJdxWbOyffyqPRZmceazeKo90w=; b=JQPjZMg6WTdJ5IkgPmm2nrTHq/REs21h1opfEUiqioaskxK6ylnGBPeutd4Im9Pet8 IidW9WQ0B41kp4NgcaA8h2Pj7S6uKuKGIfbk1x3zUM2W1f5ZyJsPAim8jLCN3PA7iaPt IomTrGdLdosutEMG14ePfnjE79UNNfeaVyq9jTaTUwhYo/3ldjVDt+FtugCgmCYzdVxS TPk4FomP/AJ2GrtNnFRhLiRpYkMt5jjzNusMgizl/Ekcc57YGKKwseW4s6+ZD9fBmiUm 7F+sLPgvnukoNJeD2VyCksXF2bcbkOsTzbXYpxEJcijIMP54qTFAVzo20x7bHWnzYASN hlCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZziBTXmRqnnjBhHuhXJdxWbOyffyqPRZmceazeKo90w=; b=uF87y5zVAofu+sLsDcmfUZZPcFWl0XY3R9sPYEI0gBHdXdomasLMeH27gS4xG9C/UE n8CM0iuC7JNjRrQw/nSrxhLKOeemQaNE15zifr/nais7/4WaC+TJETFXt6pnlBhBlZc8 sQhhRUbC79YFLxZjYZ/FxKXCjdIu815d+5uVH4tr5zQbCCmFeCNMZN7ZnjiujTMsIT6M B4jPtrl2Y8cZmHrNVduU0gjvofGcyG6MTDwVKMO15g+qGl3q137AbkAUrcezzplztOZp gQ0b/zsPgFmTHw1uhevW2Yfm/yOVGNKzCDB9uofH0HaI1bt08aVVlNJg6sp6Ceh8Tv01 haPA== X-Gm-Message-State: AOAM531HAVew+sZ8dlDnBCjlqqnZBi+ynC4cUOTJUcXu7EBCqfefRF/U 4YDrSpNQ3DHAA0mYMORGs+XnjmhiEQ2Vnp6bK4oOdQ== X-Received: by 2002:a2e:9e54:0:b0:250:d6c8:c2a6 with SMTP id g20-20020a2e9e54000000b00250d6c8c2a6mr3977716ljk.16.1652466739597; Fri, 13 May 2022 11:32:19 -0700 (PDT) MIME-Version: 1.0 References: <20220503150735.32723-1-jiangshanlai@gmail.com> In-Reply-To: From: David Matlack Date: Fri, 13 May 2022 11:31:53 -0700 Message-ID: Subject: Re: [PATCH V2 0/7] KVM: X86/MMU: Use one-off special shadow page for special roots To: Lai Jiangshan Cc: LKML , "open list:KERNEL VIRTUAL MACHINE FOR MIPS (KVM/mips)" , Paolo Bonzini , Sean Christopherson , Lai Jiangshan Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no 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 Fri, May 13, 2022 at 1:22 AM Lai Jiangshan wrote: > > On Tue, May 3, 2022 at 11:06 PM Lai Jiangshan wrote: > > > > From: Lai Jiangshan > > > > Current code uses mmu->pae_root, mmu->pml4_root, and mmu->pml5_root to > > setup special roots. The initialization code is complex and the roots > > are not associated with struct kvm_mmu_page which causes the code more > > complex. > > > > So add new special shadow pages to simplify it. FYI I plan to review this after I get a v5 Eager Page Splitting out (today hopefully). But from looking at it so far, it looks like a great cleanup! > > > > Ping