]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita60a2338053b97533ba8620da0b7293c78dc1980
tree5cbb154e18332c4fdadb30291ecbe2683b11e65d
parent976597c82956ebf5222d6dc960a839ce1f7ec6de
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