selftests kvm all test cases need pre-required kernel config for the tests to get pass.
CONFIG_KVM=y
The KVM tests are skipped without these configs:
dev_fd = open(KVM_DEV_PATH, O_RDONLY); if (dev_fd < 0) exit(KSFT_SKIP);
Signed-off-by: Naresh Kamboju naresh.kamboju@linaro.org Acked-by: Shuah Khan skhan@linuxfoundation.org --- tools/testing/selftests/kvm/config | 1 + 1 file changed, 1 insertion(+) create mode 100644 tools/testing/selftests/kvm/config
diff --git a/tools/testing/selftests/kvm/config b/tools/testing/selftests/kvm/config new file mode 100644 index 000000000000..14f90d8d6801 --- /dev/null +++ b/tools/testing/selftests/kvm/config @@ -0,0 +1 @@ +CONFIG_KVM=y
selftests kvm x86_64 test cases need pre-required kernel configs for the tests to get pass when you are using Intel or AMD CPU.
CONFIG_KVM_INTEL=y CONFIG_KVM_AMD=y
Signed-off-by: Naresh Kamboju naresh.kamboju@linaro.org --- tools/testing/selftests/kvm/x86_64/config | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tools/testing/selftests/kvm/x86_64/config
diff --git a/tools/testing/selftests/kvm/x86_64/config b/tools/testing/selftests/kvm/x86_64/config new file mode 100644 index 000000000000..4df8c7f54885 --- /dev/null +++ b/tools/testing/selftests/kvm/x86_64/config @@ -0,0 +1,2 @@ +CONFIG_KVM_INTEL=y +CONFIG_KVM_AMD=y
On 09/08/19 09:24, Naresh Kamboju wrote:
selftests kvm all test cases need pre-required kernel config for the tests to get pass.
CONFIG_KVM=y
The KVM tests are skipped without these configs:
dev_fd = open(KVM_DEV_PATH, O_RDONLY); if (dev_fd < 0) exit(KSFT_SKIP);
Signed-off-by: Naresh Kamboju naresh.kamboju@linaro.org Acked-by: Shuah Khan skhan@linuxfoundation.org
tools/testing/selftests/kvm/config | 1 + 1 file changed, 1 insertion(+) create mode 100644 tools/testing/selftests/kvm/config
diff --git a/tools/testing/selftests/kvm/config b/tools/testing/selftests/kvm/config new file mode 100644 index 000000000000..14f90d8d6801 --- /dev/null +++ b/tools/testing/selftests/kvm/config @@ -0,0 +1 @@ +CONFIG_KVM=y
I think this is more complicated without a real benefit, so I'll merge v2.
Paolo
On Fri, 9 Aug 2019 at 13:09, Paolo Bonzini pbonzini@redhat.com wrote:
On 09/08/19 09:24, Naresh Kamboju wrote:
selftests kvm all test cases need pre-required kernel config for the tests to get pass.
CONFIG_KVM=y
The KVM tests are skipped without these configs:
dev_fd = open(KVM_DEV_PATH, O_RDONLY); if (dev_fd < 0) exit(KSFT_SKIP);
Signed-off-by: Naresh Kamboju naresh.kamboju@linaro.org Acked-by: Shuah Khan skhan@linuxfoundation.org
tools/testing/selftests/kvm/config | 1 + 1 file changed, 1 insertion(+) create mode 100644 tools/testing/selftests/kvm/config
diff --git a/tools/testing/selftests/kvm/config b/tools/testing/selftests/kvm/config new file mode 100644 index 000000000000..14f90d8d6801 --- /dev/null +++ b/tools/testing/selftests/kvm/config @@ -0,0 +1 @@ +CONFIG_KVM=y
I think this is more complicated without a real benefit, so I'll merge v2.
With the recent changes to 'kselftest-merge' nested configs also get merged. Please refer this below commit for more details. --- commit 6d3db46c8e331908775b0135dc7d2e5920bf6d90 Author: Dan Rue dan.rue@linaro.org Date: Mon May 20 10:16:14 2019 -0500
kbuild: teach kselftest-merge to find nested config files
Current implementation of kselftest-merge only finds config files that are one level deep using `$(srctree)/tools/testing/selftests/*/config`.
Often, config files are added in nested directories, and do not get picked up by kselftest-merge.
Use `find` to catch all config files under `$(srctree)/tools/testing/selftests` instead.
Signed-off-by: Dan Rue dan.rue@linaro.org Signed-off-by: Masahiro Yamada yamada.masahiro@socionext.com
- Naresh
On 09/08/19 09:53, Naresh Kamboju wrote:
I think this is more complicated without a real benefit, so I'll merge v2.
With the recent changes to 'kselftest-merge' nested configs also get merged. Please refer this below commit for more details.
Sure---both v2 and v3 work but this one adds more config files with little benefit.
Paolo
On Fri, 9 Aug 2019 at 15:48, Paolo Bonzini pbonzini@redhat.com wrote:
On 09/08/19 09:53, Naresh Kamboju wrote:
I think this is more complicated without a real benefit, so I'll merge v2.
With the recent changes to 'kselftest-merge' nested configs also get merged. Please refer this below commit for more details.
Sure---both v2 and v3 work but this one adds more config files with little benefit.
I vote for v3. Because x86_64/config have its own specific configs now. No objections and no questions will be asked from other architecture guys.
- Naresh
Paolo
linux-kselftest-mirror@lists.linaro.org