]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Convert xapic_state_test away from hardcoded vCPU ID
authorSean Christopherson <seanjc@google.com>
Mon, 18 Apr 2022 19:11:54 +0000 (12:11 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:47:00 +0000 (11:47 -0400)
commit372ad99db7914f8b7c6fa9b3cf6c8861709a713b
treee9d2fe31ab852c2666f6117ece13b1b96e0ea3c8
parent94dca0ccf1872b2a9d4ac99793996bb65e4aadf5
KVM: selftests: Convert xapic_state_test away from hardcoded vCPU ID

Convert xapic_state_test to use vm_create_with_one_vcpu() and pass around
a 'struct kvm_vcpu' object instead of the raw vCPU ID.

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