linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] config: Add 'make kvmconfig'
@ 2011-10-27 12:07 Sasha Levin
  2011-10-27 12:12 ` Pekka Enberg
                   ` (2 more replies)
  0 siblings, 3 replies; 30+ messages in thread
From: Sasha Levin @ 2011-10-27 12:07 UTC (permalink / raw)
  To: linux-kernel
  Cc: Sasha Levin, Ingo Molnar, Linus Torvalds, Michal Marek,
	Pekka Enberg, linux-kbuild

This patch adds 'make kvmconfig' which allows to add KVM guest support
to a config file.

This allows for easier testing of configurations under virtualized
environments.

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Michal Marek <mmarek@suse.cz>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: linux-kbuild@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Suggested-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
---

Updated sym list to include everything required when starting from
'make allnoconfig' plus KGDB support.

 arch/x86/Kconfig         |   27 +++++++++++++++++++++++++++
 scripts/kconfig/Makefile |    6 +++++-
 2 files changed, 32 insertions(+), 1 deletions(-)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 6a47bb2..0b74528 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -520,6 +520,33 @@ config SCHED_OMIT_FRAME_POINTER
 
 	  If in doubt, say "Y".
 
+config KVMTOOL_TEST_ENABLE
+	bool "Enable options to create a bootable tools/kvm/ kernel"
+	select NET
+	select NETDEVICES
+	select PCI
+	select BLK_DEV
+	select NETWORK_FILESYSTEMS
+	select INET
+	select EXPERIMENTAL
+	select SERIAL_8250
+	select SERIAL_8250_CONSOLE
+	select IP_PNP
+	select IP_PNP_DHCP
+	select BINFMT_ELF
+	select PCI_MSI
+	select KGDB
+	select KGDB_SERIAL_CONSOLE
+	select VIRTIO
+	select VIRTIO_RING
+	select VIRTIO_PCI
+	select VIRTIO_BLK
+	select VIRTIO_CONSOLE
+	select VIRTIO_NET
+	select 9P_FS
+	select NET_9P
+	select NET_9P_VIRTIO
+
 menuconfig PARAVIRT_GUEST
 	bool "Paravirtualized guest support"
 	---help---
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index 82d2eb2..356e551 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -3,7 +3,7 @@
 # These targets are used from top-level makefile
 
 PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config \
-	localmodconfig localyesconfig
+	localmodconfig localyesconfig kvmconfig
 
 ifdef KBUILD_KCONFIG
 Kconfig := $(KBUILD_KCONFIG)
@@ -33,6 +33,10 @@ silentoldconfig: $(obj)/conf
 	$(Q)mkdir -p include/generated
 	$< --$@ $(Kconfig)
 
+kvmconfig:
+	$(Q)$(CONFIG_SHELL) $(srctree)/scripts/config -e KVMTOOL_TEST_ENABLE
+	@echo 'Kernel configuration modified to run as KVM guest.'
+
 # if no path is given, then use src directory to find file
 ifdef LSMOD
 LSMOD_F := $(LSMOD)
-- 
1.7.7.1


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

* Re: [PATCH] config: Add 'make kvmconfig'
  2011-10-27 12:07 [PATCH] config: Add 'make kvmconfig' Sasha Levin
@ 2011-10-27 12:12 ` Pekka Enberg
  2011-10-27 12:37   ` Ingo Molnar
  2011-10-27 18:05 ` Rabin Vincent
  2011-10-27 19:34 ` Sam Ravnborg
  2 siblings, 1 reply; 30+ messages in thread
From: Pekka Enberg @ 2011-10-27 12:12 UTC (permalink / raw)
  To: Sasha Levin
  Cc: linux-kernel, Ingo Molnar, Linus Torvalds, Michal Marek,
	linux-kbuild

On Thu, Oct 27, 2011 at 3:07 PM, Sasha Levin <levinsasha928@gmail.com> wrote:
> This patch adds 'make kvmconfig' which allows to add KVM guest support
> to a config file.
>
> This allows for easier testing of configurations under virtualized
> environments.
>
> Cc: Ingo Molnar <mingo@elte.hu>
> Cc: Linus Torvalds <torvalds@linux-foundation.org>
> Cc: Michal Marek <mmarek@suse.cz>
> Cc: Pekka Enberg <penberg@cs.helsinki.fi>
> Cc: linux-kbuild@vger.kernel.org
> Cc: linux-kernel@vger.kernel.org
> Suggested-by: Ingo Molnar <mingo@elte.hu>
> Signed-off-by: Sasha Levin <levinsasha928@gmail.com>

Acked-by: Pekka Enberg <penberg@kernel.org>

Btw, Michal, if people are OK with the patch I'd really love to take
this patch in my kvmtool git tree to have it contained in a single
pull request.

> ---
>
> Updated sym list to include everything required when starting from
> 'make allnoconfig' plus KGDB support.
>
>  arch/x86/Kconfig         |   27 +++++++++++++++++++++++++++
>  scripts/kconfig/Makefile |    6 +++++-
>  2 files changed, 32 insertions(+), 1 deletions(-)
>
> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
> index 6a47bb2..0b74528 100644
> --- a/arch/x86/Kconfig
> +++ b/arch/x86/Kconfig
> @@ -520,6 +520,33 @@ config SCHED_OMIT_FRAME_POINTER
>
>          If in doubt, say "Y".
>
> +config KVMTOOL_TEST_ENABLE
> +       bool "Enable options to create a bootable tools/kvm/ kernel"
> +       select NET
> +       select NETDEVICES
> +       select PCI
> +       select BLK_DEV
> +       select NETWORK_FILESYSTEMS
> +       select INET
> +       select EXPERIMENTAL
> +       select SERIAL_8250
> +       select SERIAL_8250_CONSOLE
> +       select IP_PNP
> +       select IP_PNP_DHCP
> +       select BINFMT_ELF
> +       select PCI_MSI
> +       select KGDB
> +       select KGDB_SERIAL_CONSOLE
> +       select VIRTIO
> +       select VIRTIO_RING
> +       select VIRTIO_PCI
> +       select VIRTIO_BLK
> +       select VIRTIO_CONSOLE
> +       select VIRTIO_NET
> +       select 9P_FS
> +       select NET_9P
> +       select NET_9P_VIRTIO
> +
>  menuconfig PARAVIRT_GUEST
>        bool "Paravirtualized guest support"
>        ---help---
> diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
> index 82d2eb2..356e551 100644
> --- a/scripts/kconfig/Makefile
> +++ b/scripts/kconfig/Makefile
> @@ -3,7 +3,7 @@
>  # These targets are used from top-level makefile
>
>  PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config \
> -       localmodconfig localyesconfig
> +       localmodconfig localyesconfig kvmconfig
>
>  ifdef KBUILD_KCONFIG
>  Kconfig := $(KBUILD_KCONFIG)
> @@ -33,6 +33,10 @@ silentoldconfig: $(obj)/conf
>        $(Q)mkdir -p include/generated
>        $< --$@ $(Kconfig)
>
> +kvmconfig:
> +       $(Q)$(CONFIG_SHELL) $(srctree)/scripts/config -e KVMTOOL_TEST_ENABLE
> +       @echo 'Kernel configuration modified to run as KVM guest.'
> +
>  # if no path is given, then use src directory to find file
>  ifdef LSMOD
>  LSMOD_F := $(LSMOD)
> --
> 1.7.7.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>

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

