From: Alex Williamson <alex.williamson@redhat.com>
To: chrisw@sous-sol.org, aik@au1.ibm.com, pmac@au1.ibm.com,
dwg@au1.ibm.com, joerg.roedel@amd.com, agraf@suse.de,
benve@cisco.com, aafabbri@cisco.com, B08248@freescale.com,
B07421@freescale.com, avi@redhat.com, kvm@vger.kernel.org,
qemu-devel@nongnu.org, iommu@lists.linux-foundation.org,
linux-pci@vger.kernel.org
Cc: alex.williamson@redhat.com
Subject: [Qemu-devel] [RFC PATCH 0/5] VFIO-NG group/device/iommu framework
Date: Thu, 01 Sep 2011 13:50:23 -0600 [thread overview]
Message-ID: <20110901194915.2391.97400.stgit@s20.home> (raw)
Trying to move beyond talking about how VFIO should work to
re-writing the code. This is pre-alpha, known broken, will
probably crash your system but it illustrates some of how
I see groups, devices, and iommus interacting. This is just
the framework, no code to actually support user space drivers
or device assignment yet.
The iommu portions are still using the "FIXME" PCI specific
hooks. Once Joerg gets some buy-in on his bus specific iommu
patches, we can move to that.
The group management is more complicated than I'd like and
you can get groups into a bad state by killing the test program
with devices/iommus open. The locking is overly simplistic.
But, it's a start. Please make constructive comments and
suggestions. Patches based on v3.0. Thanks,
Alex
---
Alex Williamson (5):
VFIO: Simple test tool
VFIO: Add PCI device support
VFIO: Base framework for new VFIO driver
intel-iommu: Implement iommu_device_group
iommu: Add iommu_device_group callback and iommu_group sysfs entry
drivers/Kconfig | 2
drivers/Makefile | 1
drivers/base/iommu.c | 51 ++
drivers/pci/intel-iommu.c | 52 ++
drivers/vfio/Kconfig | 12 +
drivers/vfio/Makefile | 4
drivers/vfio/vfio_device.c | 109 +++++
drivers/vfio/vfio_iommu.c | 81 ++++
drivers/vfio/vfio_main.c | 889 ++++++++++++++++++++++++++++++++++++++++
drivers/vfio/vfio_pci.c | 124 ++++++
drivers/vfio/vfio_private.h | 87 ++++
include/linux/iommu.h | 6
tools/testing/vfio/Makefile | 4
tools/testing/vfio/vfio_test.c | 406 ++++++++++++++++++
14 files changed, 1828 insertions(+), 0 deletions(-)
create mode 100644 drivers/vfio/Kconfig
create mode 100644 drivers/vfio/Makefile
create mode 100644 drivers/vfio/vfio_device.c
create mode 100644 drivers/vfio/vfio_iommu.c
create mode 100644 drivers/vfio/vfio_main.c
create mode 100644 drivers/vfio/vfio_pci.c
create mode 100644 drivers/vfio/vfio_private.h
create mode 100644 tools/testing/vfio/Makefile
create mode 100644 tools/testing/vfio/vfio_test.c
next reply other threads:[~2011-09-01 19:51 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-01 19:50 Alex Williamson [this message]
2011-09-01 19:50 ` [RFC PATCH 1/5] iommu: Add iommu_device_group callback and iommu_group sysfs entry Alex Williamson
2011-09-01 19:50 ` [Qemu-devel] " Alex Williamson
2011-09-01 19:50 ` [RFC PATCH 2/5] intel-iommu: Implement iommu_device_group Alex Williamson
2011-09-01 19:50 ` [Qemu-devel] " Alex Williamson
2011-09-01 19:50 ` [Qemu-devel] [RFC PATCH 3/5] VFIO: Base framework for new VFIO driver Alex Williamson
2011-09-07 14:52 ` Konrad Rzeszutek Wilk
2011-09-07 14:52 ` [Qemu-devel] " Konrad Rzeszutek Wilk
2011-09-19 16:42 ` Alex Williamson
2011-09-19 16:42 ` [Qemu-devel] " Alex Williamson
2011-09-01 19:50 ` Alex Williamson
2011-09-01 19:50 ` [RFC PATCH 4/5] VFIO: Add PCI device support Alex Williamson
2011-09-01 19:50 ` [Qemu-devel] " Alex Williamson
2011-09-07 18:55 ` Konrad Rzeszutek Wilk
2011-09-07 18:55 ` [Qemu-devel] " Konrad Rzeszutek Wilk
2011-09-08 7:52 ` Avi Kivity
2011-09-08 7:52 ` [Qemu-devel] " Avi Kivity
2011-09-08 21:52 ` Alex Williamson
2011-09-08 21:52 ` [Qemu-devel] " Alex Williamson
2011-09-01 19:50 ` [Qemu-devel] [RFC PATCH 5/5] VFIO: Simple test tool Alex Williamson
2011-09-01 19:50 ` Alex Williamson
2011-09-07 11:58 ` [RFC PATCH 0/5] VFIO-NG group/device/iommu framework Alexander Graf
2011-09-07 11:58 ` [Qemu-devel] " Alexander Graf
2011-09-08 21:54 ` Alex Williamson
2011-09-08 21:54 ` [Qemu-devel] " Alex Williamson
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=20110901194915.2391.97400.stgit@s20.home \
--to=alex.williamson@redhat.com \
--cc=B07421@freescale.com \
--cc=B08248@freescale.com \
--cc=aafabbri@cisco.com \
--cc=agraf@suse.de \
--cc=aik@au1.ibm.com \
--cc=avi@redhat.com \
--cc=benve@cisco.com \
--cc=chrisw@sous-sol.org \
--cc=dwg@au1.ibm.com \
--cc=iommu@lists.linux-foundation.org \
--cc=joerg.roedel@amd.com \
--cc=kvm@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=pmac@au1.ibm.com \
--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.