diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2026-03-09 12:40:40 +0100 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2026-03-11 18:41:11 +0100 |
| commit | 5a30e8aea079b3e4e79d6ce7a878f5f42efe9d0b (patch) | |
| tree | 702274b8a57151777de32dd1ff76c4381cc76f0c /tools/memory-model/scripts | |
| parent | 87d0f901a9bd8ae6be57249c737f20ac0cace93d (diff) | |
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 'tools/memory-model/scripts')
0 files changed, 0 insertions, 0 deletions