* Re: [PATCH] config: Add 'make kvmconfig'
  2011-10-27 12:12 ` Pekka Enberg
@ 2011-10-27 12:37   ` Ingo Molnar
  2011-10-27 12:51     ` Michal Marek
  0 siblings, 1 reply; 30+ messages in thread
From: Ingo Molnar @ 2011-10-27 12:37 UTC (permalink / raw)
  To: Pekka Enberg
  Cc: Sasha Levin, linux-kernel, Linus Torvalds, Michal Marek,
	linux-kbuild


* Pekka Enberg <penberg@kernel.org> wrote:

> On Thu, Oct 27, 2011 at 3:07 PM, Sasha Levin <levinsasha928@gmail.com> wrote:
> > This patch adds 'make kvmconfig' which allows to add KVM guest support
> > to a config file.
> >
> > This allows for easier testing of configurations under virtualized
> > environments.
> >
> > Cc: Ingo Molnar <mingo@elte.hu>
> > Cc: Linus Torvalds <torvalds@linux-foundation.org>
> > Cc: Michal Marek <mmarek@suse.cz>
> > Cc: Pekka Enberg <penberg@cs.helsinki.fi>
> > Cc: linux-kbuild@vger.kernel.org
> > Cc: linux-kernel@vger.kernel.org
> > Suggested-by: Ingo Molnar <mingo@elte.hu>
> > Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
> 
> Acked-by: Pekka Enberg <penberg@kernel.org>
> 
> Btw, Michal, if people are OK with the patch I'd really love to 
> take this patch in my kvmtool git tree to have it contained in a 
> single pull request.

I like the feature - i hope it's expressed in the right Kbuild-ish 
fashion.

Acked-by: Ingo Molnar <mingo@elte.hu>

Thanks,

	Ingo

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

* Re: [PATCH] config: Add 'make kvmconfig'
  2011-10-27 12:37   ` Ingo Molnar
@ 2011-10-27 12:51     ` Michal Marek
  2011-10-27 13:34       ` Ingo Molnar
  2011-10-27 14:11       ` Pekka Enberg
  0 siblings, 2 replies; 30+ messages in thread
From: Michal Marek @ 2011-10-27 12:51 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Pekka Enberg, Sasha Levin, linux-kernel, Linus Torvalds,
	linux-kbuild

On 27.10.2011 14:37, Ingo Molnar wrote:
> 
> * Pekka Enberg <penberg@kernel.org> wrote:
> 
>> On Thu, Oct 27, 2011 at 3:07 PM, Sasha Levin <levinsasha928@gmail.com> wrote:
>>> This patch adds 'make kvmconfig' which allows to add KVM guest support
>>> to a config file.
>>>
>>> This allows for easier testing of configurations under virtualized
>>> environments.
>>>
>>> Cc: Ingo Molnar <mingo@elte.hu>
>>> Cc: Linus Torvalds <torvalds@linux-foundation.org>
>>> Cc: Michal Marek <mmarek@suse.cz>
>>> Cc: Pekka Enberg <penberg@cs.helsinki.fi>
>>> Cc: linux-kbuild@vger.kernel.org
>>> Cc: linux-kernel@vger.kernel.org
>>> Suggested-by: Ingo Molnar <mingo@elte.hu>
>>> Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
>>
>> Acked-by: Pekka Enberg <penberg@kernel.org>
>>
>> Btw, Michal, if people are OK with the patch I'd really love to 
>> take this patch in my kvmtool git tree to have it contained in a 
>> single pull request.
> 
> I like the feature - i hope it's expressed in the right Kbuild-ish 
> fashion.
> 
> Acked-by: Ingo Molnar <mingo@elte.hu>

I hope we won't now also be getting make nfsconfig, make paeconfig and
whatnot :). Also, the lists of select statements might need updates from
time to time, if new dependencies appear.

Michal

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

* Re: [PATCH] config: Add 'make kvmconfig'
  2011-10-27 12:51     ` Michal Marek
@ 2011-10-27 13:34       ` Ingo Molnar
  2011-10-27 14:11       ` Pekka Enberg
  1 sibling, 0 replies; 30+ messages in thread
From: Ingo Molnar @ 2011-10-27 13:34 UTC (permalink / raw)
  To: Michal Marek
  Cc: Pekka Enberg, Sasha Levin, linux-kernel, Linus Torvalds,
	linux-kbuild


* Michal Marek <mmarek@suse.cz> wrote:

> On 27.10.2011 14:37, Ingo Molnar wrote:
> > 
> > * Pekka Enberg <penberg@kernel.org> wrote:
> > 
> >> On Thu, Oct 27, 2011 at 3:07 PM, Sasha Levin <levinsasha928@gmail.com> wrote:
> >>> This patch adds 'make kvmconfig' which allows to add KVM guest support
> >>> to a config file.
> >>>
> >>> This allows for easier testing of configurations under virtualized
> >>> environments.
> >>>
> >>> Cc: Ingo Molnar <mingo@elte.hu>
> >>> Cc: Linus Torvalds <torvalds@linux-foundation.org>
> >>> Cc: Michal Marek <mmarek@suse.cz>
> >>> Cc: Pekka Enberg <penberg@cs.helsinki.fi>
> >>> Cc: linux-kbuild@vger.kernel.org
> >>> Cc: linux-kernel@vger.kernel.org
> >>> Suggested-by: Ingo Molnar <mingo@elte.hu>
> >>> Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
> >>
> >> Acked-by: Pekka Enberg <penberg@kernel.org>
> >>
> >> Btw, Michal, if people are OK with the patch I'd really love to 
> >> take this patch in my kvmtool git tree to have it contained in a 
> >> single pull request.
> > 
> > I like the feature - i hope it's expressed in the right Kbuild-ish 
> > fashion.
> > 
> > Acked-by: Ingo Molnar <mingo@elte.hu>
> 
> I hope we won't now also be getting make nfsconfig, make paeconfig 
> and whatnot :).

;-)

Well, we could make any such future naming fit into it naturally. 
'make defconfig kvm' perhaps?

> [...] Also, the lists of select statements might need updates from 
> time to time, if new dependencies appear.

Yeah, correct.

I have a similar solution myself, a 'make ingoconfig' in essence, to 
make stuff boot on my test-boxes - and updates are needed every now 
and then - about once a year. It's manageable.

Thanks,

	Ingo

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

* Re: [PATCH] config: Add 'make kvmconfig'
  2011-10-27 12:51     ` Michal Marek
  2011-10-27 13:34       ` Ingo Molnar
@ 2011-10-27 14:11       ` Pekka Enberg
  2011-10-27 14:32         ` Michal Marek
  2011-10-27 15:19         ` Arnaud Lacombe
  1 sibling, 2 replies; 30+ messages in thread
From: Pekka Enberg @ 2011-10-27 14:11 UTC (permalink / raw)
  To: Michal Marek
  Cc: Ingo Molnar, Sasha Levin, linux-kernel, Linus Torvalds,
	linux-kbuild

On Thu, Oct 27, 2011 at 3:51 PM, Michal Marek <mmarek@suse.cz> wrote:
>> I like the feature - i hope it's expressed in the right Kbuild-ish
>> fashion.
>>
>> Acked-by: Ingo Molnar <mingo@elte.hu>
>
> I hope we won't now also be getting make nfsconfig, make paeconfig and
> whatnot :). Also, the lists of select statements might need updates from
> time to time, if new dependencies appear.

The use case is to be able to take a .config posted in a bug report
and easily turn that into something that the KVM tool can boot.

"kvmconfig" really represents a virtualized x86 architecture
configuration. Maybe the naming is off because it's not about
individual features like paeconfig or nfsconfig would be but rather
about turning on all the required options for virtualized x86 for the
KVM tool.

If you have better ideas how to do this, we're happy to change the
implementation.

                        Pekka

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

* Re: [PATCH] config: Add 'make kvmconfig'
  2011-10-27 14:11       ` Pekka Enberg
