linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] selftests: kvm: Adding config fragments
@ 2019-07-31 10:55 Naresh Kamboju
  2019-07-31 13:02 ` Paolo Bonzini
  0 siblings, 1 reply; 3+ messages in thread
From: Naresh Kamboju @ 2019-07-31 10:55 UTC (permalink / raw)
  To: linux-kselftest, kvm
  Cc: pbonzini, linux-kernel, drjones, sean.j.christopherson, 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 | 26 ++++++++++++++++++++++++++
 1 file changed, 26 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..3b1cbd726af6
--- /dev/null
+++ b/tools/testing/selftests/kvm/config
@@ -0,0 +1,26 @@
+CONFIG_ARCH_ENABLE_THP_MIGRATION=y
+CONFIG_HAVE_KVM_IRQCHIP=y
+CONFIG_HAVE_KVM_IRQFD=y
+CONFIG_HAVE_KVM_IRQ_ROUTING=y
+CONFIG_HAVE_KVM_EVENTFD=y
+CONFIG_KVM_MMIO=y
+CONFIG_KVM_ASYNC_PF=y
+CONFIG_HAVE_KVM_MSI=y
+CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT=y
+CONFIG_KVM_VFIO=y
+CONFIG_KVM_GENERIC_DIRTYLOG_READ_PROTECT=y
+CONFIG_KVM_COMPAT=y
+CONFIG_HAVE_KVM_IRQ_BYPASS=y
+CONFIG_HAVE_KVM_NO_POLL=y
+CONFIG_KVM=y
+CONFIG_VHOST_NET=y
+CONFIG_VHOST=y
+CONFIG_VHOST_CROSS_ENDIAN_LEGACY=y
+CONFIG_USER_RETURN_NOTIFIER=y
+CONFIG_PREEMPT_NOTIFIERS=y
+CONFIG_TRANSPARENT_HUGEPAGE=y
+CONFIG_TRANSPARENT_HUGEPAGE_MADVISE=y
+CONFIG_THP_SWAP=y
+CONFIG_TRANSPARENT_HUGE_PAGECACHE=y
+CONFIG_IRQ_BYPASS_MANAGER=y
+CONFIG_XARRAY_MULTI=y
-- 
2.17.1


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

* Re: [PATCH] selftests: kvm: Adding config fragments
  2019-07-31 10:55 [PATCH] selftests: kvm: Adding config fragments Naresh Kamboju
@ 2019-07-31 13:02 ` Paolo Bonzini
  2019-07-31 14:38   ` Naresh Kamboju
  0 siblings, 1 reply; 3+ messages in thread
From: Paolo Bonzini @ 2019-07-31 13:02 UTC (permalink / raw)
  To: Naresh Kamboju, linux-kselftest, kvm
  Cc: linux-kernel, drjones, sean.j.christopherson

On 31/07/19 12:55, Naresh Kamboju wrote:
> selftests kvm test cases need pre-required kernel configs for the test
> to get pass.
> 
> Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>

Most of these are selected by other items.  CONFIG_KVM should be enough
on ARM and s390 but MIPS, x86 and PPC may also need to select the
specific "flavors" (for example Intel/AMD for x86).

How are these used?  Are they used to build a kernel, or to check that
an existing kernel supports virtualization?

Paolo

> +CONFIG_KVM=y
> +CONFIG_VHOST_NET=y
> +CONFIG_VHOST=y
> +CONFIG_VHOST_CROSS_ENDIAN_LEGACY=y
> +CONFIG_USER_RETURN_NOTIFIER=y
> +CONFIG_PREEMPT_NOTIFIERS=y
> +CONFIG_TRANSPARENT_HUGEPAGE=y
> +CONFIG_TRANSPARENT_HUGEPAGE_MADVISE=y
> +CONFIG_THP_SWAP=y
> +CONFIG_TRANSPARENT_HUGE_PAGECACHE=y
> +CONFIG_IRQ_BYPASS_MANAGER=y
> +CONFIG_XARRAY_MULTI=y
> 


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

* Re: [PATCH] selftests: kvm: Adding config fragments
  2019-07-31 13:02 ` Paolo Bonzini
@ 2019-07-31 14:38   ` Naresh Kamboju
  0 siblings, 0 replies; 3+ messages in thread
From: Naresh Kamboju @ 2019-07-31 14:38 UTC (permalink / raw)
  To: Paolo Bonzini, Shuah Khan
  Cc: open list:KERNEL SELFTEST FRAMEWORK, kvm list, open list,
	Andrew Jones, sean.j.christopherson, lkft-triage

On Wed, 31 Jul 2019 at 18:32, Paolo Bonzini <pbonzini@redhat.com> wrote:
>
> On 31/07/19 12:55, Naresh Kamboju wrote:
> > selftests kvm test cases need pre-required kernel configs for the test
> > to get pass.
> >
> > Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>
>
> Most of these are selected by other items.  CONFIG_KVM should be enough
> on ARM and s390 but MIPS, x86 and PPC may also need to select the
> specific "flavors" (for example Intel/AMD for x86).

If the below listed configs are not harmful i would like to keep all listed
configs. Because we (Linaro 's test farm) building kernels with maximum
available kernel fragments for a given test case to get better coverage.

>
> How are these used?  Are they used to build a kernel, or to check that
> an existing kernel supports virtualization?

"make kselftest-merge"
will get configs from tools/testing/selftests/*/config
and enables configs fragments and we build kernel for running
kvm-unit-tests, kselftests, LTP, libhugetlbfs, ssuite, perf and
v4l2-compliance.

- Naresh

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

end of thread, other threads:[~2019-07-31 14:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-31 10:55 [PATCH] selftests: kvm: Adding config fragments Naresh Kamboju
2019-07-31 13:02 ` Paolo Bonzini
2019-07-31 14:38   ` Naresh Kamboju

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).