From: Alex Williamson <alex.williamson@redhat.com>
To: aliguori@us.ibm.com
Cc: kvm@vger.kernel.org, aik@ozlabs.ru, jan.kiszka@siemens.com,
qemu-devel@nongnu.org, blauwirbel@gmail.com, avi@redhat.com
Subject: [PATCH v3 4/4] vfio: Enable vfio-pci and mark supported
Date: Tue, 14 Aug 2012 14:33:13 -0600 [thread overview]
Message-ID: <20120814203312.11522.48014.stgit@bling.home> (raw)
In-Reply-To: <20120814202141.11522.78340.stgit@bling.home>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
---
MAINTAINERS | 5 +++++
configure | 6 ++++++
hw/i386/Makefile.objs | 1 +
3 files changed, 12 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 708ad54..327b219 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -468,6 +468,11 @@ M: Gerd Hoffmann <kraxel@redhat.com>
S: Maintained
F: hw/usb*
+VFIO
+M: Alex Williamson <alex.williamson@redhat.com>
+S: Supported
+F: hw/vfio*
+
vhost
M: Michael S. Tsirkin <mst@redhat.com>
S: Supported
diff --git a/configure b/configure
index fea62f1..ca04f76 100755
--- a/configure
+++ b/configure
@@ -167,6 +167,7 @@ attr=""
libattr=""
xfs=""
+vfio_pci="no"
vhost_net="no"
kvm="no"
gprof="no"
@@ -512,6 +513,7 @@ Haiku)
usb="linux"
kvm="yes"
vhost_net="yes"
+ vfio_pci="yes"
if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then
audio_possible_drivers="$audio_possible_drivers fmod"
fi
@@ -3120,6 +3122,7 @@ echo "OpenGL support $opengl"
echo "libiscsi support $libiscsi"
echo "build guest agent $guest_agent"
echo "coroutine backend $coroutine_backend"
+echo "VFIO PCI support $vfio_pci"
if test "$sdl_too_old" = "yes"; then
echo "-> Your SDL version is too old - please upgrade to have SDL support"
@@ -3811,6 +3814,9 @@ case "$target_arch2" in
*)
echo "CONFIG_NO_XEN=y" >> $config_target_mak
esac
+if test "$vfio_pci" = "yes" -a "$target_softmmu" = "yes" ; then
+ echo "CONFIG_VFIO_PCI=y" >> $config_target_mak
+fi
case "$target_arch2" in
i386|x86_64|ppcemb|ppc|ppc64|s390x)
# Make sure the target and host cpus are compatible
diff --git a/hw/i386/Makefile.objs b/hw/i386/Makefile.objs
index 8c764bb..a2783ef 100644
--- a/hw/i386/Makefile.objs
+++ b/hw/i386/Makefile.objs
@@ -11,5 +11,6 @@ obj-$(CONFIG_XEN_PCI_PASSTHROUGH) += xen-host-pci-device.o
obj-$(CONFIG_XEN_PCI_PASSTHROUGH) += xen_pt.o xen_pt_config_init.o xen_pt_msi.o
obj-y += kvm/
obj-$(CONFIG_SPICE) += qxl.o qxl-logger.o qxl-render.o
+obj-$(CONFIG_VFIO_PCI) += vfio_pci.o
obj-y := $(addprefix ../,$(obj-y))
WARNING: multiple messages have this Message-ID (diff)
From: Alex Williamson <alex.williamson@redhat.com>
To: aliguori@us.ibm.com
Cc: kvm@vger.kernel.org, aik@ozlabs.ru, jan.kiszka@siemens.com,
qemu-devel@nongnu.org, blauwirbel@gmail.com, avi@redhat.com
Subject: [Qemu-devel] [PATCH v3 4/4] vfio: Enable vfio-pci and mark supported
Date: Tue, 14 Aug 2012 14:33:13 -0600 [thread overview]
Message-ID: <20120814203312.11522.48014.stgit@bling.home> (raw)
In-Reply-To: <20120814202141.11522.78340.stgit@bling.home>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
---
MAINTAINERS | 5 +++++
configure | 6 ++++++
hw/i386/Makefile.objs | 1 +
3 files changed, 12 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 708ad54..327b219 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -468,6 +468,11 @@ M: Gerd Hoffmann <kraxel@redhat.com>
S: Maintained
F: hw/usb*
+VFIO
+M: Alex Williamson <alex.williamson@redhat.com>
+S: Supported
+F: hw/vfio*
+
vhost
M: Michael S. Tsirkin <mst@redhat.com>
S: Supported
diff --git a/configure b/configure
index fea62f1..ca04f76 100755
--- a/configure
+++ b/configure
@@ -167,6 +167,7 @@ attr=""
libattr=""
xfs=""
+vfio_pci="no"
vhost_net="no"
kvm="no"
gprof="no"
@@ -512,6 +513,7 @@ Haiku)
usb="linux"
kvm="yes"
vhost_net="yes"
+ vfio_pci="yes"
if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then
audio_possible_drivers="$audio_possible_drivers fmod"
fi
@@ -3120,6 +3122,7 @@ echo "OpenGL support $opengl"
echo "libiscsi support $libiscsi"
echo "build guest agent $guest_agent"
echo "coroutine backend $coroutine_backend"
+echo "VFIO PCI support $vfio_pci"
if test "$sdl_too_old" = "yes"; then
echo "-> Your SDL version is too old - please upgrade to have SDL support"
@@ -3811,6 +3814,9 @@ case "$target_arch2" in
*)
echo "CONFIG_NO_XEN=y" >> $config_target_mak
esac
+if test "$vfio_pci" = "yes" -a "$target_softmmu" = "yes" ; then
+ echo "CONFIG_VFIO_PCI=y" >> $config_target_mak
+fi
case "$target_arch2" in
i386|x86_64|ppcemb|ppc|ppc64|s390x)
# Make sure the target and host cpus are compatible
diff --git a/hw/i386/Makefile.objs b/hw/i386/Makefile.objs
index 8c764bb..a2783ef 100644
--- a/hw/i386/Makefile.objs
+++ b/hw/i386/Makefile.objs
@@ -11,5 +11,6 @@ obj-$(CONFIG_XEN_PCI_PASSTHROUGH) += xen-host-pci-device.o
obj-$(CONFIG_XEN_PCI_PASSTHROUGH) += xen_pt.o xen_pt_config_init.o xen_pt_msi.o
obj-y += kvm/
obj-$(CONFIG_SPICE) += qxl.o qxl-logger.o qxl-render.o
+obj-$(CONFIG_VFIO_PCI) += vfio_pci.o
obj-y := $(addprefix ../,$(obj-y))
next prev parent reply other threads:[~2012-08-14 20:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-14 20:32 [PATCH v3 0/4] VFIO-based PCI device assignment for QEMU 1.2 Alex Williamson
2012-08-14 20:32 ` [Qemu-devel] " Alex Williamson
2012-08-14 20:32 ` [PATCH v3 1/4] Update kernel header script to include vfio Alex Williamson
2012-08-14 20:32 ` [Qemu-devel] " Alex Williamson
2012-08-14 20:32 ` [PATCH v3 2/4] Update Linux kernel headers Alex Williamson
2012-08-14 20:32 ` [Qemu-devel] " Alex Williamson
2012-08-14 20:33 ` [PATCH v3 3/4] vfio: vfio-pci device assignment driver Alex Williamson
2012-08-14 20:33 ` [Qemu-devel] " Alex Williamson
2012-08-14 20:33 ` Alex Williamson [this message]
2012-08-14 20:33 ` [Qemu-devel] [PATCH v3 4/4] vfio: Enable vfio-pci and mark supported Alex Williamson
2012-08-15 13:45 ` [PATCH v3 0/4] VFIO-based PCI device assignment for QEMU 1.2 Avi Kivity
2012-08-15 13:45 ` [Qemu-devel] " Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120814203312.11522.48014.stgit@bling.home \
--to=alex.williamson@redhat.com \
--cc=aik@ozlabs.ru \
--cc=aliguori@us.ibm.com \
--cc=avi@redhat.com \
--cc=blauwirbel@gmail.com \
--cc=jan.kiszka@siemens.com \
--cc=kvm@vger.kernel.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.