]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Convert platform_info_test away from VCPU_ID
authorSean Christopherson <seanjc@google.com>
Wed, 16 Feb 2022 00:11:59 +0000 (16:11 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:46:45 +0000 (11:46 -0400)
commitc1d30bffeafdc63ba389fba4656d6bc72dc3715f
tree7f7e733ae9f6d6d5afcfe398b8688c46e538ad95
parent97bc731c939318ae4c398bbd1e99c665efe1f969
KVM: selftests: Convert platform_info_test away from VCPU_ID

Convert platform_info_test to use vm_create_with_one_vcpu() and pass
around a 'struct kvm_vcpu' object instead of using a global VCPU_ID.

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