Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp955191iob; Fri, 13 May 2022 17:36:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3Ev4FNRHosY7xcQpkC1mSpYChIzpcbFR1O146ZwOsb8CPubmMtqig8IPEQQAY7ozOvdDH X-Received: by 2002:adf:fd4a:0:b0:20a:cee3:5abf with SMTP id h10-20020adffd4a000000b0020acee35abfmr5885570wrs.522.1652488615211; Fri, 13 May 2022 17:36:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652488615; cv=none; d=google.com; s=arc-20160816; b=fuSpvmHFI5RjyDe6bUpBafXghQYc3glXQbVvFDFN67KvCXwWu71IM7ZXw1eUx4WtHy jKS5VERvGURlCFFZi3lTN835ek/7JdVWfDavZMKWxp9kTUvXal7WsgbGN9SdXg6Qz3YJ jkDH+R98xehqyxxGJ/qKZbgIkaIYu+gBfcGD2q3+HBHFGWdwHW9xsDBenZHlzL77lLN8 K2LjZkW3gPva3XxE+I3U5pv+dCJYTqp7ELP/fLJIHuTktlBb5R+5nPZluioirOFBIa8R DCYBPxUtFol2XoJjbLcaDkYB4fvzx6yvAgB6CT4PMvuL1wKR3N2nxfxkL9NiXiHu4rqo 2abw== 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=/XAQKyGTIf3nEwzzm4MjG5cieNFIPfuDPs4NWHUGplM=; b=GV13FxcKv9Q2iAAuDI3UiO4bAc8qZBhRC9n0jatMsRjuGvFodNRjCcxkBKxtvrKLcj 0/6v1rbL58wVVx2291WgfQ8eoJd+TgJ+LvxZB+CVxb9LOHl3AcmOUfeFCtUtYzvqoY5u NfQ9nBm2nXlGYYaRaBUt644h1wAczyT3Dwe1TvTApz51RFWUJ24rdxC8HCdWtIRT3tyq kG7AsqPQNHjDA+Gb2YXmg5coDfQz6yZvOFL67dzz448DQOe1W0ghrGY2xit9R0liK/hv ujPJ70PifOj7XrYjQTOEJ1bxmTMDsTdUKHa4XfulJdBX5r26miAm33yRf+9D9clrKls9 p1fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=L8+p4daB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h62-20020a1c2141000000b00394558052acsi3556947wmh.73.2022.05.13.17.36.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 17:36:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=L8+p4daB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E682533B27E; Fri, 13 May 2022 16:27:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377978AbiEMIWq (ORCPT + 99 others); Fri, 13 May 2022 04:22:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243538AbiEMIWk (ORCPT ); Fri, 13 May 2022 04:22:40 -0400 Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0431725C2B7; Fri, 13 May 2022 01:22:39 -0700 (PDT) Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-2fb965b34easo82774427b3.1; Fri, 13 May 2022 01:22:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/XAQKyGTIf3nEwzzm4MjG5cieNFIPfuDPs4NWHUGplM=; b=L8+p4daB2nhaQD22nDMvKv3YNfhcYWnHcT0dU91bolqi24ANNygzWpIg2kFxT4rGFs qSrhfOy9+9dpg9bo8BufAyZlQg0zjU6E7QuXNXUE4/8nQjH+CC4eNhcZKcyo24BjDu/w +CKk38Km/d1MZQfl2ydkviTY5D4ainaQrrz7VXw7uSBAS7awr+miiL+YnrLE1wABuIpE +Z36sD1jnmyupAo8l7EHS+kEP7fJA3rzebAymAuHPmILykxxUbnxm74pJf3Rc3S693EV uTgPRVMNDa27z2CheK1SOO+vmZzM2o7hPpjPGYkUVbR1842jLRRiBJ4Sdd5HS4gjmZTu rKrw== 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=/XAQKyGTIf3nEwzzm4MjG5cieNFIPfuDPs4NWHUGplM=; b=HiAhsK4+euWLVQRgzUW58bRwG1391VebneRhEaXAHSL2vMb/HKvXKIK+RA0vL3U1AR Jlv4EvatEufiLVMLPvZK6GhZHVK8tHSZFHNc8cUeOdHkPECoT7QpnqPZbxmO2MAyn+Mr cktt+IaDd1WWT/rB0aGAVdb/X1K72fxMP8d+RYX6nzX4xh+Y2Ou50x59tz8MlVN39wS3 7laGm/upkHvBTvLDwonv82d9INDI1Ebxudfg1669icGGzerzfITzQE/czCcaP56NzYgT JvujNgcnB0Q1ARH3wALxoyCo82FcC/uFPA5VXZwf433SS/2G3lh4hElSTUgkoNcB8k5B 8paw== X-Gm-Message-State: AOAM5301FIAyHDw3u6owOd22czCxSuQKRa1q57hKrn2kb13i57Zh93as 4F9DqaTSJ6Aur6on0ny6MyVDHTS4hWwKvPW5CUfCCK0q X-Received: by 2002:a81:ac57:0:b0:2f1:99ec:91a2 with SMTP id z23-20020a81ac57000000b002f199ec91a2mr4255592ywj.329.1652430158110; Fri, 13 May 2022 01:22:38 -0700 (PDT) MIME-Version: 1.0 References: <20220503150735.32723-1-jiangshanlai@gmail.com> In-Reply-To: <20220503150735.32723-1-jiangshanlai@gmail.com> From: Lai Jiangshan Date: Fri, 13 May 2022 16:22:27 +0800 Message-ID: Subject: Re: [PATCH V2 0/7] KVM: X86/MMU: Use one-off special shadow page for special roots To: LKML , "open list:KERNEL VIRTUAL MACHINE FOR MIPS (KVM/mips)" , Paolo Bonzini , Sean Christopherson Cc: Lai Jiangshan Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 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. > Ping