@ 2011-10-27 14:32         ` Michal Marek
  2011-10-27 15:05           ` Arnaud Lacombe
  2011-10-27 15:19         ` Arnaud Lacombe
  1 sibling, 1 reply; 30+ messages in thread
From: Michal Marek @ 2011-10-27 14:32 UTC (permalink / raw)
  To: Pekka Enberg
  Cc: Ingo Molnar, Sasha Levin, linux-kernel, Linus Torvalds,
	linux-kbuild

On 27.10.2011 16:11, Pekka Enberg wrote:
> On Thu, Oct 27, 2011 at 3:51 PM, Michal Marek <mmarek@suse.cz> wrote:
>>> I like the feature - i hope it's expressed in the right Kbuild-ish
>>> fashion.
>>>
>>> Acked-by: Ingo Molnar <mingo@elte.hu>
>>
>> I hope we won't now also be getting make nfsconfig, make paeconfig and
>> whatnot :). Also, the lists of select statements might need updates from
>> time to time, if new dependencies appear.
> 
> The use case is to be able to take a .config posted in a bug report
> and easily turn that into something that the KVM tool can boot.
> 
> "kvmconfig" really represents a virtualized x86 architecture
> configuration. Maybe the naming is off because it's not about
> individual features like paeconfig or nfsconfig would be but rather
> about turning on all the required options for virtualized x86 for the
> KVM tool.

OK, if it's just this single use case, then why not.


> If you have better ideas how to do this, we're happy to change the
> implementation.

The implementation is not as important as the new user interface that
people get used to. And I think the user interface is OK. Regarding
implementation, expect that you'll have to add more select statements
from time to time. But there is ATM no better solution to this.

Michal

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

* Re: [PATCH] config: Add 'make kvmconfig'
  2011-10-27 14:32         ` Michal Marek
@ 2011-10-27 15:05           ` Arnaud Lacombe
  0 siblings, 0 replies; 30+ messages in thread
From: Arnaud Lacombe @ 2011-10-27 15:05 UTC (permalink / raw)
  To: Michal Marek
  Cc: Pekka Enberg, Ingo Molnar, Sasha Levin, linux-kernel,
	Linus Torvalds, linux-kbuild

Hi,

On Thu, Oct 27, 2011 at 10:32 AM, Michal Marek <mmarek@suse.cz> wrote:
> On 27.10.2011 16:11, Pekka Enberg wrote:
>> On Thu, Oct 27, 2011 at 3:51 PM, Michal Marek <mmarek@suse.cz> wrote:
>>>> I like the feature - i hope it's expressed in the right Kbuild-ish
>>>> fashion.
>>>>
>>>> Acked-by: Ingo Molnar <mingo@elte.hu>
>>>
>>> I hope we won't now also be getting make nfsconfig, make paeconfig and
>>> whatnot :). Also, the lists of select statements might need updates from
>>> time to time, if new dependencies appear.
>>
>> The use case is to be able to take a .config posted in a bug report
>> and easily turn that into something that the KVM tool can boot.
>>
>> "kvmconfig" really represents a virtualized x86 architecture
>> configuration. Maybe the naming is off because it's not about
>> individual features like paeconfig or nfsconfig would be but rather
>> about turning on all the required options for virtualized x86 for the
>> KVM tool.
>
> OK, if it's just this single use case, then why not.
>
Still, it should not be a pretext to open the Pendora's box and have
15 different hack popping up in the future.

>> If you have better ideas how to do this, we're happy to change the
>> implementation.
>
> The implementation is not as important as the new user interface that
> people get used to. And I think the user interface is OK. Regarding
> implementation, expect that you'll have to add more select statements
> from time to time. But there is ATM no better solution to this.
>
what about providing hook for sourcing a given Makefile ? I can have a
look at that tonight.

 - Arnaud

> Michal
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

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

* Re: [PATCH] config: Add 'make kvmconfig'
  2011-10-27 14:11       ` Pekka Enberg
  2011-10-27 14:32         ` Michal Marek
@ 2011-10-27 15:19         ` Arnaud Lacombe
  2011-10-27 15:30           ` Pekka Enberg
  1 sibling, 1 reply; 30+ messages in thread
From: Arnaud Lacombe @ 2011-10-27 15:19 UTC (permalink / raw)
  To: Pekka Enberg
  Cc: Michal Marek, Ingo Molnar, Sasha Levin, linux-kernel,
	Linus Torvalds, linux-kbuild

Hi,

On Thu, Oct 27, 2011 at 10:11 AM, Pekka Enberg <penberg@kernel.org> wrote:
> On Thu, Oct 27, 2011 at 3:51 PM, Michal Marek <mmarek@suse.cz> wrote:
>>> I like the feature - i hope it's expressed in the right Kbuild-ish
>>> fashion.
>>>
>>> Acked-by: Ingo Molnar <mingo@elte.hu>
>>
>> I hope we won't now also be getting make nfsconfig, make paeconfig and
>> whatnot :). Also, the lists of select statements might need updates from
>> time to time, if new dependencies appear.
>
> The use case is to be able to take a .config posted in a bug report
> and easily turn that into something that the KVM tool can boot.
>
> "kvmconfig" really represents a virtualized x86 architecture
> configuration.
>
How do you expect:

# make ARCH=hexagon kvmconfig

to behave ? If it is not meant to work outside the x86 world, it
should not be accessible outside the x86 world.

> Maybe the naming is off because it's not about
> individual features like paeconfig or nfsconfig would be but rather
> about turning on all the required options for virtualized x86 for the
> KVM tool.
>
> If you have better ideas how to do this, we're happy to change the
> implementation.
>
As I said, I'll have a look tonight to provide a better implementation.

 - Arnaud

>                        Pekka
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

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

* Re: [PATCH] config: Add 'make kvmconfig'
  2011-10-27 15:19         ` Arnaud Lacombe
@ 2011-10-27 15:30           ` Pekka Enberg
  0 siblings, 0 replies; 30+ messages in thread
From: Pekka Enberg @ 2011-10-27 15:30 UTC (permalink / raw)
  To: Arnaud Lacombe
  Cc: Michal Marek, Ingo Molnar, Sasha Levin, linux-kernel,
	Linus Torvalds, linux-kbuild

On Thu, Oct 27, 2011 at 6:19 PM, Arnaud Lacombe <lacombar@gmail.com> wrote:
>> The use case is to be able to take a .config posted in a bug report
>> and easily turn that into something that the KVM tool can boot.
>>
>> "kvmconfig" really represents a virtualized x86 architecture
>> configuration.
>>
> How do you expect:
>
> # make ARCH=hexagon kvmconfig
>
> to behave ? If it is not meant to work outside the x86 world, it
> should not be accessible outside the x86 world.

Right. Hexagon is not interesting but ARM and PowerPC will be if
someone ports the KVM tool to the architectures.

>> Maybe the naming is off because it's not about
>> individual features like paeconfig or nfsconfig would be but rather
>> about turning on all the required options for virtualized x86 for the
>> KVM tool.
>>
>> If you have better ideas how to do this, we're happy to change the
>> implementation.
>>
> As I said, I'll have a look tonight to provide a better implementation.

Excellent, thanks!

                        Pekka

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

* Re: [PATCH] config: Add 'make kvmconfig'
  2011-10-27 12:07 [PATCH] config: Add 'make kvmconfig' Sasha Levin
  2011-10-27 12:12 ` Pekka Enberg
