On 23/09/16 06:37, Borislav Petkov wrote:
On Thu, Sep 22, 2016 at 08:23:36PM +0200, Paolo Bonzini wrote:
Unless this is part of some spec, it's easier if things are the same in
SME and SEV.
Yeah, I was pondering over how sprinkling sev_active checks might not be
so clean.
I'm wondering if we could make the EFI regions presented to the guest
unencrypted too, as part of some SEV-specific init routine so that the
guest kernel doesn't need to do anything different.
How is this even possible? The spec clearly says under SEV only in long
mode or PAE mode guest can control whether memory is encrypted via
c-bit, and in other modes guest will be always in encrypted mode. Guest
EFI is also virtual, so are you suggesting EFI code (or code which loads
EFI) should also be modified to load EFI as unencrypted? Looks it's not
even possible to happen.
Thanks,
-Kai
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>