From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Dionna Glaze <dionnaglaze@google.com>
Cc: qemu-devel@nongnu.org, Xu@google.com, Min M <min.m.xu@intel.com>,
Xiaoyao Li <xiaoyao.li@intel.com>,
Thomas Lendacky <Thomas.Lendacky@amd.com>,
Gerd Hoffman <kraxel@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
Marcel Apfelbaum <marcel.apfelbaum@gmail.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Richard Henderson <richard.henderson@linaro.org>,
Eduardo Habkost <eduardo@habkost.net>,
Marcelo Tosatti <mtosatti@redhat.com>,
"open list:X86 KVM CPUs" <kvm@vger.kernel.org>
Subject: Re: [PATCH v2] target/i386: Add unaccepted memory configuration
Date: Thu, 30 Jun 2022 09:14:26 +0100 [thread overview]
Message-ID: <Yr1bYiA1w/lMX76k@redhat.com> (raw)
In-Reply-To: <20220629193701.734154-1-dionnaglaze@google.com>
On Wed, Jun 29, 2022 at 07:37:01PM +0000, Dionna Glaze wrote:
> For SEV-SNP, an OS is "SEV-SNP capable" without supporting this UEFI
> v2.9 memory type. In order for OVMF to be able to avoid pre-validating
> potentially hundreds of gibibytes of data before booting, it needs to
> know if the guest OS can support its use of the new type of memory in
> the memory map.
This talks about something supported for SEV-SNP, but....
> static void
> sev_guest_class_init(ObjectClass *oc, void *data)
> {
> @@ -376,6 +401,14 @@ sev_guest_class_init(ObjectClass *oc, void *data)
> sev_guest_set_kernel_hashes);
> object_class_property_set_description(oc, "kernel-hashes",
> "add kernel hashes to guest firmware for measured Linux boot");
> + object_class_property_add_enum(oc, "accept-all-memory",
> + "MemoryAcceptance",
> + &memory_acceptance_lookup,
> + sev_guest_get_accept_all_memory, sev_guest_set_accept_all_memory);
> + object_class_property_set_description(
> + oc, "accept-all-memory",
> + "false: Accept all memory, true: Accept up to 4G and leave the rest unaccepted (UEFI"
> + " v2.9 memory type), default: default firmware behavior.");
> }
..this is adding a property to the 'sev-guest' object, which only
targets SEV/SEV-ES currently AFAIK.
The most recent patches I recall for SEV-SNP introduced a new
'sev-snp-guest' object instead of overloading the existing
'sev-guest' object:
https://lists.gnu.org/archive/html/qemu-devel/2021-08/msg04757.html
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
next prev parent reply other threads:[~2022-06-30 8:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-29 19:37 [PATCH v2] target/i386: Add unaccepted memory configuration Dionna Glaze
2022-06-29 19:44 ` Gupta, Pankaj
2022-06-30 8:14 ` Daniel P. Berrangé [this message]
2022-06-30 14:31 ` Tom Lendacky
2022-06-30 16:11 ` Dionna Amalie Glaze
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=Yr1bYiA1w/lMX76k@redhat.com \
--to=berrange@redhat.com \
--cc=Thomas.Lendacky@amd.com \
--cc=Xu@google.com \
--cc=dionnaglaze@google.com \
--cc=eduardo@habkost.net \
--cc=kraxel@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=marcel.apfelbaum@gmail.com \
--cc=min.m.xu@intel.com \
--cc=mst@redhat.com \
--cc=mtosatti@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=xiaoyao.li@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;
as well as URLs for NNTP newsgroup(s).