@ 2011-10-27 18:05 ` Rabin Vincent
  2011-10-27 20:46   ` Sasha Levin
  2011-10-27 19:34 ` Sam Ravnborg
  2 siblings, 1 reply; 30+ messages in thread
From: Rabin Vincent @ 2011-10-27 18:05 UTC (permalink / raw)
  To: Sasha Levin
  Cc: linux-kernel, Ingo Molnar, Linus Torvalds, Michal Marek,
	Pekka Enberg, linux-kbuild

On Thu, Oct 27, 2011 at 17:37, Sasha Levin <levinsasha928@gmail.com> wrote:
> +config KVMTOOL_TEST_ENABLE
> +       bool "Enable options to create a bootable tools/kvm/ kernel"
> +       select NET
> +       select NETDEVICES
> +       select PCI
> +       select BLK_DEV
> +       select NETWORK_FILESYSTEMS
> +       select INET
> +       select EXPERIMENTAL
> +       select SERIAL_8250
> +       select SERIAL_8250_CONSOLE
> +       select IP_PNP
> +       select IP_PNP_DHCP
> +       select BINFMT_ELF
> +       select PCI_MSI
> +       select KGDB
> +       select KGDB_SERIAL_CONSOLE
> +       select VIRTIO
> +       select VIRTIO_RING
> +       select VIRTIO_PCI
> +       select VIRTIO_BLK
> +       select VIRTIO_CONSOLE
> +       select VIRTIO_NET
> +       select 9P_FS
> +       select NET_9P
> +       select NET_9P_VIRTIO

This lot doesn't seem to be enough for me on next-20111025.  I seem to
have to also enable CONFIG_FB_VESA for the kernel to boot.

Without CONFIG_FB_VESA, I just get:

$ tools/kvm/kvm run --debug arch/x86/boot/bzImage --disk
~/kernel/linux-0.2.img
  # kvm run -k arch/x86/boot/bzImage -m 448 -c 4 --name guest-11466
PPrroobbiinngg  EEDDDD  ((eedddd==ooffff  ttoo  ddiissaabbllee))......  ookk
<no more output>

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

* Re: [PATCH] config: Add 'make kvmconfig'
  2011-10-27 12:07 [PATCH] config: Add 'make kvmconfig' Sasha Levin
  2011-10-27 12:12 ` Pekka Enberg
  2011-10-27 18:05 ` Rabin Vincent
@ 2011-10-27 19:34 ` Sam Ravnborg
  2011-10-28  7:03   ` Ingo Molnar
  2 siblings, 1 reply; 30+ messages in thread
From: Sam Ravnborg @ 2011-10-27 19:34 UTC (permalink / raw)
  To: Sasha Levin
  Cc: linux-kernel, Ingo Molnar, Linus Torvalds, Michal Marek,
	Pekka Enberg, linux-kbuild

On Thu, Oct 27, 2011 at 02:07:14PM +0200, Sasha Levin wrote:
> This patch adds 'make kvmconfig' which allows to add KVM guest support
> to a config file.
> 
> This allows for easier testing of configurations under virtualized
> environments.
> 
> Cc: Ingo Molnar <mingo@elte.hu>
> Cc: Linus Torvalds <torvalds@linux-foundation.org>
> Cc: Michal Marek <mmarek@suse.cz>
> Cc: Pekka Enberg <penberg@cs.helsinki.fi>
> Cc: linux-kbuild@vger.kernel.org
> Cc: linux-kernel@vger.kernel.org
> Suggested-by: Ingo Molnar <mingo@elte.hu>
> Signed-off-by: Sasha Levin <levinsasha928@gmail.com>

Two points about the implmentation that I do not like...

The kvmconfig is an x86 specific thing - so it does not belong
in the scripts/kconfig/Makefile

The *config namespace is general config targets.

Suggestion:
Move the implmentation to arch/x86/Makefile and name the target
something that does not match the *config pattern.

Suggestion:

   make kvmbootable

To tell that this convert the current config to a kvmbootable config.

And then add the target to the x86 specific help too.

	Sam

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

* Re: [PATCH] config: Add 'make kvmconfig'
  2011-10-27 18:05 ` Rabin Vincent
@ 2011-10-27 20:46   ` Sasha Levin
  0 siblings, 0 replies; 30+ messages in thread
From: Sasha Levin @ 2011-10-27 20:46 UTC (permalink / raw)
  To: Rabin Vincent
  Cc: linux-kernel, Ingo Molnar, Linus Torvalds, Michal Marek,
	Pekka Enberg, linux-kbuild

On Thu, 2011-10-27 at 23:35 +0530, Rabin Vincent wrote:
> On Thu, Oct 27, 2011 at 17:37, Sasha Levin <levinsasha928@gmail.com> wrote:
> > +config KVMTOOL_TEST_ENABLE
> > +       bool "Enable options to create a bootable tools/kvm/ kernel"
> > +       select NET
> > +       select NETDEVICES
> > +       select PCI
> > +       select BLK_DEV
> > +       select NETWORK_FILESYSTEMS
> > +       select INET
> > +       select EXPERIMENTAL
> > +       select SERIAL_8250
> > +       select SERIAL_8250_CONSOLE
> > +       select IP_PNP
> > +       select IP_PNP_DHCP
> > +       select BINFMT_ELF
> > +       select PCI_MSI
> > +       select KGDB
> > +       select KGDB_SERIAL_CONSOLE
> > +       select VIRTIO
> > +       select VIRTIO_RING
> > +       select VIRTIO_PCI
> > +       select VIRTIO_BLK
> > +       select VIRTIO_CONSOLE
> > +       select VIRTIO_NET
> > +       select 9P_FS
> > +       select NET_9P
> > +       select NET_9P_VIRTIO
> 
> This lot doesn't seem to be enough for me on next-20111025.  I seem to
> have to also enable CONFIG_FB_VESA for the kernel to boot.
> 
> Without CONFIG_FB_VESA, I just get:
> 
> $ tools/kvm/kvm run --debug arch/x86/boot/bzImage --disk
> ~/kernel/linux-0.2.img
>   # kvm run -k arch/x86/boot/bzImage -m 448 -c 4 --name guest-11466
> PPrroobbiinngg  EEDDDD  ((eedddd==ooffff  ttoo  ddiissaabbllee))......  ookk
> <no more output>

This is a kvm tools issue and should be fixed within kvm tools.

-- 

Sasha.


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

* Re: [PATCH] config: Add 'make kvmconfig'
  2011-10-27 19:34 ` Sam Ravnborg
@ 2011-10-28  7:03   ` Ingo Molnar
  2011-10-28  7:23     ` Sasha Levin
  2011-10-28  7:52     ` Geert Uytterhoeven
  0 siblings, 2 replies; 30+ messages in thread
From: Ingo Molnar @ 2011-10-28  7:03 UTC (permalink / raw)
  To: Sam Ravnborg
  Cc: Sasha Levin, linux-kernel, Linus Torvalds, Michal Marek,
	Pekka Enberg, linux-kbuild


* Sam Ravnborg <sam@ravnborg.org> wrote:

> On Thu, Oct 27, 2011 at 02:07:14PM +0200, Sasha Levin wrote:
> > This patch adds 'make kvmconfig' which allows to add KVM guest support
> > to a config file.
> > 
> > This allows for easier testing of configurations under virtualized
> > environments.
> > 
> > Cc: Ingo Molnar <mingo@elte.hu>
> > Cc: Linus Torvalds <torvalds@linux-foundation.org>
> > Cc: Michal Marek <mmarek@suse.cz>
> > Cc: Pekka Enberg <penberg@cs.helsinki.fi>
> > Cc: linux-kbuild@vger.kernel.org
> > Cc: linux-kernel@vger.kernel.org
> > Suggested-by: Ingo Molnar <mingo@elte.hu>
> > Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
> 
> Two points about the implmentation that I do not like...
> 
> The kvmconfig is an x86 specific thing - so it does not belong
> in the scripts/kconfig/Makefile
> 
> The *config namespace is general config targets.
> 
> Suggestion:
> Move the implmentation to arch/x86/Makefile and name the target
> something that does not match the *config pattern.
> 
> Suggestion:
> 
>    make kvmbootable
> 
> To tell that this convert the current config to a kvmbootable config.
> 
> And then add the target to the x86 specific help too.

KVM itself is not x86 specific (although this patch obviously is), so 
we'd like to keep at least the naming non-x86.

Furthermore, the functionality generally fits into the pattern that 
'oldconfig' does: it changes an existing config - so having 'config' 
in the name somewhere makes quite a bit of sense. If i didn't know 
what 'kvmbootable' does i couldnt guess that it touches the .config - 
while the *config pattern makes that patently obvious.

Could we set aside some sort of name for such subsystem specific 
purposes and be done with it? Could we reuse the 'defconfig' 
naming perhaps and make it richer:

	make defconfig kvm

or:

	make defconfig-kvm

? It would be very obvious at a glance what it does.

Thanks,

	Ingo

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

* Re: [PATCH] config: Add 'make kvmconfig'
  2011-10-28  7:03   ` Ingo Molnar
