linux-kselftest.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] selftests: kvm: Adding config fragments
@ 2019-08-07 13:58 Naresh Kamboju
  2019-08-07 15:52 ` shuah
  0 siblings, 1 reply; 10+ messages in thread
From: Naresh Kamboju @ 2019-08-07 13:58 UTC (permalink / raw)
  To: pbonzini, linux-kernel, drjones, sean.j.christopherson,
	linux-kselftest, kvm
  Cc: Naresh Kamboju

selftests kvm test cases need pre-required kernel configs for the test
to get pass.

Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>
---
 tools/testing/selftests/kvm/config | 3 +++
 1 file changed, 3 insertions(+)
 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..63ed533f73d6
--- /dev/null
+++ b/tools/testing/selftests/kvm/config
@@ -0,0 +1,3 @@
+CONFIG_KVM=y
+CONFIG_KVM_INTEL=y
+CONFIG_KVM_AMD=y
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread
* [PATCH v2] selftests: kvm: Adding config fragments
@ 2019-08-08 12:31 Naresh Kamboju
  2019-08-08 15:10 ` Andrew Jones
  2019-08-08 17:22 ` shuah
  0 siblings, 2 replies; 10+ messages in thread
From: Naresh Kamboju @ 2019-08-08 12:31 UTC (permalink / raw)
  To: pbonzini, shuah
  Cc: linux-kernel, drjones, sean.j.christopherson, linux-kselftest,
	kvm, Naresh Kamboju

selftests kvm all test cases need pre-required kernel configs for the
tests to get pass.

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>
---
 tools/testing/selftests/kvm/config | 3 +++
 1 file changed, 3 insertions(+)
 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..63ed533f73d6
--- /dev/null
+++ b/tools/testing/selftests/kvm/config
@@ -0,0 +1,3 @@
+CONFIG_KVM=y
+CONFIG_KVM_INTEL=y
+CONFIG_KVM_AMD=y
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-08-09  7:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-07 13:58 [PATCH v2] selftests: kvm: Adding config fragments Naresh Kamboju
2019-08-07 15:52 ` shuah
2019-08-07 16:19   ` Paolo Bonzini
2019-08-07 16:25     ` shuah
2019-08-08 12:31 Naresh Kamboju
2019-08-08 15:10 ` Andrew Jones
2019-08-08 16:00   ` Paolo Bonzini
2019-08-09  7:35     ` Naresh Kamboju
2019-08-09  7:27   ` Naresh Kamboju
2019-08-08 17:22 ` shuah

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).