]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Convert kvm_page_table_test away from reliance on vcpu_id
authorSean Christopherson <seanjc@google.com>
Wed, 16 Feb 2022 21:06:18 +0000 (13:06 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:47:16 +0000 (11:47 -0400)
commit6e90bce24c38ffeef7277750fb1f4c66643a37fe
tree29682e0f3016848353af9605afbd78d7f69ca50f
parent63ddfbc41301db952175d151936db42f22e941e6
KVM: selftests: Convert kvm_page_table_test away from reliance on vcpu_id

Reference vCPUs by their 'struct kvm_vcpu' object in kvm_page_table_test
instead of by their ID.  This moves selftests one step closer towards
taking a 'struct kvm_vcpu *' instead of VM+vcpu_id for vCPU helpers.

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