@ 2011-10-28  7:23     ` Sasha Levin
  2011-10-28  7:39       ` Ingo Molnar
  2011-10-28  7:52     ` Geert Uytterhoeven
  1 sibling, 1 reply; 30+ messages in thread
From: Sasha Levin @ 2011-10-28  7:23 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Sam Ravnborg, linux-kernel, Linus Torvalds, Michal Marek,
	Pekka Enberg, linux-kbuild

On Fri, 2011-10-28 at 09:03 +0200, Ingo Molnar wrote:
> * Sam Ravnborg <sam@ravnborg.org> wrote:
> 
> > On Thu, Oct 27, 2011 at 02:07:14PM +0200, Sasha Levin wrote:
> > > This patch adds 'make kvmconfig' which allows to add KVM guest support
> > > to a config file.
> > > 
> > > This allows for easier testing of configurations under virtualized
> > > environments.
> > > 
> > > Cc: Ingo Molnar <mingo@elte.hu>
> > > Cc: Linus Torvalds <torvalds@linux-foundation.org>
> > > Cc: Michal Marek <mmarek@suse.cz>
> > > Cc: Pekka Enberg <penberg@cs.helsinki.fi>
> > > Cc: linux-kbuild@vger.kernel.org
> > > Cc: linux-kernel@vger.kernel.org
> > > Suggested-by: Ingo Molnar <mingo@elte.hu>
> > > Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
> > 
> > Two points about the implmentation that I do not like...
> > 
> > The kvmconfig is an x86 specific thing - so it does not belong
> > in the scripts/kconfig/Makefile
> > 
> > The *config namespace is general config targets.
> > 
> > Suggestion:
> > Move the implmentation to arch/x86/Makefile and name the target
> > something that does not match the *config pattern.
> > 
> > Suggestion:
> > 
> >    make kvmbootable
> > 
> > To tell that this convert the current config to a kvmbootable config.
> > 
> > And then add the target to the x86 specific help too.
> 
> KVM itself is not x86 specific (although this patch obviously is), so 
> we'd like to keep at least the naming non-x86.
> 
> Furthermore, the functionality generally fits into the pattern that 
> 'oldconfig' does: it changes an existing config - so having 'config' 
> in the name somewhere makes quite a bit of sense. If i didn't know 
> what 'kvmbootable' does i couldnt guess that it touches the .config - 
> while the *config pattern makes that patently obvious.
> 
> Could we set aside some sort of name for such subsystem specific 
> purposes and be done with it? Could we reuse the 'defconfig' 
> naming perhaps and make it richer:
> 
> 	make defconfig kvm
> 
> or:
> 
> 	make defconfig-kvm
> 
> ? It would be very obvious at a glance what it does.

We can possibly make 'make defconfig abc' run arch specific script
located next to the defconfig files (arch/$(ARCH)/configs/).

It would both solve the problem with being arch specific, and would
allow for future expansion of other 'kvm defconfig' options.

-- 

Sasha.


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

* Re: [PATCH] config: Add 'make kvmconfig'
  2011-10-28  7:23     ` Sasha Levin
@ 2011-10-28  7:39       ` Ingo Molnar
  2011-10-28  7:47         ` Sasha Levin
  0 siblings, 1 reply; 30+ messages in thread
From: Ingo Molnar @ 2011-10-28  7:39 UTC (permalink / raw)
  To: Sasha Levin
  Cc: Sam Ravnborg, linux-kernel, Linus Torvalds, Michal Marek,
	Pekka Enberg, linux-kbuild


* Sasha Levin <levinsasha928@gmail.com> wrote:

> > ? It would be very obvious at a glance what it does.
> 
> We can possibly make 'make defconfig abc' run arch specific script 
> located next to the defconfig files (arch/$(ARCH)/configs/).

AFAICS that's not the same as the current kvmconfig functionality 
though: we want to minimally enable certain config options in the 
current .config - not pick some default config.

My main usecase for this is that i want to minimally change .config's 
that get mailed to me, to reproduce a bug reporter's kernel as 
closely as possible - and be able to boot it in KVM.

It's a straightforward, very useful feature, i've been using my own 
similar hack to do something similar for years and it works very 
well.

Thanks,

	Ingo

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

* Re: [PATCH] config: Add 'make kvmconfig'
  2011-10-28  7:39       ` Ingo Molnar
@ 2011-10-28  7:47         ` Sasha Levin
  2011-10-28  7:52           ` Ingo Molnar
  0 siblings, 1 reply; 30+ messages in thread
From: Sasha Levin @ 2011-10-28  7:47 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Sam Ravnborg, linux-kernel, Linus Torvalds, Michal Marek,
	Pekka Enberg, linux-kbuild

On Fri, 2011-10-28 at 09:39 +0200, Ingo Molnar wrote:
> * Sasha Levin <levinsasha928@gmail.com> wrote:
> 
> > > ? It would be very obvious at a glance what it does.
> > 
> > We can possibly make 'make defconfig abc' run arch specific script 
> > located next to the defconfig files (arch/$(ARCH)/configs/).
> 
> AFAICS that's not the same as the current kvmconfig functionality 
> though: we want to minimally enable certain config options in the 
> current .config - not pick some default config.

Yup, I wasn't planning on it to work like defconfig does where it just
uses a default config, thats why I said 'run arch specific script' :)

That script could either copy over a default config, or simply add
config options like what we're interested in doing.

-- 

Sasha.


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

* Re: [PATCH] config: Add 'make kvmconfig'
  2011-10-28  7:47         ` Sasha Levin
@ 2011-10-28  7:52           ` Ingo Molnar
  0 siblings, 0 replies; 30+ messages in thread
From: Ingo Molnar @ 2011-10-28  7:52 UTC (permalink / raw)
  To: Sasha Levin
  Cc: Sam Ravnborg, linux-kernel, Linus Torvalds, Michal Marek,
	Pekka Enberg, linux-kbuild


* Sasha Levin <levinsasha928@gmail.com> wrote:

> On Fri, 2011-10-28 at 09:39 +0200, Ingo Molnar wrote:
> > * Sasha Levin <levinsasha928@gmail.com> wrote:
> > 
> > > > ? It would be very obvious at a glance what it does.
> > > 
> > > We can possibly make 'make defconfig abc' run arch specific script 
> > > located next to the defconfig files (arch/$(ARCH)/configs/).
> > 
> > AFAICS that's not the same as the current kvmconfig functionality 
> > though: we want to minimally enable certain config options in the 
> > current .config - not pick some default config.
> 
> Yup, I wasn't planning on it to work like defconfig does where it 
> just uses a default config, thats why I said 'run arch specific 
> script' :)
> 
> That script could either copy over a default config, or simply add 
> config options like what we're interested in doing.

i'd be fine with that extension to defconfig functionality. It in 
fact makes much more sense than the *current* defconfig functionality 
which is kind of a joke (as it's really just an arbitrary config).

Thanks,

	Ingo

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

* Re: [PATCH] config: Add 'make kvmconfig'
  2011-10-28  7:03   ` Ingo Molnar
  2011-10-28  7:23     ` Sasha Levin
@ 2011-10-28  7:52     ` Geert Uytterhoeven
  2011-10-28  7:54       ` Ingo Molnar
  2011-10-28  9:16       ` Sasha Levin
  1 sibling, 2 replies; 30+ messages in thread
From: Geert Uytterhoeven @ 2011-10-28  7:52 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Sam Ravnborg, Sasha Levin, linux-kernel, Linus Torvalds,
	Michal Marek, Pekka Enberg, linux-kbuild

On Fri, Oct 28, 2011 at 09:03, Ingo Molnar <mingo@elte.hu> wrote:
> * Sam Ravnborg <sam@ravnborg.org> wrote:
>> The kvmconfig is an x86 specific thing - so it does not belong
>> in the scripts/kconfig/Makefile
>>
>> The *config namespace is general config targets.
>>
>> Suggestion:
>> Move the implmentation to arch/x86/Makefile and name the target
>> something that does not match the *config pattern.
>>
>> Suggestion:
>>
>>    make kvmbootable
>>
>> To tell that this convert the current config to a kvmbootable config.
>>
>> And then add the target to the x86 specific help too.
>
> KVM itself is not x86 specific (although this patch obviously is), so
> we'd like to keep at least the naming non-x86.
>
> Furthermore, the functionality generally fits into the pattern that
> 'oldconfig' does: it changes an existing config - so having 'config'
> in the name somewhere makes quite a bit of sense. If i didn't know
> what 'kvmbootable' does i couldnt guess that it touches the .config -
> while the *config pattern makes that patently obvious.
>
> Could we set aside some sort of name for such subsystem specific
> purposes and be done with it? Could we reuse the 'defconfig'
> naming perhaps and make it richer:
>
>        make defconfig kvm
>
> or:
>
>        make defconfig-kvm
>
> ? It would be very obvious at a glance what it does.

This fits in the generic "I have a .config and I want to enable an additional
option" functionality:

make oldconfig CONFIG_KVMTOOL_TEST_ENABLE=y

Don't we already have that support? I seem to remember it flying by.
Or was it just a proposal that never got implemented?

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH] config: Add 'make kvmconfig'
  2011-10-28  7:52     ` Geert Uytterhoeven
@ 2011-10-28  7:54       ` Ingo Molnar
  2011-10-28 12:08         ` Matthias Schniedermeyer
  2011-10-28  9:16       ` Sasha Levin
  1 sibling, 1 reply; 30+ messages in thread
From: Ingo Molnar @ 2011-10-28  7:54 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Sam Ravnborg, Sasha Levin, linux-kernel, Linus Torvalds,
	Michal Marek, Pekka Enberg, linux-kbuild


* Geert Uytterhoeven <geert@linux-m68k.org> wrote:

> > ? It would be very obvious at a glance what it does.
> 
> This fits in the generic "I have a .config and I want to enable an 
> additional option" functionality:
> 
> make oldconfig CONFIG_KVMTOOL_TEST_ENABLE=y
> 
> Don't we already have that support? I seem to remember it flying 
> by. Or was it just a proposal that never got implemented?

Well, it would be nice to have something (much) shorter and more 
obvious, as we really expect to use this frequently.

Maybe:

  make oldconfig kvm

would work too.

Thanks,

	Ingo

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

* Re: [PATCH] config: Add 'make kvmconfig'
  2011-10-28  7:52     ` Geert Uytterhoeven
  2011-10-28  7:54       ` Ingo Molnar
@ 2011-10-28  9:16       ` Sasha Levin
  1 sibling, 0 replies; 30+ messages in thread
From: Sasha Levin @ 2011-10-28  9:16 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Ingo Molnar, Sam Ravnborg, linux-kernel, Linus Torvalds,
	Michal Marek, Pekka Enberg, linux-kbuild

On Fri, 2011-10-28 at 09:52 +0200, Geert Uytterhoeven wrote:
> On Fri, Oct 28, 2011 at 09:03, Ingo Molnar <mingo@elte.hu> wrote:
> > * Sam Ravnborg <sam@ravnborg.org> wrote:
> >> The kvmconfig is an x86 specific thing - so it does not belong
> >> in the scripts/kconfig/Makefile
> >>
> >> The *config namespace is general config targets.
> >>
> >> Suggestion:
> >> Move the implmentation to arch/x86/Makefile and name the target
> >> something that does not match the *config pattern.
> >>
> >> Suggestion:
> >>
> >>    make kvmbootable
> >>
> >> To tell that this convert the current config to a kvmbootable config.
> >>
> >> And then add the target to the x86 specific help too.
> >
> > KVM itself is not x86 specific (although this patch obviously is), so
> > we'd like to keep at least the naming non-x86.
> >
> > Furthermore, the functionality generally fits into the pattern that
> > 'oldconfig' does: it changes an existing config - so having 'config'
> > in the name somewhere makes quite a bit of sense. If i didn't know
> > what 'kvmbootable' does i couldnt guess that it touches the .config -
> > while the *config pattern makes that patently obvious.
> >
> > Could we set aside some sort of name for such subsystem specific
> > purposes and be done with it? Could we reuse the 'defconfig'
> > naming perhaps and make it richer:
> >
> >        make defconfig kvm
> >
> > or:
> >
> >        make defconfig-kvm
> >
> > ? It would be very obvious at a glance what it does.
> 
> This fits in the generic "I have a .config and I want to enable an additional
> option" functionality:
> 
> make oldconfig CONFIG_KVMTOOL_TEST_ENABLE=y
> 
> Don't we already have that support? I seem to remember it flying by.
> Or was it just a proposal that never got implemented?

AFAIK it never got merged.

-- 

Sasha.


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

* Re: [PATCH] config: Add 'make kvmconfig'
  2011-10-28  7:54       ` Ingo Molnar
@ 2011-10-28 12:08         ` Matthias Schniedermeyer
  2011-10-28 12:29           ` Ingo Molnar
  0 siblings, 1 reply; 30+ messages in thread
From: Matthias Schniedermeyer @ 2011-10-28 12:08 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Geert Uytterhoeven, Sam Ravnborg, Sasha Levin, linux-kernel,
	Linus Torvalds, Michal Marek, Pekka Enberg, linux-kbuild

On 28.10.2011 09:54, Ingo Molnar wrote:
> 
> * Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> 
> > > ? It would be very obvious at a glance what it does.
> > 
> > This fits in the generic "I have a .config and I want to enable an 
> > additional option" functionality:
> > 
> > make oldconfig CONFIG_KVMTOOL_TEST_ENABLE=y
> > 
> > Don't we already have that support? I seem to remember it flying 
> > by. Or was it just a proposal that never got implemented?
> 
> Well, it would be nice to have something (much) shorter and more 
> obvious, as we really expect to use this frequently.
> 
> Maybe:
> 
>   make oldconfig kvm

Maybe something more obvious?:
make modconfig kvm
or
make modconfig=kvm

That would also fit nicely for future addition.



Bis denn

-- 
Real Programmers consider "what you see is what you get" to be just as 
bad a concept in Text Editors as it is in women. No, the Real Programmer
wants a "you asked for it, you got it" text editor -- complicated, 
cryptic, powerful, unforgiving, dangerous.


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

* Re: [PATCH] config: Add 'make kvmconfig'
  2011-10-28 12:08         ` Matthias Schniedermeyer
@ 2011-10-28 12:29           ` Ingo Molnar
  2011-10-28 13:05             ` Matthias Schniedermeyer
  0 siblings, 1 reply; 30+ messages in thread
From: Ingo Molnar @ 2011-10-28 12:29 UTC (permalink / raw)
  To: Matthias Schniedermeyer
  Cc: Geert Uytterhoeven, Sam Ravnborg, Sasha Levin, linux-kernel,
	Linus Torvalds, Michal Marek, Pekka Enberg, linux-kbuild


* Matthias Schniedermeyer <ms@citd.de> wrote:

> On 28.10.2011 09:54, Ingo Molnar wrote:
> > 
> > * Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> > 
> > > > ? It would be very obvious at a glance what it does.
> > > 
> > > This fits in the generic "I have a .config and I want to enable an 
> > > additional option" functionality:
> > > 
> > > make oldconfig CONFIG_KVMTOOL_TEST_ENABLE=y
> > > 
> > > Don't we already have that support? I seem to remember it flying 
> > > by. Or was it just a proposal that never got implemented?
> > 
> > Well, it would be nice to have something (much) shorter and more 
> > obvious, as we really expect to use this frequently.
> > 
> > Maybe:
> > 
> >   make oldconfig kvm
> 
> Maybe something more obvious?:
> make modconfig kvm
> or
> make modconfig=kvm

Well, i run distinctly non-modular kernels so modconfig would not be 
particularly good. Also, many of the features enabled are non-modular 
core kernel features to begin with.

But i don't particularly care about how it's named, as long as 
there's a sane and obvious shortcut for it.

Thanks,

	Ingo

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

* Re: [PATCH] config: Add 'make kvmconfig'
  2011-10-28 12:29           ` Ingo Molnar
@ 2011-10-28 13:05             ` Matthias Schniedermeyer
  2011-11-02  8:41               ` Ingo Molnar
  0 siblings, 1 reply; 30+ messages in thread
From: Matthias Schniedermeyer @ 2011-10-28 13:05 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Geert Uytterhoeven, Sam Ravnborg, Sasha Levin, linux-kernel,
	Linus Torvalds, Michal Marek, Pekka Enberg, linux-kbuild

On 28.10.2011 14:29, Ingo Molnar wrote:
> 
> * Matthias Schniedermeyer <ms@citd.de> wrote:
> 
> > On 28.10.2011 09:54, Ingo Molnar wrote:
> > > 
> > > * Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> > > 
> > > > > ? It would be very obvious at a glance what it does.
> > > > 
> > > > This fits in the generic "I have a .config and I want to enable an 
> > > > additional option" functionality:
> > > > 
> > > > make oldconfig CONFIG_KVMTOOL_TEST_ENABLE=y
> > > > 
> > > > Don't we already have that support? I seem to remember it flying 
> > > > by. Or was it just a proposal that never got implemented?
> > > 
> > > Well, it would be nice to have something (much) shorter and more 
> > > obvious, as we really expect to use this frequently.
> > > 
> > > Maybe:
> > > 
> > >   make oldconfig kvm
> > 
> > Maybe something more obvious?:
> > make modconfig kvm
> > or
> > make modconfig=kvm
> 
> Well, i run distinctly non-modular kernels so modconfig would not be 
> particularly good. Also, many of the features enabled are non-modular 
> core kernel features to begin with.

I thougt about that just as i send the e-mail, to near to "mod"ular. 
What i meant was "mod"ify.

And AFAICS there currently is no "modconfig", only an "allmodconfig" 
(and "localmodconfig")

With no letters dropped it would be less ambiguous.
make modifyconfig=kvm




Bis denn

-- 
Real Programmers consider "what you see is what you get" to be just as 
bad a concept in Text Editors as it is in women. No, the Real Programmer
wants a "you asked for it, you got it" text editor -- complicated, 
cryptic, powerful, unforgiving, dangerous.


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

* Re: [PATCH] config: Add 'make kvmconfig'
  2011-10-28 13:05             ` Matthias Schniedermeyer
@ 2011-11-02  8:41               ` Ingo Molnar
  2011-11-02  9:07                 ` Michal Marek
  0 siblings, 1 reply; 30+ messages in thread
From: Ingo Molnar @ 2011-11-02  8:41 UTC (permalink / raw)
  To: Matthias Schniedermeyer
  Cc: Geert Uytterhoeven, Sam Ravnborg, Sasha Levin, linux-kernel,
	Linus Torvalds, Michal Marek, Pekka Enberg, linux-kbuild


* Matthias Schniedermeyer <ms@citd.de> wrote:

> And AFAICS there currently is no "modconfig", only an 
> "allmodconfig" (and "localmodconfig")
> 
> With no letters dropped it would be less ambiguous. make 
> modifyconfig=kvm

Yeah. Note that it's more like an 'add' operation, not a modify 
operation, thus:

	make addconfig=kvm

or:

	make addconfig kvm

would be intuitive and would work well too.

Sam, Michal, which one would you prefer? The latter might have the 
advantage that it's additive, enabling future usages like:

	make addconfig kvm debug

as a quick shortcut to enable baseline KVM support and generic kernel 
debugging features, without having to twiddle with the menuconfig.

Hm? Would be nice to move on this issue, we've painted it to death 
already ;-)

Thanks,

	Ingo

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

* Re: [PATCH] config: Add 'make kvmconfig'
  2011-11-02  8:41               ` Ingo Molnar
@ 2011-11-02  9:07                 ` Michal Marek
  2011-11-02  9:17                   ` Ingo Molnar
  0 siblings, 1 reply; 30+ messages in thread
From: Michal Marek @ 2011-11-02  9:07 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Matthias Schniedermeyer, Geert Uytterhoeven, Sam Ravnborg,
	Sasha Levin, linux-kernel, Linus Torvalds, Pekka Enberg,
	linux-kbuild

On 2.11.2011 09:41, Ingo Molnar wrote:
> 
> * Matthias Schniedermeyer <ms@citd.de> wrote:
> 
>> And AFAICS there currently is no "modconfig", only an 
>> "allmodconfig" (and "localmodconfig")
>>
>> With no letters dropped it would be less ambiguous. make 
>> modifyconfig=kvm
> 
> Yeah. Note that it's more like an 'add' operation, not a modify 
> operation, thus:
> 
> 	make addconfig=kvm
> 
> or:
> 
> 	make addconfig kvm
> 
> would be intuitive and would work well too.
> 
> Sam, Michal, which one would you prefer? The latter might have the 
> advantage that it's additive, enabling future usages like:
> 
> 	make addconfig kvm debug

The problem is that neither of these fit into the make command syntax:

    make addconfig kvm debug

tells make to build three different targets, and

    make addconfig=kvm

tells make to create a variable named addconfig with the value kvm and
build the default target. And BTW, you or someone else reassured me
earlier in the thread that this is going to be needed for the kvm case
solely, so why are you inventing something generic now? :)

Michal

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

