Thread (108 messages) 108 messages, 10 authors, 2022-01-20

Re: [PATCH v8 06/40] x86/sev: Check SEV-SNP features support

From: Borislav Petkov <bp@alien8.de>
Date: 2021-12-16 16:58:59
Also in: kvm, linux-coco, linux-efi, lkml, platform-driver-x86

On Thu, Dec 16, 2021 at 10:28:45AM -0600, Brijesh Singh wrote:
A good question; the GHCB page is needed only at the time of #VC.  If the
second stage VC handler is not called after the sev_enable() during the
decompression stage, setting up the GHC page in sev_enable() is a waste.
It would be a waste if no #VC would fire. But we set up a #VC handler so
we might just as well set up the GHCB for it too.
But in practice, the second stage VC handler will be called during
decompression. It also brings a similar question for the kernel
proper, should we do the same over there?
I'd think so, yes.
 
Jorge did the initial ES support and may have other reasons he chose to set
up GHCB page in the handler. I was trying to avoid the flow change. We can
do this as a pre or post-SNP patch; let me know your thoughts?
You can do a separate patch only with that change and if it causes
trouble, we can always debug/delay it.

Thx.

-- 
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help