]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: selftests: Add KVM_CAP_MAX_VCPU_ID cap test
authorZeng Guang <guang.zeng@intel.com>
Fri, 22 Apr 2022 13:44:56 +0000 (21:44 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jun 2022 08:47:34 +0000 (04:47 -0400)
commit566aa815c711ae6559074cbe2de76050bcfc78e5
tree0d3c054447230b19703030f1c90fb4d0a4a4cd29
parent0ef6ffd860f48fd2d4ebfa4a414a60c3e4d84c6b
kvm: selftests: Add KVM_CAP_MAX_VCPU_ID cap test

Basic test coverage of KVM_CAP_MAX_VCPU_ID cap.

This capability can be enabled before vCPU creation and only allowed
to set once. if assigned vcpu id is beyond KVM_CAP_MAX_VCPU_ID
capability, vCPU creation will fail.

Signed-off-by: Zeng Guang <guang.zeng@intel.com>
Message-Id: <20220422134456.26655-1-guang.zeng@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/.gitignore
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/x86_64/max_vcpuid_cap_test.c [new file with mode: 0644]