* Re: [PATCH] config: Add 'make kvmconfig'
  2011-11-02  9:07                 ` Michal Marek
@ 2011-11-02  9:17                   ` Ingo Molnar
  2011-11-02  9:24                     ` Michal Marek
  0 siblings, 1 reply; 30+ messages in thread
From: Ingo Molnar @ 2011-11-02  9:17 UTC (permalink / raw)
  To: Michal Marek
  Cc: Matthias Schniedermeyer, Geert Uytterhoeven, Sam Ravnborg,
	Sasha Levin, linux-kernel, Linus Torvalds, Pekka Enberg,
	linux-kbuild


* Michal Marek <mmarek@suse.cz> wrote:

> On 2.11.2011 09:41, Ingo Molnar wrote:
> > 
> > * Matthias Schniedermeyer <ms@citd.de> wrote:
> > 
> >> And AFAICS there currently is no "modconfig", only an 
> >> "allmodconfig" (and "localmodconfig")
> >>
> >> With no letters dropped it would be less ambiguous. make 
> >> modifyconfig=kvm
> > 
> > Yeah. Note that it's more like an 'add' operation, not a modify 
> > operation, thus:
> > 
> > 	make addconfig=kvm
> > 
> > or:
> > 
> > 	make addconfig kvm
> > 
> > would be intuitive and would work well too.
> > 
> > Sam, Michal, which one would you prefer? The latter might have the 
> > advantage that it's additive, enabling future usages like:
> > 
> > 	make addconfig kvm debug
> 
> The problem is that neither of these fit into the make command syntax:
> 
>     make addconfig kvm debug
> 
> tells make to build three different targets, and
> 
>     make addconfig=kvm
> 
> tells make to create a variable named addconfig with the value kvm 
> and build the default target. And BTW, you or someone else 
> reassured me earlier in the thread that this is going to be needed 
> for the kvm case solely, so why are you inventing something generic 
> now? :)

Because we are trying to find *something* that is both usable and 
which you guys are willing to ack.

So what's your suggestion? Is 'make kvmconfig' OK? It certainly is 
intuitive and useful to us and we could move on to more important 
things to discuss.

Thanks,

	Ingo

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

* Re: [PATCH] config: Add 'make kvmconfig'
  2011-11-02  9:17                   ` Ingo Molnar
@ 2011-11-02  9:24                     ` Michal Marek
  2011-11-02  9:39                       ` Ingo Molnar
  0 siblings, 1 reply; 30+ messages in thread
From: Michal Marek @ 2011-11-02  9:24 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Matthias Schniedermeyer, Geert Uytterhoeven, Sam Ravnborg,
	Sasha Levin, linux-kernel, Linus Torvalds, Pekka Enberg,
	linux-kbuild

On 2.11.2011 10:17, Ingo Molnar wrote:
> * Michal Marek <mmarek@suse.cz> wrote:
>> On 2.11.2011 09:41, Ingo Molnar wrote:
>>> Yeah. Note that it's more like an 'add' operation, not a modify 
>>> operation, thus:
>>>
>>> 	make addconfig=kvm
>>>
>>> or:
>>>
>>> 	make addconfig kvm
>>>
>>> would be intuitive and would work well too.
>>>
>>> Sam, Michal, which one would you prefer? The latter might have the 
>>> advantage that it's additive, enabling future usages like:
>>>
>>> 	make addconfig kvm debug
>>
>> The problem is that neither of these fit into the make command syntax:
>>
>>     make addconfig kvm debug
>>
>> tells make to build three different targets, and
>>
>>     make addconfig=kvm
>>
>> tells make to create a variable named addconfig with the value kvm 
>> and build the default target. And BTW, you or someone else 
>> reassured me earlier in the thread that this is going to be needed 
>> for the kvm case solely, so why are you inventing something generic 
>> now? :)
> 
> Because we are trying to find *something* that is both usable and 
> which you guys are willing to ack.
> 
> So what's your suggestion? Is 'make kvmconfig' OK?

As I said, make kvmconfig is fine with me, if it's just this single case.

Michal


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

* Re: [PATCH] config: Add 'make kvmconfig'
  2011-11-02  9:24                     ` Michal Marek
@ 2011-11-02  9:39                       ` Ingo Molnar
  2011-11-02 10:06                         ` Pekka Enberg
  0 siblings, 1 reply; 30+ messages in thread
From: Ingo Molnar @ 2011-11-02  9:39 UTC (permalink / raw)
  To: Michal Marek
  Cc: Matthias Schniedermeyer, Geert Uytterhoeven, Sam Ravnborg,
	Sasha Levin, linux-kernel, Linus Torvalds, Pekka Enberg,
	linux-kbuild


* Michal Marek <mmarek@suse.cz> wrote:

> On 2.11.2011 10:17, Ingo Molnar wrote:
> > * Michal Marek <mmarek@suse.cz> wrote:
> >> On 2.11.2011 09:41, Ingo Molnar wrote:
> >>> Yeah. Note that it's more like an 'add' operation, not a modify 
> >>> operation, thus:
> >>>
> >>> 	make addconfig=kvm
> >>>
> >>> or:
> >>>
> >>> 	make addconfig kvm
> >>>
> >>> would be intuitive and would work well too.
> >>>
> >>> Sam, Michal, which one would you prefer? The latter might have the 
> >>> advantage that it's additive, enabling future usages like:
> >>>
> >>> 	make addconfig kvm debug
> >>
> >> The problem is that neither of these fit into the make command syntax:
> >>
> >>     make addconfig kvm debug
> >>
> >> tells make to build three different targets, and
> >>
> >>     make addconfig=kvm
> >>
> >> tells make to create a variable named addconfig with the value kvm 
> >> and build the default target. And BTW, you or someone else 
> >> reassured me earlier in the thread that this is going to be needed 
> >> for the kvm case solely, so why are you inventing something generic 
> >> now? :)
> > 
> > Because we are trying to find *something* that is both usable and 
> > which you guys are willing to ack.
> > 
> > So what's your suggestion? Is 'make kvmconfig' OK?
> 
> As I said, make kvmconfig is fine with me, if it's just this single case.
> 
> Michal

Great, thanks!

	Ingo

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

* Re: [PATCH] config: Add 'make kvmconfig'
  2011-11-02  9:39                       ` Ingo Molnar
@ 2011-11-02 10:06                         ` Pekka Enberg
  0 siblings, 0 replies; 30+ messages in thread
From: Pekka Enberg @ 2011-11-02 10:06 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Michal Marek, Matthias Schniedermeyer, Geert Uytterhoeven,
	Sam Ravnborg, Sasha Levin, linux-kernel, Linus Torvalds,
	linux-kbuild

On Wed, Nov 2, 2011 at 11:39 AM, Ingo Molnar <mingo@elte.hu> wrote:
>> As I said, make kvmconfig is fine with me, if it's just this single case.
>
> Great, thanks!

I applied Sasha's patch. We're happy to revisit the Kbuild changes if
someone comes up with something more generic in the future.

                        Pekka

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

end of thread, other threads:[~2011-11-02 10:06 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-27 12:07 [PATCH] config: Add 'make kvmconfig' Sasha Levin
2011-10-27 12:12 ` Pekka Enberg
2011-10-27 12:37   ` Ingo Molnar
2011-10-27 12:51     ` Michal Marek
2011-10-27 13:34       ` Ingo Molnar
2011-10-27 14:11       ` Pekka Enberg
2011-10-27 14:32         ` Michal Marek
2011-10-27 15:05           ` Arnaud Lacombe
2011-10-27 15:19         ` Arnaud Lacombe
2011-10-27 15:30           ` Pekka Enberg
2011-10-27 18:05 ` Rabin Vincent
2011-10-27 20:46   ` Sasha Levin
2011-10-27 19:34 ` Sam Ravnborg
2011-10-28  7:03   ` Ingo Molnar
2011-10-28  7:23     ` Sasha Levin
2011-10-28  7:39       ` Ingo Molnar
2011-10-28  7:47         ` Sasha Levin
2011-10-28  7:52           ` Ingo Molnar
2011-10-28  7:52     ` Geert Uytterhoeven
2011-10-28  7:54       ` Ingo Molnar
2011-10-28 12:08         ` Matthias Schniedermeyer
2011-10-28 12:29           ` Ingo Molnar
2011-10-28 13:05             ` Matthias Schniedermeyer
2011-11-02  8:41               ` Ingo Molnar
2011-11-02  9:07                 ` Michal Marek
2011-11-02  9:17                   ` Ingo Molnar
2011-11-02  9:24                     ` Michal Marek
2011-11-02  9:39                       ` Ingo Molnar
2011-11-02 10:06                         ` Pekka Enberg
2011-10-28  9:16       ` Sasha Levin

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