Skip to contentSkip to conversation

virtio: virtio_pci_legacy: Remove default y from Kconfig

PATCH RESEND In review Ram Muthiah 2 participants 4 messages Feb 28, 2020 – Mar 11, 2020 virtio core

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 virtio: virtio_pci_legacy: Remove default y from Kconfig

The legacy pci driver should no longer be default enabled. QEMU has implemented support for Virtio 1 for virtio-pci since June 2015 on SHA dfb8e184db75.

---
 drivers/virtio/Kconfig | 6 ------
 1 file changed, 6 deletions(-)
drivers/virtio/Kconfig +0 -6
index 078615cf2afc..eacd0b90d32b 100644
@@ -26,7 +26,6 @@ config VIRTIO_PCI
 
 config VIRTIO_PCI_LEGACY
 	bool "Support for legacy virtio draft 0.9.X and older devices"
-	default y
 	depends on VIRTIO_PCI
 	---help---
           Virtio PCI Card 0.9.X Draft (circa 2014) and older device support.
@@ -36,11 +35,6 @@ config VIRTIO_PCI_LEGACY
 	  If disabled, you get a slightly smaller, non-transitional driver,
 	  with no legacy compatibility.
 
-          So look out into your driveway.  Do you have a flying car?  If
-          so, you can happily disable this option and virtio will not
-          break.  Otherwise, leave it set.  Unless you're testing what
-          life will be like in The Future.
-
 	  If unsure, say Y.
 
 config VIRTIO_PMEM
Signature · 1 line
2.25.0.265.gbab2e86ba0-goog
#1 lore raw
Quoted 5 lines · Ram Muthiah

The legacy pci driver should no longer be default enabled. QEMU has implemented support for Virtio 1 for virtio-pci since June 2015 on SHA dfb8e184db75.

I see little reason to do this: y is safer and will boot on more hypervisors, so people that aren't sure should enable it.

Quoted 30 lines
---
 drivers/virtio/Kconfig | 6 ------
 1 file changed, 6 deletions(-)
drivers/virtio/Kconfig +0 -6
index 078615cf2afc..eacd0b90d32b 100644
@@ -26,7 +26,6 @@ config VIRTIO_PCI
 
 config VIRTIO_PCI_LEGACY
 	bool "Support for legacy virtio draft 0.9.X and older devices"
-	default y
 	depends on VIRTIO_PCI
 	---help---
           Virtio PCI Card 0.9.X Draft (circa 2014) and older device support.
@@ -36,11 +35,6 @@ config VIRTIO_PCI_LEGACY
 	  If disabled, you get a slightly smaller, non-transitional driver,
 	  with no legacy compatibility.
 
-          So look out into your driveway.  Do you have a flying car?  If
-          so, you can happily disable this option and virtio will not
-          break.  Otherwise, leave it set.  Unless you're testing what
-          life will be like in The Future.
-
 	  If unsure, say Y.
 
 config VIRTIO_PMEM
Signature · 1 line
2.25.0.265.gbab2e86ba0-goog
#2 lore raw
Quoted 11 lines · Michael S. Tsirkin
Quoted 5 lines · Ram Muthiah

The legacy pci driver should no longer be default enabled. QEMU has implemented support for Virtio 1 for virtio-pci since June 2015 on SHA dfb8e184db75.

I see little reason to do this: y is safer and will boot on more hypervisors, so people that aren't sure should enable it.

In that case, would it be reasonable to fold VIRTIO_PCI_LEGACY into VIRTIO_PCI?

The result would boot more hypervisors as well and remove the CONFIG in the process.

Quoted 31 lines
Quoted 30 lines
---
 drivers/virtio/Kconfig | 6 ------
 1 file changed, 6 deletions(-)
drivers/virtio/Kconfig +0 -7
index 078615cf2afc..eacd0b90d32b 100644
@@ -26,7 +26,6 @@ config VIRTIO_PCI
 
 config VIRTIO_PCI_LEGACY
      bool "Support for legacy virtio draft 0.9.X and older devices"
-     default y
      depends on VIRTIO_PCI
      ---help---
           Virtio PCI Card 0.9.X Draft (circa 2014) and older device support.
@@ -36,11 +35,6 @@ config VIRTIO_PCI_LEGACY
        If disabled, you get a slightly smaller, non-transitional driver,
        with no legacy compatibility.
 
-          So look out into your driveway.  Do you have a flying car?  If
-          so, you can happily disable this option and virtio will not
-          break.  Otherwise, leave it set.  Unless you're testing what
-          life will be like in The Future.
-
        If unsure, say Y.
 
 config VIRTIO_PMEM
--

2.25.0.265.gbab2e86ba0-goog

#3 lore raw
Quoted 13 lines · Ram Muthiah
Quoted 11 lines · Michael S. Tsirkin
Quoted 5 lines · Ram Muthiah

The legacy pci driver should no longer be default enabled. QEMU has implemented support for Virtio 1 for virtio-pci since June 2015 on SHA dfb8e184db75.

I see little reason to do this: y is safer and will boot on more hypervisors, so people that aren't sure should enable it.

Quoted 5 lines

In that case, would it be reasonable to fold VIRTIO_PCI_LEGACY into VIRTIO_PCI?

The result would boot more hypervisors as well and remove the CONFIG in the process.

This might break configurations relying on the flying car joke to be there.

Quoted 31 lines
Quoted 31 lines
Quoted 30 lines
---
 drivers/virtio/Kconfig | 6 ------
 1 file changed, 6 deletions(-)
drivers/virtio/Kconfig +0 -7
index 078615cf2afc..eacd0b90d32b 100644
@@ -26,7 +26,6 @@ config VIRTIO_PCI
 
 config VIRTIO_PCI_LEGACY
      bool "Support for legacy virtio draft 0.9.X and older devices"
-     default y
      depends on VIRTIO_PCI
      ---help---
           Virtio PCI Card 0.9.X Draft (circa 2014) and older device support.
@@ -36,11 +35,6 @@ config VIRTIO_PCI_LEGACY
        If disabled, you get a slightly smaller, non-transitional driver,
        with no legacy compatibility.
 
-          So look out into your driveway.  Do you have a flying car?  If
-          so, you can happily disable this option and virtio will not
-          break.  Otherwise, leave it set.  Unless you're testing what
-          life will be like in The Future.
-
        If unsure, say Y.
 
 config VIRTIO_PMEM
--

2.25.0.265.gbab2e86ba0-goog