KVM: selftests: Remove vcpu_get() usage from dirty_log_test
authorSean Christopherson <seanjc@google.com>
Thu, 17 Feb 2022 00:44:34 +0000 (16:44 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:47:20 +0000 (11:47 -0400)
commit64a1aacc89700f675c7648b0962519f57630b62a
tree5cbb154e18332c4fdadb30291ecbe2683b11e65d
parentdf84cef531ca481cbc1dbce84eb13efc6623e4e1
KVM: selftests: Remove vcpu_get() usage from dirty_log_test

Grab the vCPU from vm_vcpu_add() directly instead of doing vcpu_get()
after the fact.  This will allow removing vcpu_get() entirely.

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