Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Sean Christopherson <seanjc@google.com>
To: Binbin Wu <binbin.wu@linux.intel.com>
Cc: stable@vger.kernel.org, Kai Huang <kai.huang@intel.com>,
	 Rick Edgecombe <rick.p.edgecombe@intel.com>
Subject: Re: [PATCH 6.18.y] KVM: TDX: Account all non-transient page allocations for per-TD structures
Date: Mon, 20 Jul 2026 14:09:38 -0700	[thread overview]
Message-ID: <al6OklSfwvW_cdfY@google.com> (raw)
In-Reply-To: <20260720030329.744758-1-binbin.wu@linux.intel.com>

On Mon, Jul 20, 2026, Binbin Wu wrote:
> From: Sean Christopherson <seanjc@google.com>
> 
> [ Upstream commit a8b2924676ec42d76597f849baba31acc3ba1bfc ]
> 
> Account all non-transient allocations associated with a single TD (or its
> vCPUs), as KVM's ABI is that allocations that are active for the lifetime
> of a VM are accounted.  Leave temporary allocations, i.e. allocations that
> are freed within a single function/ioctl, unaccounted, to again align with
> KVM's existing behavior, e.g. see commit dd103407ca31 ("KVM: X86: Remove
> unnecessary GFP_KERNEL_ACCOUNT for temporary variables").
> 
> Fixes: 8d032b683c29 ("KVM: TDX: create/destroy VM structure")
> Fixes: a50f673f25e0 ("KVM: TDX: Do TDX specific vcpu initialization")
> Cc: stable@vger.kernel.org
> Reviewed-by: Kai Huang <kai.huang@intel.com>
> Reviewed-by: Rick Edgecombe <rick.p.edgecombe@intel.com>
> Link: https://patch.msgid.link/20260129011517.3545883-4-seanjc@google.com
> Signed-off-by: Sean Christopherson <seanjc@google.com>
> [ Binbin: Resolved conflicts in __tdx_td_init() due to lacking commits
>   eac90a5ba0aa and 69050f8d6d07, retain nr_configured_hkid increment and
>   kcalloc() call. ]
> Signed-off-by: Binbin Wu <binbin.wu@linux.intel.com>
> ---

Acked-by: Sean Christopherson <seanjc@google.com>

  reply	other threads:[~2026-07-20 21:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-16 11:40 FAILED: patch "[PATCH] KVM: TDX: Account all non-transient page allocations for" failed to apply to 6.18-stable tree gregkh
2026-07-20  3:03 ` [PATCH 6.18.y] KVM: TDX: Account all non-transient page allocations for per-TD structures Binbin Wu
2026-07-20 21:09   ` Sean Christopherson [this message]
2026-07-21  0:56   ` Sasha Levin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=al6OklSfwvW_cdfY@google.com \
    --to=seanjc@google.com \
    --cc=binbin.wu@linux.intel.com \
    --cc=kai.huang@intel.com \
    --cc=rick.p.edgecombe@intel.com \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox