Re: [PATCH v2] x86/kernel: skip ROM range scans and validation for SEV-SNP guests
From: Borislav Petkov
Date: Fri Mar 08 2024 - 06:03:11 EST
On Fri, Mar 08, 2024 at 11:30:50AM +0100, Ard Biesheuvel wrote:
> Agree with the analysis and the conclusion. However, this will need to
> be split into generic and x86 specific changes, given that the DMI
> code is shared between all architectures, and explicitly checking for
> SEV-SNP support in generic code is not appropriate.
>
> So what we will need is:
I was actually thinking of:
x86_init.resources.probe_roms = snp_probe_roms;
and snp_probe_roms() is an empty stub.
Problem solved without ugly sprinkling of checks everywhere.
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette