Received: by 2002:a9a:4c47:0:b029:116:c383:538 with SMTP id u7csp966677lko; Tue, 13 Jul 2021 14:05:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbiVeHGgWlB+6rwKVUI9vboX6yxWNlJ7H8M6xWEejItzMe7hqlfyqFR7DK7DGf72fedv1j X-Received: by 2002:a05:6e02:1010:: with SMTP id n16mr4408236ilj.146.1626210315731; Tue, 13 Jul 2021 14:05:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626210315; cv=none; d=google.com; s=arc-20160816; b=tXyzkmxoLW0x02AnCIzzm4H/tm5JQ9WFeM/Zvjcj3GX3Xtzs7F/uy9O1eo3K6iRzLQ J5c6VxjB8RsfHR/8IHy3kFYNPIG0WMZQCZ0zo870IE9tVnAkssBgQYMIfmvxFoSWsmzx 86wEeCsWMWqnc9zwfU1KYSDqF01orOSgbLg63PFG6VRMh0aMwmSLnCign21E8V9/VQjB qPnWfyN7ijE+v/xEEQ8Qq4jzMSeYS/J0hLxYlSex91TuYrcH+MOq5vOX8M0RPQ8mVMxR q2/VwwV2cmBvZw2FEF8Z5vy1LgnwvwjOC+CXvJumu7vHTefz3PoPfEdEkmAktNctd5p0 vO0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/+a0nOAUvmFDk9sQMqBodRLs3dk1rTDWSs7A8bhW4R4=; b=JXvQsZP2dcasEaKwsMR/OA5k7QcXvC51SusyZgRqjYC6QBy38yBIPoz1XnsKY1A44n 31PRAZq6aK+dwMfWH7J3FSybllWmsvEc8zt8iWc1Ehpf5A27fNxOHFKoEBGaIaya+gnn lIQHdkh7iDufVX6VRKU8xqwOcsjnJ4RBxwL/qN2kJ2Jw2SefDxg8j8AU1DWanWLB7pSM 5xhxhJpCccbCUZ9GGQxQbRdHtOsSTYXaRx4oen4pm2qFwfVStF6dC54FGtVrAunHGTYT rTBrMLYE3B/sWf28KeEwKhPzFQzxPfKHAXAAMFffRsJN1v0ghhbt1o3PK/yYVpA8tZlM tB1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=iA0rtUSv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u12si23518695ilm.144.2021.07.13.14.05.01; Tue, 13 Jul 2021 14:05:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=iA0rtUSv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236258AbhGMVF6 (ORCPT + 99 others); Tue, 13 Jul 2021 17:05:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235536AbhGMVFy (ORCPT ); Tue, 13 Jul 2021 17:05:54 -0400 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF946C0613EF for ; Tue, 13 Jul 2021 14:03:03 -0700 (PDT) Received: by mail-pg1-x529.google.com with SMTP id h4so22644295pgp.5 for ; Tue, 13 Jul 2021 14:03:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=/+a0nOAUvmFDk9sQMqBodRLs3dk1rTDWSs7A8bhW4R4=; b=iA0rtUSvo2J+Q0KFs9VeHEfWPCZ8DBG+LqtWDHZyagCTcEzWpYCjPE4wfvRNUVRF7u 9Ki2NkyU53QgVvw8hFtNPqw61MFpsNaDTlck0X1PjcjPQqbYGgFSqk+gC9543wfuqxqP 0Lq7YzT4LxZrqcAOKEMdShDcVjej34X2egWDr8PXR/EdiJ9jJLWjBGn2t8J4HWtp6HEX 4cX1hGyRCCgbQcYp+Iolkk0VjDull+k8vpcQ+zrZIUtDhLmDBnom3Y7BG3xV+NYW/tsD 7ty0z8TzhI2oSJgLoNEoCJYA76zZyptM0gzanVZu3sUAA94xvw653dRzaS/ggc6v9EAC k9Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=/+a0nOAUvmFDk9sQMqBodRLs3dk1rTDWSs7A8bhW4R4=; b=JwTwbG2GSwoHcPd1PnJC+SxPsEm/AGbvbb3cBktjn6LtxkD9rgcTTnpLJjRJtamXsI xO2Riab1LeCqaI+MOMYsnpOBEjMVwj+seN0RyyJJ7MTED2gYB8csXPzVBK2nLwOtmozG AH8U+H0YIhMAoPQ/IxqyzNdkKZdfu5Bmai9eF6Rf5fHS8Nz5y5WEdqjIvDH8sm+PowZL b7goREE9Zdi1v9zSi80YfdCxdZM+xaprpgQTCTxt0nf68lxSXSGshtuU3tHp92Q89laC xr+QZiP8Ig1xig/RzM3kC4Cdjd0VUIfJW/mnESUUZTlWptGi4Xo0L/Xk27qCKXqp7rGK U3lQ== X-Gm-Message-State: AOAM5334qo/T896PuOsWNn7tNHtkjvjtt+2lke4myMvSWyrPUNZMrqmV RKjVFLr7TfnpXG2oUvopPkLtIg== X-Received: by 2002:a65:4109:: with SMTP id w9mr5888848pgp.24.1626210183074; Tue, 13 Jul 2021 14:03:03 -0700 (PDT) Received: from google.com (157.214.185.35.bc.googleusercontent.com. [35.185.214.157]) by smtp.gmail.com with ESMTPSA id a20sm3604319pjh.46.2021.07.13.14.03.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jul 2021 14:03:02 -0700 (PDT) Date: Tue, 13 Jul 2021 21:02:58 +0000 From: Sean Christopherson To: Paolo Bonzini Cc: isaku.yamahata@intel.com, Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , erdemaktas@google.com, Connor Kuehl , x86@kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, isaku.yamahata@gmail.com, Sean Christopherson Subject: Re: [RFC PATCH v2 51/69] KVM: x86/mmu: Allow per-VM override of the TDP max page level Message-ID: References: <89d1ff17-dc48-0f39-257a-4cf11a98f435@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <89d1ff17-dc48-0f39-257a-4cf11a98f435@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 06, 2021, Paolo Bonzini wrote: > On 03/07/21 00:04, isaku.yamahata@intel.com wrote: > > From: Sean Christopherson > > > > TODO: This is tentative patch. Support large page and delete this patch. > > > > Allow TDX to effectively disable large pages, as SEPT will initially > > support only 4k pages. ... > Seems good enough for now. Looks like SNP needs a dynamic check, i.e. a kvm_x86_ops hook, to handle an edge case in the RMP. That's probably the better route given that this is a short-term hack (hopefully :-D).