]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
vdpa: move to drivers/vdpa
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 31 Mar 2020 19:15:14 +0000 (15:15 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 2 Apr 2020 14:41:40 +0000 (10:41 -0400)
We have both vhost and virtio drivers that depend on vdpa.
It's easier to locate it at a top level directory otherwise
we run into issues e.g. if vhost is built-in but virtio
is modular.  Let's just move it up a level.

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
14 files changed:
MAINTAINERS
drivers/Kconfig
drivers/Makefile
drivers/vdpa/Kconfig [moved from drivers/virtio/vdpa/Kconfig with 100% similarity]
drivers/vdpa/Makefile [moved from drivers/virtio/vdpa/Makefile with 100% similarity]
drivers/vdpa/ifcvf/Makefile [moved from drivers/virtio/vdpa/ifcvf/Makefile with 100% similarity]
drivers/vdpa/ifcvf/ifcvf_base.c [moved from drivers/virtio/vdpa/ifcvf/ifcvf_base.c with 100% similarity]
drivers/vdpa/ifcvf/ifcvf_base.h [moved from drivers/virtio/vdpa/ifcvf/ifcvf_base.h with 100% similarity]
drivers/vdpa/ifcvf/ifcvf_main.c [moved from drivers/virtio/vdpa/ifcvf/ifcvf_main.c with 100% similarity]
drivers/vdpa/vdpa.c [moved from drivers/virtio/vdpa/vdpa.c with 100% similarity]
drivers/vdpa/vdpa_sim/Makefile [moved from drivers/virtio/vdpa/vdpa_sim/Makefile with 100% similarity]
drivers/vdpa/vdpa_sim/vdpa_sim.c [moved from drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c with 100% similarity]
drivers/virtio/Kconfig
drivers/virtio/Makefile

index 70c47bc55343925265e07201979199a10c508346..7cfa55c765fd224b1020cae35fe5c2ccad32de33 100644 (file)
@@ -17695,6 +17695,7 @@ L:      virtualization@lists.linux-foundation.org
 S:     Maintained
 F:     Documentation/devicetree/bindings/virtio/
 F:     drivers/virtio/
+F:     drivers/vdpa/
 F:     tools/virtio/
 F:     drivers/net/virtio_net.c
 F:     drivers/block/virtio_blk.c
index 7a6d8b2b68b47e9497052095b7f0db70b31aa490..ac23d520e916698d25b2c8beef6c35dee20c4777 100644 (file)
@@ -138,6 +138,8 @@ source "drivers/virt/Kconfig"
 
 source "drivers/virtio/Kconfig"
 
+source "drivers/vdpa/Kconfig"
+
 source "drivers/vhost/Kconfig"
 
 source "drivers/hv/Kconfig"
index 31cf17dee252fa54558c097d4fee7bbc931fcc1b..21688f3b1588e8b3500865e22683e50545d1509f 100644 (file)
@@ -42,6 +42,7 @@ obj-$(CONFIG_DMADEVICES)      += dma/
 obj-y                          += soc/
 
 obj-$(CONFIG_VIRTIO)           += virtio/
+obj-$(CONFIG_VDPA)             += vdpa/
 obj-$(CONFIG_XEN)              += xen/
 
 # regulators early, since some subsystems rely on them to initialize
index 99e4245706445905823c8c7c74297d2cabdaf844..2aadf398d8ccf1785d45c94b4416ad4a44b34748 100644 (file)
@@ -109,5 +109,3 @@ config VIRTIO_MMIO_CMDLINE_DEVICES
         If unsure, say 'N'.
 
 endif # VIRTIO_MENU
-
-source "drivers/virtio/vdpa/Kconfig"
index 3407ac03fe60a3493601363718f813c60f90c919..29a1386ecc03c156257ba4f0c337dcb94535a470 100644 (file)
@@ -7,4 +7,3 @@ virtio_pci-$(CONFIG_VIRTIO_PCI_LEGACY) += virtio_pci_legacy.o
 obj-$(CONFIG_VIRTIO_BALLOON) += virtio_balloon.o
 obj-$(CONFIG_VIRTIO_INPUT) += virtio_input.o
 obj-$(CONFIG_VIRTIO_VDPA) += virtio_vdpa.o
-obj-$(CONFIG_VDPA) += vdpa/