All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arch/s390/configs: Change CONFIG_VIRTIO_CONSOLE to "m"
@ 2021-04-28  8:24 Thomas Huth
  2021-04-28  8:31 ` Christian Borntraeger
  2021-04-29  6:47 ` Christian Borntraeger
  0 siblings, 2 replies; 7+ messages in thread
From: Thomas Huth @ 2021-04-28  8:24 UTC (permalink / raw)
  To: linux-s390, Heiko Carstens, Christian Borntraeger
  Cc: linux-kernel, Vasily Gorbik, Marc Hartmayer, Halil Pasic, cohuck

In former times, the virtio-console code had to be compiled into
the kernel since the old guest virtio transport had some hard de-
pendencies. But since the old virtio transport has been removed in
commit 7fb2b2d51244 ("s390/virtio: remove the old KVM virtio transport"),
we do not have this limitation anymore.
Commit bb533ec8bacd ("s390/config: do not select VIRTIO_CONSOLE via
Kconfig") then also lifted the hard setting in the Kconfig system, so
we can finally switch the CONFIG_VIRTIO_CONSOLE knob to compile this
driver as a module now, making it more flexible for the user to only
load it if it is really required.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 arch/s390/configs/debug_defconfig | 2 +-
 arch/s390/configs/defconfig       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/s390/configs/debug_defconfig b/arch/s390/configs/debug_defconfig
index dc0b69058ac4..04ce0edd0b31 100644
--- a/arch/s390/configs/debug_defconfig
+++ b/arch/s390/configs/debug_defconfig
@@ -548,7 +548,7 @@ CONFIG_INPUT_EVDEV=y
 # CONFIG_INPUT_MOUSE is not set
 # CONFIG_SERIO is not set
 CONFIG_LEGACY_PTY_COUNT=0
-CONFIG_VIRTIO_CONSOLE=y
+CONFIG_VIRTIO_CONSOLE=m
 CONFIG_HW_RANDOM_VIRTIO=m
 CONFIG_RAW_DRIVER=m
 CONFIG_HANGCHECK_TIMER=m
diff --git a/arch/s390/configs/defconfig b/arch/s390/configs/defconfig
index 320379da96d9..e448711eff8d 100644
--- a/arch/s390/configs/defconfig
+++ b/arch/s390/configs/defconfig
@@ -540,7 +540,7 @@ CONFIG_INPUT_EVDEV=y
 # CONFIG_INPUT_MOUSE is not set
 # CONFIG_SERIO is not set
 CONFIG_LEGACY_PTY_COUNT=0
-CONFIG_VIRTIO_CONSOLE=y
+CONFIG_VIRTIO_CONSOLE=m
 CONFIG_HW_RANDOM_VIRTIO=m
 CONFIG_RAW_DRIVER=m
 CONFIG_HANGCHECK_TIMER=m
-- 
2.27.0


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

* Re: [PATCH] arch/s390/configs: Change CONFIG_VIRTIO_CONSOLE to "m"
  2021-04-28  8:24 [PATCH] arch/s390/configs: Change CONFIG_VIRTIO_CONSOLE to "m" Thomas Huth
@ 2021-04-28  8:31 ` Christian Borntraeger
  2021-04-28  9:08   ` Cornelia Huck
  2021-04-28  9:30   ` Thomas Huth
  2021-04-29  6:47 ` Christian Borntraeger
  1 sibling, 2 replies; 7+ messages in thread
From: Christian Borntraeger @ 2021-04-28  8:31 UTC (permalink / raw)
  To: Thomas Huth, linux-s390, Heiko Carstens
  Cc: linux-kernel, Vasily Gorbik, Marc Hartmayer, Halil Pasic, cohuck

On 28.04.21 10:24, Thomas Huth wrote:
> In former times, the virtio-console code had to be compiled into
> the kernel since the old guest virtio transport had some hard de-
> pendencies. But since the old virtio transport has been removed in
> commit 7fb2b2d51244 ("s390/virtio: remove the old KVM virtio transport"),
> we do not have this limitation anymore.
> Commit bb533ec8bacd ("s390/config: do not select VIRTIO_CONSOLE via
> Kconfig") then also lifted the hard setting in the Kconfig system, so
> we can finally switch the CONFIG_VIRTIO_CONSOLE knob to compile this
> driver as a module now, making it more flexible for the user to only
> load it if it is really required.

Isnt that a distro specific decision? I would be perfectly fine to have
this change in Fedora, Redhat and co. Not so sure about defconfig.
We often use the defconfig in our CI and development things to have a
kernel config that boots up fine, even without a ramdisk. I agree that
virtio console is no longer really the most important console but does
it really hurt? Is any distro using the defconfig unmodified?

> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>   arch/s390/configs/debug_defconfig | 2 +-
>   arch/s390/configs/defconfig       | 2 +-
>   2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/s390/configs/debug_defconfig b/arch/s390/configs/debug_defconfig
> index dc0b69058ac4..04ce0edd0b31 100644
> --- a/arch/s390/configs/debug_defconfig
> +++ b/arch/s390/configs/debug_defconfig
> @@ -548,7 +548,7 @@ CONFIG_INPUT_EVDEV=y
>   # CONFIG_INPUT_MOUSE is not set
>   # CONFIG_SERIO is not set
>   CONFIG_LEGACY_PTY_COUNT=0
> -CONFIG_VIRTIO_CONSOLE=y
> +CONFIG_VIRTIO_CONSOLE=m
>   CONFIG_HW_RANDOM_VIRTIO=m
>   CONFIG_RAW_DRIVER=m
>   CONFIG_HANGCHECK_TIMER=m
> diff --git a/arch/s390/configs/defconfig b/arch/s390/configs/defconfig
> index 320379da96d9..e448711eff8d 100644
> --- a/arch/s390/configs/defconfig
> +++ b/arch/s390/configs/defconfig
> @@ -540,7 +540,7 @@ CONFIG_INPUT_EVDEV=y
>   # CONFIG_INPUT_MOUSE is not set
>   # CONFIG_SERIO is not set
>   CONFIG_LEGACY_PTY_COUNT=0
> -CONFIG_VIRTIO_CONSOLE=y
> +CONFIG_VIRTIO_CONSOLE=m
>   CONFIG_HW_RANDOM_VIRTIO=m
>   CONFIG_RAW_DRIVER=m
>   CONFIG_HANGCHECK_TIMER=m
> 

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

* Re: [PATCH] arch/s390/configs: Change CONFIG_VIRTIO_CONSOLE to "m"
  2021-04-28  8:31 ` Christian Borntraeger
@ 2021-04-28  9:08   ` Cornelia Huck
  2021-04-28  9:30   ` Thomas Huth
  1 sibling, 0 replies; 7+ messages in thread
From: Cornelia Huck @ 2021-04-28  9:08 UTC (permalink / raw)
  To: Christian Borntraeger
  Cc: Thomas Huth, linux-s390, Heiko Carstens, linux-kernel,
	Vasily Gorbik, Marc Hartmayer, Halil Pasic

On Wed, 28 Apr 2021 10:31:54 +0200
Christian Borntraeger <borntraeger@de.ibm.com> wrote:

> On 28.04.21 10:24, Thomas Huth wrote:
> > In former times, the virtio-console code had to be compiled into
> > the kernel since the old guest virtio transport had some hard de-
> > pendencies. But since the old virtio transport has been removed in
> > commit 7fb2b2d51244 ("s390/virtio: remove the old KVM virtio transport"),
> > we do not have this limitation anymore.
> > Commit bb533ec8bacd ("s390/config: do not select VIRTIO_CONSOLE via
> > Kconfig") then also lifted the hard setting in the Kconfig system, so
> > we can finally switch the CONFIG_VIRTIO_CONSOLE knob to compile this
> > driver as a module now, making it more flexible for the user to only
> > load it if it is really required.  
> 
> Isnt that a distro specific decision? I would be perfectly fine to have
> this change in Fedora, Redhat and co. Not so sure about defconfig.
> We often use the defconfig in our CI and development things to have a
> kernel config that boots up fine, even without a ramdisk. I agree that
> virtio console is no longer really the most important console but does
> it really hurt? Is any distro using the defconfig unmodified?

Having a value in the defconfig that will be sensible for most users
sounds good to me, independent of what different distros choose to do.
(Or am I misunderstanding the purpose of the defconfig?)

For booting without a ramdisk, I see that virtio-blk and virtio-input
are y, while other virtio drivers are m. That should be sufficient,
shouldn't it?


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

* Re: [PATCH] arch/s390/configs: Change CONFIG_VIRTIO_CONSOLE to "m"
  2021-04-28  8:31 ` Christian Borntraeger
  2021-04-28  9:08   ` Cornelia Huck
@ 2021-04-28  9:30   ` Thomas Huth
  2021-04-28 21:03     ` Christian Borntraeger
  1 sibling, 1 reply; 7+ messages in thread
From: Thomas Huth @ 2021-04-28  9:30 UTC (permalink / raw)
  To: Christian Borntraeger, linux-s390, Heiko Carstens
  Cc: linux-kernel, Vasily Gorbik, Marc Hartmayer, Halil Pasic, cohuck

On 28/04/2021 10.31, Christian Borntraeger wrote:
> On 28.04.21 10:24, Thomas Huth wrote:
>> In former times, the virtio-console code had to be compiled into
>> the kernel since the old guest virtio transport had some hard de-
>> pendencies. But since the old virtio transport has been removed in
>> commit 7fb2b2d51244 ("s390/virtio: remove the old KVM virtio transport"),
>> we do not have this limitation anymore.
>> Commit bb533ec8bacd ("s390/config: do not select VIRTIO_CONSOLE via
>> Kconfig") then also lifted the hard setting in the Kconfig system, so
>> we can finally switch the CONFIG_VIRTIO_CONSOLE knob to compile this
>> driver as a module now, making it more flexible for the user to only
>> load it if it is really required.
> 
> Isnt that a distro specific decision? I would be perfectly fine to have
> this change in Fedora, Redhat and co.

Sure, I'll try to get it changed there, too.

> Not so sure about defconfig.
> We often use the defconfig in our CI and development things to have a
> kernel config that boots up fine, even without a ramdisk. I agree that
> virtio console is no longer really the most important console but does
> it really hurt?

Well, it's about a default configuration that should be fine for most users. 
I don't think that anybody really uses virtio-console in a ramdisk already 
... or are you really doing that in your CI? If so, then please disregard my 
patch.

Otherwise, I think compiling this as a module is the better choice, since 
most people won't use this at all during run-time, or maybe just use it for 
thing like communicating with the QEMU guest agent, but this is then 
certainly not required during boot up yet and thus the "m" should be fine, too.

> Is any distro using the defconfig unmodified?

Most likely don't. But it's a template for new configs, so we should use 
good defaults here.

  Thomas


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

* Re: [PATCH] arch/s390/configs: Change CONFIG_VIRTIO_CONSOLE to "m"
  2021-04-28  9:30   ` Thomas Huth
@ 2021-04-28 21:03     ` Christian Borntraeger
  2021-04-28 21:29       ` Heiko Carstens
  0 siblings, 1 reply; 7+ messages in thread
From: Christian Borntraeger @ 2021-04-28 21:03 UTC (permalink / raw)
  To: Thomas Huth, linux-s390, Heiko Carstens
  Cc: linux-kernel, Vasily Gorbik, Marc Hartmayer, Halil Pasic, cohuck



On 28.04.21 11:30, Thomas Huth wrote:
> On 28/04/2021 10.31, Christian Borntraeger wrote:
>> On 28.04.21 10:24, Thomas Huth wrote:
>>> In former times, the virtio-console code had to be compiled into
>>> the kernel since the old guest virtio transport had some hard de-
>>> pendencies. But since the old virtio transport has been removed in
>>> commit 7fb2b2d51244 ("s390/virtio: remove the old KVM virtio transport"),
>>> we do not have this limitation anymore.
>>> Commit bb533ec8bacd ("s390/config: do not select VIRTIO_CONSOLE via
>>> Kconfig") then also lifted the hard setting in the Kconfig system, so
>>> we can finally switch the CONFIG_VIRTIO_CONSOLE knob to compile this
>>> driver as a module now, making it more flexible for the user to only
>>> load it if it is really required.
>>
>> Isnt that a distro specific decision? I would be perfectly fine to have
>> this change in Fedora, Redhat and co.
> 
> Sure, I'll try to get it changed there, too.
> 
>> Not so sure about defconfig.
>> We often use the defconfig in our CI and development things to have a
>> kernel config that boots up fine, even without a ramdisk. I agree that
>> virtio console is no longer really the most important console but does
>> it really hurt?
> 
> Well, it's about a default configuration that should be fine for most users. I don't think that anybody really uses virtio-console in a ramdisk already ... or are you really doing that in your CI? If so, then please disregard my patch.

I think anybody uses the sclp console nowadays. The only question is, do
we care about manual configs with virtio-console?

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

* Re: [PATCH] arch/s390/configs: Change CONFIG_VIRTIO_CONSOLE to "m"
  2021-04-28 21:03     ` Christian Borntraeger
@ 2021-04-28 21:29       ` Heiko Carstens
  0 siblings, 0 replies; 7+ messages in thread
From: Heiko Carstens @ 2021-04-28 21:29 UTC (permalink / raw)
  To: Christian Borntraeger
  Cc: Thomas Huth, linux-s390, linux-kernel, Vasily Gorbik,
	Marc Hartmayer, Halil Pasic, cohuck

On Wed, Apr 28, 2021 at 11:03:22PM +0200, Christian Borntraeger wrote:
> On 28.04.21 11:30, Thomas Huth wrote:
> > On 28/04/2021 10.31, Christian Borntraeger wrote:
> > > On 28.04.21 10:24, Thomas Huth wrote:
> > > > In former times, the virtio-console code had to be compiled into
> > > > the kernel since the old guest virtio transport had some hard de-
> > > > pendencies. But since the old virtio transport has been removed in
> > > > commit 7fb2b2d51244 ("s390/virtio: remove the old KVM virtio transport"),
> > > > we do not have this limitation anymore.
> > > > Commit bb533ec8bacd ("s390/config: do not select VIRTIO_CONSOLE via
> > > > Kconfig") then also lifted the hard setting in the Kconfig system, so
> > > > we can finally switch the CONFIG_VIRTIO_CONSOLE knob to compile this
> > > > driver as a module now, making it more flexible for the user to only
> > > > load it if it is really required.
> > > 
> > > Isnt that a distro specific decision? I would be perfectly fine to have
> > > this change in Fedora, Redhat and co.
> > 
> > Sure, I'll try to get it changed there, too.
> > 
> > > Not so sure about defconfig.
> > > We often use the defconfig in our CI and development things to have a
> > > kernel config that boots up fine, even without a ramdisk. I agree that
> > > virtio console is no longer really the most important console but does
> > > it really hurt?
> > Well, it's about a default configuration that should be fine for
> > most users. I don't think that anybody really uses virtio-console
> > in a ramdisk already ... or are you really doing that in your CI?
> > If so, then please disregard my patch.
> 
> I think anybody uses the sclp console nowadays. The only question is, do
> we care about manual configs with virtio-console?

Not really. If it breaks someone's workflow we will know for sure
pretty soon. Therefore let's just change this.

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

* Re: [PATCH] arch/s390/configs: Change CONFIG_VIRTIO_CONSOLE to "m"
  2021-04-28  8:24 [PATCH] arch/s390/configs: Change CONFIG_VIRTIO_CONSOLE to "m" Thomas Huth
  2021-04-28  8:31 ` Christian Borntraeger
@ 2021-04-29  6:47 ` Christian Borntraeger
  1 sibling, 0 replies; 7+ messages in thread
From: Christian Borntraeger @ 2021-04-29  6:47 UTC (permalink / raw)
  To: Thomas Huth, linux-s390, Heiko Carstens
  Cc: linux-kernel, Vasily Gorbik, Marc Hartmayer, Halil Pasic, cohuck

On 28.04.21 10:24, Thomas Huth wrote:
> In former times, the virtio-console code had to be compiled into
> the kernel since the old guest virtio transport had some hard de-
> pendencies. But since the old virtio transport has been removed in
> commit 7fb2b2d51244 ("s390/virtio: remove the old KVM virtio transport"),
> we do not have this limitation anymore.
> Commit bb533ec8bacd ("s390/config: do not select VIRTIO_CONSOLE via
> Kconfig") then also lifted the hard setting in the Kconfig system, so
> we can finally switch the CONFIG_VIRTIO_CONSOLE knob to compile this
> driver as a module now, making it more flexible for the user to only
> load it if it is really required.
> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>

applied, thanks.
> ---
>   arch/s390/configs/debug_defconfig | 2 +-
>   arch/s390/configs/defconfig       | 2 +-
>   2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/s390/configs/debug_defconfig b/arch/s390/configs/debug_defconfig
> index dc0b69058ac4..04ce0edd0b31 100644
> --- a/arch/s390/configs/debug_defconfig
> +++ b/arch/s390/configs/debug_defconfig
> @@ -548,7 +548,7 @@ CONFIG_INPUT_EVDEV=y
>   # CONFIG_INPUT_MOUSE is not set
>   # CONFIG_SERIO is not set
>   CONFIG_LEGACY_PTY_COUNT=0
> -CONFIG_VIRTIO_CONSOLE=y
> +CONFIG_VIRTIO_CONSOLE=m
>   CONFIG_HW_RANDOM_VIRTIO=m
>   CONFIG_RAW_DRIVER=m
>   CONFIG_HANGCHECK_TIMER=m
> diff --git a/arch/s390/configs/defconfig b/arch/s390/configs/defconfig
> index 320379da96d9..e448711eff8d 100644
> --- a/arch/s390/configs/defconfig
> +++ b/arch/s390/configs/defconfig
> @@ -540,7 +540,7 @@ CONFIG_INPUT_EVDEV=y
>   # CONFIG_INPUT_MOUSE is not set
>   # CONFIG_SERIO is not set
>   CONFIG_LEGACY_PTY_COUNT=0
> -CONFIG_VIRTIO_CONSOLE=y
> +CONFIG_VIRTIO_CONSOLE=m
>   CONFIG_HW_RANDOM_VIRTIO=m
>   CONFIG_RAW_DRIVER=m
>   CONFIG_HANGCHECK_TIMER=m
> 

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

end of thread, other threads:[~2021-04-29  6:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-28  8:24 [PATCH] arch/s390/configs: Change CONFIG_VIRTIO_CONSOLE to "m" Thomas Huth
2021-04-28  8:31 ` Christian Borntraeger
2021-04-28  9:08   ` Cornelia Huck
2021-04-28  9:30   ` Thomas Huth
2021-04-28 21:03     ` Christian Borntraeger
2021-04-28 21:29       ` Heiko Carstens
2021-04-29  6:47 ` Christian Borntraeger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.