Re: [Part1 PATCH v5 02/17] x86/mm: Add Secure Encrypted Virtualization (SEV) support

From: Borislav Petkov
Date: Fri Sep 29 2017 - 10:42:15 EST


On Fri, Sep 29, 2017 at 07:28:47AM -0500, Brijesh Singh wrote:
> if we are adding a chicken bits then I think we should do it for both
> "smeonly" and "sevonly". We can boot host OS with SME disabled and SEV
> enabled, and still be able to create the SEV guest from the hypervisor.

Sure, but is that a real use case? I mean, who would want to run
encrypted guests on an unencrypted hypervisor?

> How about this ?
>
> mem_encrypt=onÂÂÂÂ both SME and SEV enabled
> mem_encrypt=sevÂÂÂ only SEV enabled
> mem_encrypt=smeÂÂ only SME enabled
> mem_encrypt=offÂÂÂÂ neither SME/SEV are enabled

I like those short mnemonics, ACK. Less typing is always good.

Thx.

--
Regards/Gruss,
Boris.

SUSE Linux GmbH, GF: Felix ImendÃrffer, Jane Smithard, Graham Norton, HRB 21284 (AG NÃrnberg)
--