Re: [PATCH v5 04/15] x86/mtrr: support setting MTRR state for software defined MTRRs

From: Borislav Petkov
Date: Tue Apr 11 2023 - 10:27:18 EST


On Tue, Apr 11, 2023 at 04:04:00PM +0200, Juergen Gross wrote:
> Yeah, the condition needs to be:
>
> if (!(hv_is_isolation_supported() ||
> cc_platform_has(CC_ATTR_GUEST_SEV_SNP)) &&
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Why is that needed at all?

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette