mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 07:31:29 +00:00
c3fc3e098b
Introduce APIs to execute legacy IO admin commands. It includes: io_legacy_read/write for both common and the device configuration, io_legacy_notify_info. In addition, exposing an API to check whether the legacy IO commands are supported. (i.e. virtio_pci_admin_has_legacy_io()). Those APIs will be used by the next patches from this series. Note: Unlike modern drivers which support hardware virtio devices, legacy drivers assume software-based devices: e.g. they don't use proper memory barriers on ARM, use big endian on PPC, etc. X86 drivers are mostly ok though, more or less by chance. For now, only support legacy IO on X86. Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Yishai Hadas <yishaih@nvidia.com> Link: https://lore.kernel.org/r/20231219093247.170936-7-yishaih@nvidia.com Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
16 lines
764 B
Makefile
16 lines
764 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
obj-$(CONFIG_VIRTIO) += virtio.o virtio_ring.o
|
|
obj-$(CONFIG_VIRTIO_ANCHOR) += virtio_anchor.o
|
|
obj-$(CONFIG_VIRTIO_PCI_LIB) += virtio_pci_modern_dev.o
|
|
obj-$(CONFIG_VIRTIO_PCI_LIB_LEGACY) += virtio_pci_legacy_dev.o
|
|
obj-$(CONFIG_VIRTIO_MMIO) += virtio_mmio.o
|
|
obj-$(CONFIG_VIRTIO_PCI) += virtio_pci.o
|
|
virtio_pci-y := virtio_pci_modern.o virtio_pci_common.o
|
|
virtio_pci-$(CONFIG_VIRTIO_PCI_LEGACY) += virtio_pci_legacy.o
|
|
virtio_pci-$(CONFIG_VIRTIO_PCI_ADMIN_LEGACY) += virtio_pci_admin_legacy_io.o
|
|
obj-$(CONFIG_VIRTIO_BALLOON) += virtio_balloon.o
|
|
obj-$(CONFIG_VIRTIO_INPUT) += virtio_input.o
|
|
obj-$(CONFIG_VIRTIO_VDPA) += virtio_vdpa.o
|
|
obj-$(CONFIG_VIRTIO_MEM) += virtio_mem.o
|
|
obj-$(CONFIG_VIRTIO_DMA_SHARED_BUFFER) += virtio_dma_buf.o
|