]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: selftests: Extend state_test to check next_rip
authorYosry Ahmed <yosry@kernel.org>
Wed, 25 Feb 2026 00:59:46 +0000 (00:59 +0000)
committerSean Christopherson <seanjc@google.com>
Mon, 2 Mar 2026 23:58:23 +0000 (15:58 -0800)
commite5cdd34b5f74c4a0c72fe43092192f347d999e77
treeb0e87ad220d9ed653811f6a2ec76403b0fa98aae
parent2303ca26fbb005a45aaf5a547465f978df906cb7
KVM: selftests: Extend state_test to check next_rip

Similar to vGIF, extend state_test to make sure that next_rip is saved
correctly in nested state. GUEST_SYNC() in L2 causes IO emulation by
KVM, which advances the RIP to the value of next_rip. Hence, if next_rip
is saved correctly, its value should match the saved RIP value.

Signed-off-by: Yosry Ahmed <yosry@kernel.org>
Link: https://patch.msgid.link/20260225005950.3739782-5-yosry@kernel.org
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86/state_test.c