From: David Hildenbrand <david@redhat.com>
To: "Huang, Ying" <ying.huang@intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
"Kirill A . Shutemov" <kirill.shutemov@linux.intel.com>,
x86@kernel.org, Andrew Morton <akpm@linux-foundation.org>,
Oscar Salvador <osalvador@suse.de>,
linux-coco@lists.linux.dev, linux-mm@kvack.org,
linux-kernel@vger.kernel.org,
Dan Williams <dan.j.williams@intel.com>,
Kai Huang <kai.huang@intel.com>, "H. Peter Anvin" <hpa@zytor.com>,
Andy Lutomirski <luto@kernel.org>
Subject: Re: [PATCH] tdx, memory hotplug: Check whole hot-adding memory range for TDX
Date: Tue, 1 Oct 2024 09:54:45 +0200 [thread overview]
Message-ID: <96fd7bd9-3525-44e0-b797-55d4e82f9c37@redhat.com> (raw)
In-Reply-To: <8734lgpuoi.fsf@yhuang6-desk2.ccr.corp.intel.com>
> Because only TDX compatible memory can be used for TDX guest. The buddy
> is used to allocate memory for TDX guest. While devdax will not be used
> for that.
>
>>> This also makes the original TDX memory hotplug notifier useless, so
>>> delete it.
>>
>> The online-notifier would even be too late when used with the
>> memmap-on-memory feature I assume, as we might be touching that memory
>> even before being able to call memory online notifiers.
>
> This should be OK. Because we will not use the memory for TDX guest in
> this way.
Thanks for the reminder, I keep assuming that we are hotplugging memory
into the guest, not the hypervisor.
Having that as a comment in tdx_check_hotplug_memory_range() would be
helpful: we don't allow mixture of TDX and !TDX memory in the buddy so
we won't run into trouble when launching encrypted VMs that really need
TDX-capable memory.
--
Cheers,
David / dhildenb
next prev parent reply other threads:[~2024-10-01 7:54 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-30 5:51 Huang Ying
2024-09-30 8:58 ` David Hildenbrand
2024-09-30 23:51 ` Huang, Ying
2024-10-01 7:54 ` David Hildenbrand [this message]
2024-10-03 20:39 ` Yang Shi
2024-10-03 23:32 ` Dan Williams
2024-10-04 1:10 ` Yang Shi
2024-10-04 3:15 ` Dan Williams
2024-10-04 10:21 ` David Hildenbrand
2024-10-04 15:54 ` Yang Shi
2024-10-04 15:46 ` Yang Shi
2024-10-10 17:52 ` James Morse
2024-10-10 18:28 ` Dan Williams
2024-10-10 19:46 ` Yang Shi
2024-10-01 6:45 ` Dan Williams
2024-10-01 7:56 ` David Hildenbrand
2024-10-01 8:08 ` Dan Williams
2024-10-04 10:16 ` David Hildenbrand
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=96fd7bd9-3525-44e0-b797-55d4e82f9c37@redhat.com \
--to=david@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=bp@alien8.de \
--cc=dan.j.williams@intel.com \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=kai.huang@intel.com \
--cc=kirill.shutemov@linux.intel.com \
--cc=linux-coco@lists.linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=luto@kernel.org \
--cc=mingo@redhat.com \
--cc=osalvador@suse.de \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
--cc=ying.huang@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
all inboxes | Powered by JetHome®