From: "Luck, Tony" <tony.luck@intel.com>
To: Jue Wang <juew@google.com>, "Hansen, Dave" <dave.hansen@intel.com>
Cc: Naoya Horiguchi <naoya.horiguchi@nec.com>,
Dave Hansen <dave.hansen@linux.intel.com>,
Jiaqi Yan <jiaqiyan@google.com>, Greg Thelen <gthelen@google.com>,
Mina Almasry <almasrymina@google.com>,
"linux-mm@kvack.org" <linux-mm@kvack.org>,
Sean Christopherson <seanjc@google.com>
Subject: RE: [RFC] Expose a memory poison detector ioctl to user space.
Date: Tue, 26 Apr 2022 19:52:09 +0000 [thread overview]
Message-ID: <02d9633ca83d41e8af410b1d36eb6a95@intel.com> (raw)
In-Reply-To: <CAPcxDJ6oVeH=cL4YG7n5v_JqBYNEzLcq5ySdG17N03x_uYXUcg@mail.gmail.com>
One thing that would be relatively easy to do would be pre-allocate and pre-scan memory at guest creation:
1) Request to set up a guest with X GB memory
2) Allocate X GB
3) Zero it
4) Scan for poison
5) Map memory to guest and run the guest
Should work with TDX (because you scan while host still has control/access to the pages).
But this has issues if you have long-lived guests. Or want to overcommit memory so don't
really give a guest all the physical memory that it asks for.
-Tony
next prev parent reply other threads:[~2022-04-26 19:52 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-25 16:34 [RFC] Expose a memory poison detector ioctl to user space Jue Wang
2022-04-26 15:40 ` Dave Hansen
2022-04-26 17:57 ` Jue Wang
2022-04-26 18:02 ` Jue Wang
2022-04-26 18:21 ` Dave Hansen
2022-04-26 19:25 ` Jue Wang
2022-04-26 19:52 ` Luck, Tony [this message]
2022-04-26 20:06 ` Jue Wang
2022-04-26 18:20 ` Dave Hansen
2022-04-26 19:23 ` Jue Wang
2022-04-26 19:39 ` Dave Hansen
2022-04-26 19:50 ` Jue Wang
2022-04-28 16:15 ` Erdem Aktas
2022-04-28 16:34 ` Dave Hansen
2022-04-29 19:46 ` Jue Wang
2022-04-29 21:10 ` Dave Hansen
2022-04-29 21:32 ` Jue Wang
2022-04-29 21:44 ` Jue Wang
2022-04-29 22:29 ` Dave Hansen
2022-04-29 22:53 ` Jue Wang
2022-05-02 15:30 ` Dave Hansen
2022-05-02 17:19 ` David Hildenbrand
2022-05-02 17:30 ` Jue Wang
2022-05-02 17:33 ` David Hildenbrand
2022-05-02 17:36 ` Jue Wang
2022-05-02 17:38 ` 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=02d9633ca83d41e8af410b1d36eb6a95@intel.com \
--to=tony.luck@intel.com \
--cc=almasrymina@google.com \
--cc=dave.hansen@intel.com \
--cc=dave.hansen@linux.intel.com \
--cc=gthelen@google.com \
--cc=jiaqiyan@google.com \
--cc=juew@google.com \
--cc=linux-mm@kvack.org \
--cc=naoya.horiguchi@nec.com \
--cc=seanjc@google.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;
as well as URLs for NNTP newsgroup(s).