Skip to content
This repository has been archived by the owner on May 18, 2020. It is now read-only.

Commit

Permalink
vfio: move hw/misc/vfio.c to hw/vfio/pci.c Move vfio.h into include/h…
Browse files Browse the repository at this point in the history
…w/vfio

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>
  • Loading branch information
kimphill authored and awilliam committed Dec 19, 2014
1 parent c676767 commit cf7087d
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion MAINTAINERS
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions hw/Makefile.objs
Expand Up @@ -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/
Expand Down
1 change: 0 additions & 1 deletion hw/misc/Makefile.objs
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion hw/ppc/spapr_pci_vfio.c
Expand Up @@ -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),
Expand Down
3 changes: 3 additions & 0 deletions hw/vfio/Makefile.objs
@@ -0,0 +1,3 @@
ifeq ($(CONFIG_LINUX), y)
obj-$(CONFIG_PCI) += pci.o
endif
2 changes: 1 addition & 1 deletion hw/misc/vfio.c → hw/vfio/pci.c
Expand Up @@ -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
Expand Down
File renamed without changes.

0 comments on commit cf7087d

Please sign in to comment.