From: "Jörg Rödel" <joro@8bytes.org>
To: svsm-devel@coconut-svsm.dev
Subject: [svsm-devel] SVSM Host Kernel KVM Update Required
Date: Wed, 12 Mar 2025 10:21:14 +0100 [thread overview]
Message-ID: <Z9FSCnYWkV0g12R0@8bytes.org> (raw)
Hi everyone,
As some of you already noticed there is a regression with the current
SVSM tree, as it does not boot the SVSM-kernel anymore on KVM with
SEV-SNP hardware. The problem was in our host kernel, for which I just
merged a fix. So please update your host environments with the updated
kernel if you experience this problem.
The reason for the breakage was a PR to unconditionally compile in the
shadow-stack code in all builds and do detection at runtime.
Unfortunately this broke on KVM because our SVSM Linux kernel tree does
still intercept all shadow-stack MSRs. So when COCONUT accesses these
MSRs it will cause a #VC exception and the kernel panics.
My fix disables the intercepts of the shadow-stack MSRs in our host
kernel. This is safe because Linux does only implement user
shadow-stacks so far and that state is switched via the FPU load/unload
path.
Regards,
Joerg
next reply other threads:[~2025-03-12 9:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-12 9:21 Jörg Rödel [this message]
2025-03-12 9:36 ` [svsm-devel] SVSM Host Kernel KVM Update Required Gupta, Pankaj
2025-03-12 9:48 ` Gupta, Pankaj
2025-03-12 10:02 ` Jörg Rödel
2025-03-12 14:33 ` Gupta, Pankaj
2025-03-12 14:54 ` Jörg Rödel
2025-03-12 20:05 ` Gupta, Pankaj
2025-03-13 5:54 ` Jörg Rödel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z9FSCnYWkV0g12R0@8bytes.org \
--to=joro@8bytes.org \
--cc=svsm-devel@coconut-svsm.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox