summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2026-03-09 14:40:40 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2026-03-11 20:41:11 +0300
commit5a30e8aea079b3e4e79d6ce7a878f5f42efe9d0b (patch)
tree702274b8a57151777de32dd1ff76c4381cc76f0c /include
parent87d0f901a9bd8ae6be57249c737f20ac0cace93d (diff)
downloadlinux-5a30e8aea079b3e4e79d6ce7a878f5f42efe9d0b.tar.xz
KVM: VMX: check validity of VMCS controls when returning from SMM
The VMCS12 is not available while in SMM. However, it can be overwritten if userspace manages to trigger copy_enlightened_to_vmcs12() - for example via KVM_GET_NESTED_STATE. Because of this, the VMCS12 has to be checked for validity before it is used to generate the VMCS02. Move the check code out of vmx_set_nested_state() (the other "not a VMLAUNCH/VMRESUME" path that emulates a nested vmentry) and reuse it in vmx_leave_smm(). Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions