Linux Confidential Computing Development
 help / color / mirror / Atom feed
From: Kiryl Shutsemau <kas@kernel.org>
To: Zhenzhong Duan <zhenzhong.duan@intel.com>
Cc: marcandre.lureau@redhat.com, david@kernel.org,
	 rick.p.edgecombe@intel.com, prsampat@amd.com,
	pbonzini@redhat.com, mst@redhat.com,  peterx@redhat.com,
	chenyi.qiang@intel.com, elena.reshetova@intel.com,
	 michaeluth@amd.com, ackerleytng@google.com,
	linux-kernel@vger.kernel.org,  linux-coco@lists.linux.dev,
	virtualization@lists.linux.dev, x86@kernel.org,
	 yilun.xu@intel.com, xiaoyao.li@intel.com, chao.p.peng@intel.com
Subject: Re: [RFC PATCH 0/6] Support virtio-mem memory hotplug in TDX guests
Date: Fri, 12 Jun 2026 13:16:18 +0100	[thread overview]
Message-ID: <aiv0y-Op9bfP-CVO@thinkstation> (raw)
In-Reply-To: <20260604093551.1511079-1-zhenzhong.duan@intel.com>

On Thu, Jun 04, 2026 at 05:35:45AM -0400, Zhenzhong Duan wrote:
> 2. Re-accepting already-accepted memory returns errors. Ignoring these errors
> can mislead the guest into believing re-accepted memory is zeroed when it
> contains stale data.

Re-accepting concern is valid, but often overblown. Reaccepting memory
that never got allocated is fine.

> == About this series ==
> 
> This series takes a different direction, supporting start-private memory
> and addressing the limitations of previous series [1] by implementing a
> callback-based infrastructure that integrates TDX memory acceptance and
> release operations with proper subblock granularity.

You are presenting these callbacks as generic memory hotplug thingy, but
it is only plugged into virtio mem. ACPI hotplug won't accept/release
memory unless I miss something. Are you expecting them to cover non
virtio cases too?

And these callbacks feels like very ad-hoc solution.

> See Rick and Paolo's
> discussion about using TDG.MEM.PAGE.RELEASE in [1].

Having RELEASE in hotplug path without addressing private->shared
conversion first is odd. That's the most obvious path that has to be
covered first.

Hm?

> == Future work ==
> support lazy accept

It would be nice to have some outline on how we will get there to
understand if this patchset is stepping stone or dead end that has to be
thrown away later on.

Hot[un]plug is often used to manager overcommited host. Eager accept
might be counter-productive.


-- 
  Kiryl Shutsemau / Kirill A. Shutemov

      parent reply	other threads:[~2026-06-12 12:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-04  9:35 [RFC PATCH 0/6] Support virtio-mem memory hotplug in TDX guests Zhenzhong Duan
2026-06-04  9:35 ` [RFC PATCH 1/6] mm/memory_hotplug: Add memory post-plug callback infrastructure Zhenzhong Duan
2026-06-04  9:35 ` [RFC PATCH 2/6] mm/memory_hotplug: Add memory pre-unplug " Zhenzhong Duan
2026-06-04  9:35 ` [RFC PATCH 3/6] virtio-mem: Integrate memory acceptance and release callbacks Zhenzhong Duan
2026-06-04  9:35 ` [RFC PATCH 4/6] x86/tdx: Register memory post-plug callback for TDX guests Zhenzhong Duan
2026-06-04  9:35 ` [RFC PATCH 5/6] x86/tdx: Register memory pre-unplug " Zhenzhong Duan
2026-06-04  9:35 ` [RFC PATCH 6/6] x86/tdx: Release private memory before private->shared conversion Zhenzhong Duan
2026-06-12 12:16 ` Kiryl Shutsemau [this message]

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=aiv0y-Op9bfP-CVO@thinkstation \
    --to=kas@kernel.org \
    --cc=ackerleytng@google.com \
    --cc=chao.p.peng@intel.com \
    --cc=chenyi.qiang@intel.com \
    --cc=david@kernel.org \
    --cc=elena.reshetova@intel.com \
    --cc=linux-coco@lists.linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcandre.lureau@redhat.com \
    --cc=michaeluth@amd.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peterx@redhat.com \
    --cc=prsampat@amd.com \
    --cc=rick.p.edgecombe@intel.com \
    --cc=virtualization@lists.linux.dev \
    --cc=x86@kernel.org \
    --cc=xiaoyao.li@intel.com \
    --cc=yilun.xu@intel.com \
    --cc=zhenzhong.duan@intel.com \
    /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