]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Add proper helper for advancing RIP in debug_regs
authorSean Christopherson <seanjc@google.com>
Wed, 16 Feb 2022 01:09:25 +0000 (17:09 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:46:53 +0000 (11:46 -0400)
commit22b815bd95dc50e16d3a14c05db3eaeba386d36f
tree24e2044d991b6549841a6f133feeee069f08917a
parentf0c4ba25ca22d5412f84e7db89b522b15df61454
KVM: selftests: Add proper helper for advancing RIP in debug_regs

Replace MOVE_RIP+SET_RIP with a proper helper, vcpu_skip_insn(), that is
more descriptive, doesn't subtly access local variables, and provides
type safety.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/x86_64/debug_regs.c