[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 2/6] target/i386/sev: Add kernel hashes only if sev-guest.
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH v2 2/6] target/i386/sev: Add kernel hashes only if sev-guest.kernel-hashes=on |
Date: |
Thu, 11 Nov 2021 09:28:38 +0000 |
User-agent: |
Mutt/2.0.7 (2021-05-04) |
On Mon, Nov 08, 2021 at 01:48:36PM +0000, Dov Murik wrote:
> Commit cff03145ed3c ("sev/i386: Introduce sev_add_kernel_loader_hashes
> for measured linux boot", 2021-09-30) introduced measured direct boot
> with -kernel, using an OVMF-designated hashes table which QEMU fills.
>
> However, if OVMF doesn't designate such an area, QEMU would completely
> abort the VM launch. This breaks launching with -kernel using older
> OVMF images which don't publish the SEV_HASH_TABLE_RV_GUID.
>
> Fix that so QEMU will only look for the hashes table if the sev-guest
> kernel-hashes option is set to on. Otherwise, QEMU won't look for the
> designated area in OVMF and won't fill that area.
>
> To enable addition of kernel hashes, launch the guest with:
>
> -object sev-guest,...,kernel-hashes=on
>
> Signed-off-by: Dov Murik <dovmurik@linux.ibm.com>
> Reported-by: Tom Lendacky <thomas.lendacky@amd.com>
> ---
> target/i386/sev.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
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 :|
[PATCH v2 2/6] target/i386/sev: Add kernel hashes only if sev-guest.kernel-hashes=on, Dov Murik, 2021/11/08
- Re: [PATCH v2 2/6] target/i386/sev: Add kernel hashes only if sev-guest.kernel-hashes=on,
Daniel P . Berrangé <=
[PATCH v2 6/6] target/i386/sev: Replace qemu_map_ram_ptr with address_space_map, Dov Murik, 2021/11/08
Re: [PATCH v2 0/6] SEV: add kernel-hashes=on for measured -kernel launch, Brijesh Singh, 2021/11/10
Re: [PATCH v2 0/6] SEV: add kernel-hashes=on for measured -kernel launch, Daniel P . Berrangé, 2021/11/11