Re: [PATCH] x86/kvm: Override default caching mode for SEV-SNP and TDX

From: Kirill A. Shutemov
Date: Tue Jan 28 2025 - 04:40:57 EST


On Fri, Jan 24, 2025 at 12:59:50PM -0800, Sean Christopherson wrote:
> As a stopgap, rather than carry this CoCo hack, what if we add a synthetic feature
> flag that says it's ok to modify MTRRs without disabling caching? I think that'll
> make TDX happy, and should avoid a long game of whack-a-mole. Then longterm,
> figure out a clean way to eliminate accessing the "real" MTRRs entirely.

That's kina make sense to me. But I obviously didn't understand scale of the
mess around MTRRs and can only hope it will not break anything else. :/

--
Kiryl Shutsemau / Kirill A. Shutemov