diff options
author | Sean Christopherson <seanjc@google.com> | 2022-02-15 04:20:17 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-06-11 17:15:10 +0300 |
commit | 2ab2c307c734266e3c3e89d14d39c3b2327cb750 (patch) | |
tree | b2daebb7a5b42276f5687c5b4f3168b82e9eaf24 /tools/testing/selftests/kvm/x86_64/max_vcpuid_cap_test.c | |
parent | 02e04c15caeeb64a45d350a8fdeb32620b64a02d (diff) | |
download | linux-2ab2c307c734266e3c3e89d14d39c3b2327cb750.tar.xz |
KVM: selftests: Drop @mode from common vm_create() helper
Drop @mode from vm_create() and have it use VM_MODE_DEFAULT. Add and use
an inner helper, __vm_create(), to service the handful of tests that want
something other than VM_MODE_DEFAULT.
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/testing/selftests/kvm/x86_64/max_vcpuid_cap_test.c')
-rw-r--r-- | tools/testing/selftests/kvm/x86_64/max_vcpuid_cap_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/kvm/x86_64/max_vcpuid_cap_test.c b/tools/testing/selftests/kvm/x86_64/max_vcpuid_cap_test.c index 28cc316c5dbe..e83afd4bb4cf 100644 --- a/tools/testing/selftests/kvm/x86_64/max_vcpuid_cap_test.c +++ b/tools/testing/selftests/kvm/x86_64/max_vcpuid_cap_test.c @@ -18,7 +18,7 @@ int main(int argc, char *argv[]) struct kvm_enable_cap cap = { 0 }; int ret; - vm = vm_create(VM_MODE_DEFAULT, 0); + vm = vm_create(0); /* Get KVM_CAP_MAX_VCPU_ID cap supported in KVM */ ret = vm_check_cap(vm, KVM_CAP_MAX_VCPU_ID); |