]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests: kvm: add a test that VMX validates controls on RSM
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 9 Mar 2026 12:44:40 +0000 (13:44 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 11 Mar 2026 17:41:12 +0000 (18:41 +0100)
commit3e745694b032b405ff1ced74a8b3b95cdd00a385
tree6ad6dbe579349eb71a69a88793549c3930071582
parentc52b534f26574ddf2f67cf07992ae2c25e8932c8
selftests: kvm: add a test that VMX validates controls on RSM

Add a test checking that invalid eVMCS contents are validated after an
RSM instruction is emulated.

The failure mode is simply that the RSM succeeds, because KVM virtualizes
NMIs anyway while running L2; the two pin-based execution controls used
by the test are entirely handled by KVM and not by the processor.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/Makefile.kvm
tools/testing/selftests/kvm/x86/evmcs_smm_controls_test.c [new file with mode: 0644]