]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: nSVM: Save/load CET Shadow Stack state to/from vmcb12/vmcb02
authorSean Christopherson <seanjc@google.com>
Fri, 19 Sep 2025 22:32:43 +0000 (15:32 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 23 Sep 2025 16:27:06 +0000 (09:27 -0700)
commitc5ba49458513bd1ecd669d4ec7124e788b19347c
tree305461bef437fbbec5932e62a2602fa662948d54
parent48b2ec0d540c29cebb5119dd2b8e8e7369bc409c
KVM: nSVM: Save/load CET Shadow Stack state to/from vmcb12/vmcb02

Transfer the three CET Shadow Stack VMCB fields (S_CET, ISST_ADDR, and
SSP) on VMRUN, #VMEXIT, and loading nested state (saving nested state
simply copies the entire save area).  SVM doesn't provide a way to
disallow L1 from enabling Shadow Stacks for L2, i.e. KVM *must* provide
nested support before advertising SHSTK to userspace.

Link: https://lore.kernel.org/r/20250919223258.1604852-37-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/nested.c