Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp1365855rdb; Fri, 20 Oct 2023 17:34:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFw0G97RC+d3uoLt1XiENK1gX+RyBjIVXUFMYSZclZd3/5EWc96f1YBtLhSheK78cM4zUSn X-Received: by 2002:a05:6358:93a3:b0:13a:4f34:8063 with SMTP id h35-20020a05635893a300b0013a4f348063mr3832212rwb.32.1697848468004; Fri, 20 Oct 2023 17:34:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697848467; cv=none; d=google.com; s=arc-20160816; b=d8i/6AxNohFUUeqLN1yN63/+aLN+Gl7/Orv9Zs1aKoXrJ4D2Mm6P0Mfi3/3jwLTtRr zNHgAKAnK2BZQj3Cs8olazemwXO505FFohip8b/N9t4vKe+b0DBUusSduRnJ1W8xD+5v d9T+2sBk6zrctPbJXxIRW82IwVrmZTJuwy0LIv+p6wvxudCQpYAJ2QHi+TK+oROMaF6u ggVoK7MDvQU517wMzVtqyoAJQ+0/04IfaKi2GSfD39Vr0ppqyjgpHGmEBzwc4dmY3JLO v6h3qEz11v3yy6U4r8OJp2OuyUpxZeJpsEcQC8yyUBGJF/VvGjaoY9A0DuYKYsxJCTaG EeiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=l/l3UkJzV9Lopd0hoSKNnokZZ/oLpoHJjp/TOvxlez8=; fh=e5b2UcnN4Hvp9bvOQUtHiXwDZJAlE/kT7G1+4jee5Ek=; b=x51+JRXQ2StrhM1AMR3CbVRATg+u00KFx/C9df/fkoDHda9KC5n5m2YcU8U5CLORio ODD2L3cvycRnZCgOgGLrdYwzn4UIhx3c3eAAqMqu+Nrm6gBy+qhQMQa+33jXEGf3bTuA /tq0nMalfBhzw7K7r0BK0U0/8LLuk2lIhfLyp5zr67Fmg4nZM/xzcWv+v4hvMvU97Sr+ vW4vyvnJyp+/p/2SgaaC1WqO3FIz/5Gt5WiAevMc6Am3DYfhWx6nCegSfxRHS2mRgFdJ XPfNonXdlPGDQnFMYY1xLcYQtHRn/QRLpRU7oFFhQmzlZgl8gFSCqM/4ISjx8STPtlhq OGyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=GpHZ9GwE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id bu18-20020a632952000000b00585a5433e55si2928085pgb.143.2023.10.20.17.34.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 17:34:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=GpHZ9GwE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 931B483B6BD9; Fri, 20 Oct 2023 17:34:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233175AbjJUAeQ (ORCPT + 99 others); Fri, 20 Oct 2023 20:34:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230034AbjJUAeP (ORCPT ); Fri, 20 Oct 2023 20:34:15 -0400 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D69D0D6F for ; Fri, 20 Oct 2023 17:34:13 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-5a7ed6903a6so18421847b3.2 for ; Fri, 20 Oct 2023 17:34:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1697848453; x=1698453253; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=l/l3UkJzV9Lopd0hoSKNnokZZ/oLpoHJjp/TOvxlez8=; b=GpHZ9GwEiLb5m5Wyx4FNbJ/IJOjLyDWbK2ZanOPlVpR9AYlIxjJOXfVA9WYSlq6GCx 8Lvk6msZtuarMWhJN7buzwbth/cVqFnMoJ4lOklEmkOle9JuzOX8aDbCd8VNEtU1uXra YkhaK/q1AQpg5AfvKgCGi9yEHHTh1WlYmkE3kWozqx7ZJ1VEfBFWITbrJxyu3aH7uO/R NbqdShdEw1FXrNYMi4OnQuZBzM17kyBBFwg6OPKO06FRhlZn2KMJ3kGF4nKmkVFfD5fv L1OTWDPAZEaO5fAPFhX+wXHeoDsZQHtSn96Ffd22GMX5WLkY5xPgMg0z9W2G8SOSRV8C iUYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697848453; x=1698453253; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=l/l3UkJzV9Lopd0hoSKNnokZZ/oLpoHJjp/TOvxlez8=; b=q4PCnruKyCRjfIFOCf99yQ/RWboi6tlYbnH6GRCBXGVIC2sixJQJwuXMpUUsXRQGt4 97ZAtJ6sdpZrSU7lMcpFdW3f278rk/1jnPjKuh6KKr38wFKE5Y2vTclPWG7AQTwMU8lK K9vYZ+TnKj8B2fc26UFXKNXKDJ3CAK/tuYcDu4f2vlSyhmXkXl2Xds97E2TVWHS2XIss /C0r2N3y+58te0Joy/HUZGftJ/Tc/rI4Zh7ASxi/SOBDQ/05fX4CSV1ZEXxCn26jtk1U 0WyQJDNGd2C0skNtswv4p08mNzDVNfB/NtwbOVUph2zvXYwpvl6zotV0vkvjFKZSBbDI 02jQ== X-Gm-Message-State: AOJu0YxajWCMBP7gdUIwrwU+vmRAiy0lKdXY6uzuBx6uJSO0BGH1soIn v8uBOQzCIEpLSLQfCrcK5xOhZ1F87pI= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a81:48cc:0:b0:5a7:b9ea:5c9d with SMTP id v195-20020a8148cc000000b005a7b9ea5c9dmr77561ywa.8.1697848453097; Fri, 20 Oct 2023 17:34:13 -0700 (PDT) Date: Fri, 20 Oct 2023 17:34:11 -0700 In-Reply-To: Mime-Version: 1.0 References: <20230913124227.12574-1-binbin.wu@linux.intel.com> Message-ID: Subject: Re: [PATCH v11 00/16] LAM and LASS KVM Enabling From: Sean Christopherson To: Binbin Wu Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, pbonzini@redhat.com, chao.gao@intel.com, kai.huang@intel.com, David.Laight@aculab.com, robert.hu@linux.intel.com, guang.zeng@intel.com Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 20 Oct 2023 17:34:25 -0700 (PDT) On Fri, Oct 20, 2023, Sean Christopherson wrote: > On Wed, Sep 13, 2023, Binbin Wu wrote: > > Binbin Wu (10): > > KVM: x86: Consolidate flags for __linearize() > > KVM: x86: Use a new flag for branch targets > > KVM: x86: Add an emulation flag for implicit system access > > KVM: x86: Add X86EMUL_F_INVLPG and pass it in em_invlpg() > > KVM: x86/mmu: Drop non-PA bits when getting GFN for guest's PGD > > KVM: x86: Add & use kvm_vcpu_is_legal_cr3() to check CR3's legality > > KVM: x86: Remove kvm_vcpu_is_illegal_gpa() > > KVM: x86: Introduce get_untagged_addr() in kvm_x86_ops and call it in > > emulator > > KVM: x86: Untag address for vmexit handlers when LAM applicable > > KVM: x86: Use KVM-governed feature framework to track "LAM enabled" > > > > Robert Hoo (3): > > KVM: x86: Virtualize LAM for supervisor pointer > > KVM: x86: Virtualize LAM for user pointer > > KVM: x86: Advertise and enable LAM (user and supervisor) > > > > Zeng Guang (3): > > KVM: emulator: Add emulation of LASS violation checks on linear > > address > > KVM: VMX: Virtualize LASS > > KVM: x86: Advertise LASS CPUID to user space > > This all looks good! I have a few minor nits, but nothing I can't tweak when > applying. Assuming nothing explodes in testing, I'll get this applied for 6.8 > next week. Gah, by "this" I meant the LAM parts. LASS is going to have to wait until the kernel support lands.