virtio: make VIRTIO a menuconfig to ease disabling it all
PATCH 1/1 virtio: make VIRTIO a menuconfig to ease disabling it all
No need to get into the submenu to disable all VIRTIO-related config entries.
This makes it easier to disable all VIRTIO config options without entering the submenu. It will also enable one to see that en/dis-abled state from the outside menu.
This is only intended to change menuconfig UI, not change the config dependencies.
--- drivers/virtio/Kconfig | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/virtio/Kconfig +5 -2
@@ -5,7 +5,10 @@ config VIRTIO bus, such as CONFIG_VIRTIO_PCI, CONFIG_VIRTIO_MMIO, CONFIG_RPMSG or CONFIG_S390_GUEST. -menu "Virtio drivers" +menuconfig VIRTIO_MENU + bool "Virtio drivers" + +if VIRTIO_MENU config VIRTIO_PCI tristate "PCI driver for virtio devices"
@@ -79,4 +82,4 @@ config VIRTIO_MMIO_CMDLINE_DEVICES If unsure, say 'N'. -endmenu +endif # VIRTIO_MENU
Signature · 1 line
2.14.1
Quoted 20 lines · Vincent Legoll
No need to get into the submenu to disable all VIRTIO-related config entries.
This makes it easier to disable all VIRTIO config options without entering the submenu. It will also enable one to see that en/dis-abled state from the outside menu.
This is only intended to change menuconfig UI, not change the config dependencies.
Signed-off-by Vincent Legoll <[email protected]>--- drivers/virtio/Kconfig | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)drivers/virtio/Kconfig +0
-0
drivers/virtio/Kconfig config VIRTIO · line 9
Quoted 6 lines
drivers/virtio/Kconfig +2
-1@@ -5,7 +5,10 @@ config VIRTIO bus, such as CONFIG_VIRTIO_PCI, CONFIG_VIRTIO_MMIO, CONFIG_RPMSG or CONFIG_S390_GUEST. -menu "Virtio drivers" +menuconfig VIRTIO_MENU + bool "Virtio drivers"
Hi Vincent,
make localyesconfig and make localmodconfig doesn't work with this patch.
My scenario looks like this:
* Create a virtual machine with Ubuntu 14.04 in GCE
* git clone git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
* cd linux-next
* curl -o .config https://raw.githubusercontent.com/avagin/criu/linux-next/scripts/linux-next-config
* make localyesconfig
Without this patch:
$ cat .config | grep VIRTIO CONFIG_BLK_MQ_VIRTIO=y CONFIG_VIRTIO_BLK=y # CONFIG_VIRTIO_BLK_SCSI is not set CONFIG_SCSI_VIRTIO=y CONFIG_VIRTIO_NET=y CONFIG_VIRTIO_CONSOLE=y # CONFIG_HW_RANDOM_VIRTIO is not set CONFIG_VIRTIO=y CONFIG_VIRTIO_PCI=y CONFIG_VIRTIO_PCI_LEGACY=y CONFIG_VIRTIO_BALLOON=y # CONFIG_VIRTIO_INPUT is not set CONFIG_VIRTIO_MMIO=y CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES=y # CONFIG_RPMSG_VIRTIO is not set # CONFIG_CRYPTO_DEV_VIRTIO is not set
With this patch:
$ cat .config | grep VIRTIO CONFIG_BLK_MQ_VIRTIO=y # CONFIG_VIRTIO_BLK is not set CONFIG_SCSI_VIRTIO=y # CONFIG_VIRTIO_NET is not set CONFIG_CAIF_VIRTIO=y # CONFIG_VIRTIO_CONSOLE is not set # CONFIG_HW_RANDOM_VIRTIO is not set CONFIG_VIRTIO=y # CONFIG_VIRTIO_MENU is not set # CONFIG_RPMSG_VIRTIO is not set # CONFIG_CRYPTO_DEV_VIRTIO is not set
You can see that with this patch CONFIG_VIRTIO_BLK is not set. It is wrong, and the kernel with this config will not be able to boot.
We can add "default y" to fix this problem.
https://travis-ci.org/avagin/linux/jobs/313348334
https://travis-ci.org/avagin/linux/jobs/318491188
Thanks,
Andrei
Quoted 11 lines
drivers/virtio/Kconfig +3
-1+ +if VIRTIO_MENU config VIRTIO_PCI tristate "PCI driver for virtio devices"@@ -79,4 +82,4 @@ config VIRTIO_MMIO_CMDLINE_DEVICES If unsure, say 'N'. -endmenu +endif # VIRTIO_MENU
Quoted 20 lines · Vincent Legoll
No need to get into the submenu to disable all VIRTIO-related config entries.
This makes it easier to disable all VIRTIO config options without entering the submenu. It will also enable one to see that en/dis-abled state from the outside menu.
This is only intended to change menuconfig UI, not change the config dependencies.
Signed-off-by Vincent Legoll <[email protected]>--- drivers/virtio/Kconfig | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)drivers/virtio/Kconfig +0
-0
drivers/virtio/Kconfig config VIRTIO · line 9
Quoted 6 lines
drivers/virtio/Kconfig +2
-1@@ -5,7 +5,10 @@ config VIRTIO bus, such as CONFIG_VIRTIO_PCI, CONFIG_VIRTIO_MMIO, CONFIG_RPMSG or CONFIG_S390_GUEST. -menu "Virtio drivers" +menuconfig VIRTIO_MENU + bool "Virtio drivers"
Hi Vincent,
make localyesconfig and make localmodconfig doesn't work with this patch.
My scenario looks like this:
* Create a virtual machine with Ubuntu 14.04 in GCE
* git clone git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
* cd linux-next
* curl -o .config https://raw.githubusercontent.com/avagin/criu/linux-next/scripts/linux-next-config
* make localyesconfig
Without this patch:
$ cat .config | grep VIRTIO CONFIG_BLK_MQ_VIRTIO=y CONFIG_VIRTIO_BLK=y # CONFIG_VIRTIO_BLK_SCSI is not set CONFIG_SCSI_VIRTIO=y CONFIG_VIRTIO_NET=y CONFIG_VIRTIO_CONSOLE=y # CONFIG_HW_RANDOM_VIRTIO is not set CONFIG_VIRTIO=y CONFIG_VIRTIO_PCI=y CONFIG_VIRTIO_PCI_LEGACY=y CONFIG_VIRTIO_BALLOON=y # CONFIG_VIRTIO_INPUT is not set CONFIG_VIRTIO_MMIO=y CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES=y # CONFIG_RPMSG_VIRTIO is not set # CONFIG_CRYPTO_DEV_VIRTIO is not set
With this patch:
$ cat .config | grep VIRTIO CONFIG_BLK_MQ_VIRTIO=y # CONFIG_VIRTIO_BLK is not set CONFIG_SCSI_VIRTIO=y # CONFIG_VIRTIO_NET is not set CONFIG_CAIF_VIRTIO=y # CONFIG_VIRTIO_CONSOLE is not set # CONFIG_HW_RANDOM_VIRTIO is not set CONFIG_VIRTIO=y # CONFIG_VIRTIO_MENU is not set # CONFIG_RPMSG_VIRTIO is not set # CONFIG_CRYPTO_DEV_VIRTIO is not set
You can see that with this patch CONFIG_VIRTIO_BLK is not set. It is wrong, and the kernel with this config will not be able to boot.
We can add "default y" to fix this problem.
https://travis-ci.org/avagin/linux/jobs/313348334
https://travis-ci.org/avagin/linux/jobs/318491188
Thanks,
Andrei
Quoted 11 lines
drivers/virtio/Kconfig +3
-1+ +if VIRTIO_MENU config VIRTIO_PCI tristate "PCI driver for virtio devices"@@ -79,4 +82,4 @@ config VIRTIO_MMIO_CMDLINE_DEVICES If unsure, say 'N'. -endmenu +endif # VIRTIO_MENU
Quoted 20 lines · Vincent Legoll
No need to get into the submenu to disable all VIRTIO-related config entries.
This makes it easier to disable all VIRTIO config options without entering the submenu. It will also enable one to see that en/dis-abled state from the outside menu.
This is only intended to change menuconfig UI, not change the config dependencies.
Signed-off-by Vincent Legoll <[email protected]>--- drivers/virtio/Kconfig | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)drivers/virtio/Kconfig +0
-0
drivers/virtio/Kconfig config VIRTIO · line 11
Quoted 8 lines
drivers/virtio/Kconfig +4
-1@@ -5,7 +5,10 @@ config VIRTIO bus, such as CONFIG_VIRTIO_PCI, CONFIG_VIRTIO_MMIO, CONFIG_RPMSG or CONFIG_S390_GUEST. -menu "Virtio drivers" +menuconfig VIRTIO_MENU + bool "Virtio drivers" + +if VIRTIO_MENU
This breaks all existing .configs *and* defconfigs that use VIRTIO.
Please don't do that.
If you make it default y then everything will continue to work.
cheers
drivers/virtio/Kconfig +1 -0
@@ -7,6 +7,7 @@ config VIRTIO menuconfig VIRTIO_MENU bool "Virtio drivers" + default y if VIRTIO_MENU
Quoted 20 lines · Vincent Legoll
No need to get into the submenu to disable all VIRTIO-related config entries.
This makes it easier to disable all VIRTIO config options without entering the submenu. It will also enable one to see that en/dis-abled state from the outside menu.
This is only intended to change menuconfig UI, not change the config dependencies.
Signed-off-by Vincent Legoll <[email protected]>--- drivers/virtio/Kconfig | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)drivers/virtio/Kconfig +0
-0
drivers/virtio/Kconfig config VIRTIO · line 11
Quoted 8 lines
drivers/virtio/Kconfig +4
-1@@ -5,7 +5,10 @@ config VIRTIO bus, such as CONFIG_VIRTIO_PCI, CONFIG_VIRTIO_MMIO, CONFIG_RPMSG or CONFIG_S390_GUEST. -menu "Virtio drivers" +menuconfig VIRTIO_MENU + bool "Virtio drivers" + +if VIRTIO_MENU
This breaks all existing .configs *and* defconfigs that use VIRTIO.
Please don't do that.
If you make it default y then everything will continue to work.
cheers
drivers/virtio/Kconfig +1 -0
@@ -7,6 +7,7 @@ config VIRTIO menuconfig VIRTIO_MENU bool "Virtio drivers" + default y if VIRTIO_MENU
Hello,
thanks for the help, and sorry for the poor patch,
Quoted 5 lines · Michael Ellerman
This breaks all existing .configs *and* defconfigs that use VIRTIO.
Please don't do that.
If you make it default y then everything will continue to work.
Do you want me to respin it with the added default ?
Tchuss
Signature · 1 line
Vincent Legoll
Hello,
thanks for the help, and sorry for the poor patch,
Quoted 5 lines · Michael Ellerman
This breaks all existing .configs *and* defconfigs that use VIRTIO.
Please don't do that.
If you make it default y then everything will continue to work.
Do you want me to respin it with the added default ?
Tchuss
Signature · 1 line
Vincent Legoll
Quoted 4 lines · Vincent Legoll
Hello,
thanks for the help, and sorry for the poor patch,
Quoted 8 lines
Quoted 5 lines · Michael Ellerman
This breaks all existing .configs *and* defconfigs that use VIRTIO.
Please don't do that.
If you make it default y then everything will continue to work.
Do you want me to respin it with the added default ?
Yes please, either that or revert it.
cheers
Quoted 9 lines · Michael Ellerman
Quoted 7 lines · Vincent Legoll
Hello,
thanks for the help, and sorry for the poor patch,
Quoted 2 lines · Michael Ellerman
This breaks all existing .configs *and* defconfigs that use VIRTIO.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Please don't do that.
If you make it default y then everything will continue to work.
Do you want me to respin it with the added default ?
Yes please, either that or revert it.
This still seems to be broken.
cheers
PATCH v2 1/1 virtio: make VIRTIO a menuconfig to ease disabling it
No need to get into the submenu to disable all VIRTIO-related config entries.
This makes it easier to disable all VIRTIO config options without entering the submenu. It will also enable one to see that en/dis-abled state from the outside menu.
This is only intended to change menuconfig UI, not change the config dependencies.
v2: Added "default y" to avoid breaking existing configs
PATCH 1/1 virtio: make VIRTIO a menuconfig to ease disabling it all
In reply to Vincent LegollNo need to get into the submenu to disable all VIRTIO-related config entries.
This makes it easier to disable all VIRTIO config options without entering the submenu. It will also enable one to see that en/dis-abled state from the outside menu.
This is only intended to change menuconfig UI, not change the config dependencies.
v2: add "default y" to avoid breaking existing configs
--- drivers/virtio/Kconfig | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/virtio/Kconfig +6 -2
@@ -5,7 +5,11 @@ config VIRTIO bus, such as CONFIG_VIRTIO_PCI, CONFIG_VIRTIO_MMIO, CONFIG_RPMSG or CONFIG_S390_GUEST. -menu "Virtio drivers" +menuconfig VIRTIO_MENU + bool "Virtio drivers" + default y + +if VIRTIO_MENU config VIRTIO_PCI tristate "PCI driver for virtio devices"
@@ -79,4 +83,4 @@ config VIRTIO_MMIO_CMDLINE_DEVICES If unsure, say 'N'. -endmenu +endif # VIRTIO_MENU
Signature · 1 line
2.11.0
PATCH v2 1/1 virtio: make VIRTIO a menuconfig to ease disabling it
In reply to Michael EllermanNo need to get into the submenu to disable all VIRTIO-related config entries.
This makes it easier to disable all VIRTIO config options without entering the submenu. It will also enable one to see that en/dis-abled state from the outside menu.
This is only intended to change menuconfig UI, not change the config dependencies.
v2: Added "default y" to avoid breaking existing configs
PATCH 1/1 virtio: make VIRTIO a menuconfig to ease disabling it all
No need to get into the submenu to disable all VIRTIO-related config entries.
This makes it easier to disable all VIRTIO config options without entering the submenu. It will also enable one to see that en/dis-abled state from the outside menu.
This is only intended to change menuconfig UI, not change the config dependencies.
v2: add "default y" to avoid breaking existing configs
--- drivers/virtio/Kconfig | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/virtio/Kconfig +6 -2
@@ -5,7 +5,11 @@ config VIRTIO bus, such as CONFIG_VIRTIO_PCI, CONFIG_VIRTIO_MMIO, CONFIG_RPMSG or CONFIG_S390_GUEST. -menu "Virtio drivers" +menuconfig VIRTIO_MENU + bool "Virtio drivers" + default y + +if VIRTIO_MENU config VIRTIO_PCI tristate "PCI driver for virtio devices"
@@ -79,4 +83,4 @@ config VIRTIO_MMIO_CMDLINE_DEVICES If unsure, say 'N'. -endmenu +endif # VIRTIO_MENU
Signature · 1 line
2.11.0
Quoted 7 lines · Vincent Legoll
No need to get into the submenu to disable all VIRTIO-related config entries.
This makes it easier to disable all VIRTIO config options without entering the submenu. It will also enable one to see that en/dis-abled state from the outside menu.
Quoted 6 lines
This is only intended to change menuconfig UI, not change the config dependencies.
v2: add "default y" to avoid breaking existing configs
Signed-off-by Vincent Legoll <[email protected]>
For a single patch (not 2 or more in a series), please just use one email with the patch description etc. in it. No need for a cover letter.
Quoted 9 lines
--- drivers/virtio/Kconfig | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)drivers/virtio/Kconfig +0
-0
drivers/virtio/Kconfig config VIRTIO · line 10
Quoted 7 lines
drivers/virtio/Kconfig +3
-1@@ -5,7 +5,11 @@ config VIRTIO bus, such as CONFIG_VIRTIO_PCI, CONFIG_VIRTIO_MMIO, CONFIG_RPMSG or CONFIG_S390_GUEST. -menu "Virtio drivers" +menuconfig VIRTIO_MENU + bool "Virtio drivers" + default y
The 2 lines above should be indented only with 1 tab. They should not line up with the help text above (help text is indented more than other Kconfig lines).
After that little style thing is fixed, you can add:
and even though this will disable the drivers that are listed immediately inside this if/endif block, there are several other drivers that select VIRTIO, so it can be slightly tricky to figure out what is causing CONFIG_VIRTIO to be enabled after having disabled CONFIG_VIRTIO_MENU.
Thanks.
Quoted 12 lines
drivers/virtio/Kconfig +3
-1+ +if VIRTIO_MENU config VIRTIO_PCI tristate "PCI driver for virtio devices"@@ -79,4 +83,4 @@ config VIRTIO_MMIO_CMDLINE_DEVICES If unsure, say 'N'. -endmenu +endif # VIRTIO_MENU
Signature · 1 line
~Randy
Quoted 7 lines · Vincent Legoll
No need to get into the submenu to disable all VIRTIO-related config entries.
This makes it easier to disable all VIRTIO config options without entering the submenu. It will also enable one to see that en/dis-abled state from the outside menu.
Quoted 6 lines
This is only intended to change menuconfig UI, not change the config dependencies.
v2: add "default y" to avoid breaking existing configs
Signed-off-by Vincent Legoll <[email protected]>
For a single patch (not 2 or more in a series), please just use one email with the patch description etc. in it. No need for a cover letter.
Quoted 9 lines
--- drivers/virtio/Kconfig | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)drivers/virtio/Kconfig +0
-0
drivers/virtio/Kconfig config VIRTIO · line 10
Quoted 7 lines
drivers/virtio/Kconfig +3
-1@@ -5,7 +5,11 @@ config VIRTIO bus, such as CONFIG_VIRTIO_PCI, CONFIG_VIRTIO_MMIO, CONFIG_RPMSG or CONFIG_S390_GUEST. -menu "Virtio drivers" +menuconfig VIRTIO_MENU + bool "Virtio drivers" + default y
The 2 lines above should be indented only with 1 tab. They should not line up with the help text above (help text is indented more than other Kconfig lines).
After that little style thing is fixed, you can add:
and even though this will disable the drivers that are listed immediately inside this if/endif block, there are several other drivers that select VIRTIO, so it can be slightly tricky to figure out what is causing CONFIG_VIRTIO to be enabled after having disabled CONFIG_VIRTIO_MENU.
Thanks.
Quoted 12 lines
drivers/virtio/Kconfig +3
-1+ +if VIRTIO_MENU config VIRTIO_PCI tristate "PCI driver for virtio devices"@@ -79,4 +83,4 @@ config VIRTIO_MMIO_CMDLINE_DEVICES If unsure, say 'N'. -endmenu +endif # VIRTIO_MENU
Signature · 1 line
~Randy
PATCH 1/1 virtio: make VIRTIO a menuconfig to ease disabling it all
No need to get into the submenu to disable all VIRTIO-related config entries.
This makes it easier to disable all VIRTIO config options without entering the submenu. It will also enable one to see that en/dis-abled state from the outside menu.
This is only intended to change menuconfig UI, not change the config dependencies.
v2: Added "default y" to avoid breaking existing configs
v3: Fixed wrong indentation, added *-by from Randy
--- drivers/virtio/Kconfig | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/virtio/Kconfig +6 -2
@@ -5,7 +5,11 @@ config VIRTIO bus, such as CONFIG_VIRTIO_PCI, CONFIG_VIRTIO_MMIO, CONFIG_RPMSG or CONFIG_S390_GUEST. -menu "Virtio drivers" +menuconfig VIRTIO_MENU + bool "Virtio drivers" + default y + +if VIRTIO_MENU config VIRTIO_PCI tristate "PCI driver for virtio devices"
@@ -79,4 +83,4 @@ config VIRTIO_MMIO_CMDLINE_DEVICES If unsure, say 'N'. -endmenu +endif # VIRTIO_MENU
Signature · 1 line
2.14.1
PATCH 1/1 virtio: make VIRTIO a menuconfig to ease disabling it all
In reply to Randy DunlapNo need to get into the submenu to disable all VIRTIO-related config entries.
This makes it easier to disable all VIRTIO config options without entering the submenu. It will also enable one to see that en/dis-abled state from the outside menu.
This is only intended to change menuconfig UI, not change the config dependencies.
v2: Added "default y" to avoid breaking existing configs
v3: Fixed wrong indentation, added *-by from Randy
--- drivers/virtio/Kconfig | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/virtio/Kconfig +6 -2
@@ -5,7 +5,11 @@ config VIRTIO bus, such as CONFIG_VIRTIO_PCI, CONFIG_VIRTIO_MMIO, CONFIG_RPMSG or CONFIG_S390_GUEST. -menu "Virtio drivers" +menuconfig VIRTIO_MENU + bool "Virtio drivers" + default y + +if VIRTIO_MENU config VIRTIO_PCI tristate "PCI driver for virtio devices"
@@ -79,4 +83,4 @@ config VIRTIO_MMIO_CMDLINE_DEVICES If unsure, say 'N'. -endmenu +endif # VIRTIO_MENU
Signature · 1 line
2.14.1
Ping Re: [PATCH] virtio: make VIRTIO a menuconfig to ease disabling it all
Quoted 13 lines · Vincent Legoll
No need to get into the submenu to disable all VIRTIO-related config entries.
This makes it easier to disable all VIRTIO config options without entering the submenu. It will also enable one to see that en/dis-abled state from the outside menu.
This is only intended to change menuconfig UI, not change the config dependencies.
v2: Added "default y" to avoid breaking existing configs
v3: Fixed wrong indentation, added *-by from Randy
Quoted 6 lines
Signed-off-by Vincent Legoll <[email protected]>Reviewed-by Randy Dunlap <[email protected]>--- drivers/virtio/Kconfig | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
This has been broken in linux-next for ~6 weeks now, can we please merge this and get it fixed.
cheers
Ping Re: [PATCH] virtio: make VIRTIO a menuconfig to ease disabling it all
In reply to Vincent LegollQuoted 13 lines · Vincent Legoll
No need to get into the submenu to disable all VIRTIO-related config entries.
This makes it easier to disable all VIRTIO config options without entering the submenu. It will also enable one to see that en/dis-abled state from the outside menu.
This is only intended to change menuconfig UI, not change the config dependencies.
v2: Added "default y" to avoid breaking existing configs
v3: Fixed wrong indentation, added *-by from Randy
Quoted 6 lines
Signed-off-by Vincent Legoll <[email protected]>Reviewed-by Randy Dunlap <[email protected]>--- drivers/virtio/Kconfig | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
This has been broken in linux-next for ~6 weeks now, can we please merge this and get it fixed.
cheers
Re: Ping Re: [PATCH] virtio: make VIRTIO a menuconfig to ease disabling it all
Quoted 2 lines · Michael Ellerman
This has been broken in linux-next for ~6 weeks now, can we please merge this and get it fixed.
Added Stephen Rothwell to cc
Signature · 1 line
Vincent Legoll
Re: Ping Re: [PATCH] virtio: make VIRTIO a menuconfig to ease disabling it all
In reply to Michael EllermanQuoted 2 lines · Michael Ellerman
This has been broken in linux-next for ~6 weeks now, can we please merge this and get it fixed.
Added Stephen Rothwell to cc
Signature · 1 line
Vincent Legoll
Re: Ping Re: [PATCH] virtio: make VIRTIO a menuconfig to ease disabling it all
Quoted 5 lines · Vincent Legoll
Quoted 2 lines · Michael Ellerman
This has been broken in linux-next for ~6 weeks now, can we please merge this and get it fixed.
Added Stephen Rothwell to cc
It should be fixed in the virtio tree, which the other Michael and Jason maintain AFAIK.
cheers