Re: [PATCH] KVM: SEV: Track SNP launch state and disallow invalid userspace interactions
From: Sean Christopherson
Date: Wed Feb 25 2026 - 15:05:31 EST
On Mon, Jan 19, 2026, Jethro Beekman wrote:
> Calling any of the SNP_LAUNCH_ ioctls after SNP_LAUNCH_FINISH results in a
> kernel page fault due to RMP violation. Track SNP launch state and exit early.
What exactly trips the RMP #PF? A backtrace would be especially helpful for
posterity.
I ask because it's basically impossible to determine if this approach is optimal
without knowing exactly what's going wrong. Semantically it sounds reasonable,
but ideally KVM would naturally handle userspace stupidity (without exploding).