mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-27 07:20:52 +07:00
e72542191c
virtio has been so far used only in the context of virtualization, and the virtio Kconfig was sourced directly by the relevant arch Kconfigs when VIRTUALIZATION was selected. Now that we start using virtio for inter-processor communications, we need to source the virtio Kconfig outside of the virtualization scope too. Moreover, some architectures might use virtio for both virtualization and inter-processor communications, so directly sourcing virtio might yield unexpected results due to conflicting selections. The simple solution offered by this patch is to always source virtio's Kconfig in drivers/Kconfig, and remove it from the appropriate arch Kconfigs. Additionally, a virtio menu entry has been added so virtio drivers don't show up in the general drivers menu. This way anyone can use virtio, though it's arguably less accessible (and neat!) for virtualization users now. Note: some architectures (mips and sh) seem to have a VIRTUALIZATION menu merely for sourcing virtio's Kconfig, so that menu is removed too. Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
39 lines
974 B
Plaintext
39 lines
974 B
Plaintext
# Virtio always gets selected by whoever wants it.
|
|
config VIRTIO
|
|
tristate
|
|
|
|
# Similarly the virtio ring implementation.
|
|
config VIRTIO_RING
|
|
tristate
|
|
depends on VIRTIO
|
|
|
|
menu "Virtio drivers"
|
|
|
|
config VIRTIO_PCI
|
|
tristate "PCI driver for virtio devices (EXPERIMENTAL)"
|
|
depends on PCI && EXPERIMENTAL
|
|
select VIRTIO
|
|
select VIRTIO_RING
|
|
---help---
|
|
This drivers provides support for virtio based paravirtual device
|
|
drivers over PCI. This requires that your VMM has appropriate PCI
|
|
virtio backends. Most QEMU based VMMs should support these devices
|
|
(like KVM or Xen).
|
|
|
|
Currently, the ABI is not considered stable so there is no guarantee
|
|
that this version of the driver will work with your VMM.
|
|
|
|
If unsure, say M.
|
|
|
|
config VIRTIO_BALLOON
|
|
tristate "Virtio balloon driver (EXPERIMENTAL)"
|
|
select VIRTIO
|
|
select VIRTIO_RING
|
|
---help---
|
|
This driver supports increasing and decreasing the amount
|
|
of memory within a KVM guest.
|
|
|
|
If unsure, say M.
|
|
|
|
endmenu
|