]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
vfio: move hw/misc/vfio.c to hw/vfio/pci.c Move vfio.h into include/hw/vfio
authorKim Phillips <kim.phillips@linaro.org>
Fri, 19 Dec 2014 22:24:06 +0000 (15:24 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 19 Dec 2014 22:24:06 +0000 (15:24 -0700)
This is done in preparation for the addition of VFIO platform
device support.

Signed-off-by: Kim Phillips <kim.phillips@linaro.org>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
LICENSE
MAINTAINERS
hw/Makefile.objs
hw/misc/Makefile.objs
hw/ppc/spapr_pci_vfio.c
hw/vfio/Makefile.objs [new file with mode: 0644]
hw/vfio/pci.c [moved from hw/misc/vfio.c with 99% similarity]
include/hw/vfio/vfio.h [moved from include/hw/misc/vfio.h with 100% similarity]

diff --git a/LICENSE b/LICENSE
index da70e949328b96f53468f335a42af3845e0ca868..0e0b4b9553a5057ab29a20036e03ad113cfcb940 100644 (file)
--- a/LICENSE
+++ b/LICENSE
@@ -11,7 +11,7 @@ option) any later version.
 
 As of July 2013, contributions under version 2 of the GNU General Public
 License (and no later version) are only accepted for the following files
-or directories: bsd-user/, linux-user/, hw/misc/vfio.c, hw/xen/xen_pt*.
+or directories: bsd-user/, linux-user/, hw/vfio/, hw/xen/xen_pt*.
 
 3) The Tiny Code Generator (TCG) is released under the BSD license
    (see license headers in files).
index d72d6e37d0f1ec5f963ffd4961791509ec045515..01cfb05b76ff0ae353ebf587d4c22f8897ef7908 100644 (file)
@@ -657,7 +657,7 @@ F: hw/usb/dev-serial.c
 VFIO
 M: Alex Williamson <alex.williamson@redhat.com>
 S: Supported
-F: hw/misc/vfio.c
+F: hw/vfio/*
 
 vhost
 M: Michael S. Tsirkin <mst@redhat.com>
index 52a1464051939292ec12e2d25ddfd74914e10819..73afa41b3278d5b0bf4c21f3d44620b9e12b851c 100644 (file)
@@ -26,6 +26,7 @@ devices-dirs-$(CONFIG_SOFTMMU) += ssi/
 devices-dirs-$(CONFIG_SOFTMMU) += timer/
 devices-dirs-$(CONFIG_TPM) += tpm/
 devices-dirs-$(CONFIG_SOFTMMU) += usb/
+devices-dirs-$(CONFIG_SOFTMMU) += vfio/
 devices-dirs-$(CONFIG_VIRTIO) += virtio/
 devices-dirs-$(CONFIG_SOFTMMU) += watchdog/
 devices-dirs-$(CONFIG_SOFTMMU) += xen/
index 979e532fdf853d815a99e1151b3458f3e554d89f..e47fea8530653b16fdf556cd780e130e7951ef6f 100644 (file)
@@ -21,7 +21,6 @@ common-obj-$(CONFIG_MACIO) += macio/
 
 ifeq ($(CONFIG_PCI), y)
 obj-$(CONFIG_KVM) += ivshmem.o
-obj-$(CONFIG_LINUX) += vfio.o
 endif
 
 obj-$(CONFIG_REALVIEW) += arm_sysctl.o
index d3bddf2887d33dc040342890576eb6740cb9dda4..144912bf54d19cc773f0abc815fa24a93fa82796 100644 (file)
@@ -20,7 +20,7 @@
 #include "hw/ppc/spapr.h"
 #include "hw/pci-host/spapr.h"
 #include "linux/vfio.h"
-#include "hw/misc/vfio.h"
+#include "hw/vfio/vfio.h"
 
 static Property spapr_phb_vfio_properties[] = {
     DEFINE_PROP_INT32("iommu", sPAPRPHBVFIOState, iommugroupid, -1),
diff --git a/hw/vfio/Makefile.objs b/hw/vfio/Makefile.objs
new file mode 100644 (file)
index 0000000..31c7dab
--- /dev/null
@@ -0,0 +1,3 @@
+ifeq ($(CONFIG_LINUX), y)
+obj-$(CONFIG_PCI) += pci.o
+endif
similarity index 99%
rename from hw/misc/vfio.c
rename to hw/vfio/pci.c
index 51844cf70d5daaab1afb191994c2eec92b1eca93..41244811f33cf6e4455d62293555b6b7c86a2c42 100644 (file)
@@ -39,8 +39,8 @@
 #include "qemu/range.h"
 #include "sysemu/kvm.h"
 #include "sysemu/sysemu.h"
-#include "hw/misc/vfio.h"
 #include "trace.h"
+#include "hw/vfio/vfio.h"
 
 /* Extra debugging, trap acceleration paths for more logging */
 #define VFIO_ALLOW_MMAP 1