]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Convert svm_int_ctl_test away from VCPU_ID
authorSean Christopherson <seanjc@google.com>
Tue, 15 Feb 2022 23:55:26 +0000 (15:55 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:46:43 +0000 (11:46 -0400)
commit31145a21a624fc904f33c786b3009fa781ddd15c
treec465bea9272917f9f290a2279e271d965b0f83f3
parent0b9c3f801a3752951c3b9f149e93f283670e8f45
KVM: selftests: Convert svm_int_ctl_test away from VCPU_ID

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

Opportunistically make the "vm" variable a local function variable, there
are no users outside of main().

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