Re: [PATCH v5 06/14] x86/ioremap: Support hypervisor specified range to map as encrypted

From: David Woodhouse
Date: Thu Mar 09 2023 - 06:17:28 EST


On Mon, 2023-03-06 at 22:51 +0100, Borislav Petkov wrote:
> On Thu, Feb 23, 2023 at 12:27:50PM -0800, Dave Hansen wrote:
> > On 2/23/23 12:01, Michael Kelley (LINUX) wrote:
> > > Dave Hansen:  Are you also OK with Sean's proposal?  Looking for consensus
> > > here ....
> >
> > Yeah, I'm generally OK with it as long as Borislav is.
>
> Right, I think we're ok with the following basic rules:
>
> - pure arch/x86/ code should use the x86_platform function pointers to
>   query hypervisor capabilities/peculiarities
>
> - cc_platform_has() should be used in generic/driver code as it
>   abstracts away the underlying platform better. IOW, querying
>   x86_platform.... in generic, platform-agnostic driver code looks weird to
>   say the least
>
> The hope is that those two should be enough to support most guest types
> and not let the zoo get too much out of hand...
>
> Thx.

In
https://lore.kernel.org/all/20230308171328.1562857-13-usama.arif@xxxxxxxxxxxxx/
I added an sev_es_active() helper for x86 code.

Is that consistent with the vision here, or should I do something different?

Attachment: smime.p7s
Description: S/MIME cryptographic signature