Re: [RFC v2 28/32] x86/tdx: Make pages shared in ioremap()
From: Borislav Petkov
Date: Tue May 11 2021 - 05:36:11 EST
On Mon, May 10, 2021 at 10:52:49PM +0000, Sean Christopherson wrote:
> I can't find the thread offhand, but Boris proposed something along the lines of
> cpu_has(), but specific to a given flavor of protected guest. IIRC, it was
> sev_guest_has(SEV_ES) or something like that.
> I 100% agree that we should have actual feature bits somewhere for the various
> protected guest flavors.
Preach brother! :)
/me goes and greps mailboxes...
ah, do you mean this, per chance:
And yes, this has "sev" in the name and dhansen makes sense to me in
wishing to unify all the protected guest feature queries under a common
name. And then depending on the vendor, that common name will call the
respective vendor's helper to answer the protected guest aspect asked
This way, generic code will call
or so and be nicely abstracted away from the underlying implementation.
Hohumm, yap, sounds nice to me.