KVM: selftests: x86: sync_regs_test: Use vcpu_run() where appropriate
authorThomas Huth <thuth@redhat.com>
Thu, 8 Feb 2024 20:48:37 +0000 (21:48 +0100)
committerSean Christopherson <seanjc@google.com>
Tue, 27 Feb 2024 02:08:35 +0000 (18:08 -0800)
commite10086285659bb7ecc5819e5c7e47f5bdc02668d
treea8d039adf8713409d53912a1c9fab70ba96407c7
parentdb7d6fbc10447090bab8691a907a7c383ec66f58
KVM: selftests: x86: sync_regs_test: Use vcpu_run() where appropriate

In the spots where we are expecting a successful run, we should
use vcpu_run() instead of _vcpu_run() to make sure that the run
did not fail.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Link: https://lore.kernel.org/r/20240208204844.119326-2-thuth@redhat.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86_64/sync_regs_test.c