linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alex Williamson <alex.williamson@redhat.com>
To: kvm@vger.kernel.org, gleb@redhat.com
Cc: aik@ozlabs.ru, benh@kernel.crashing.org, bsd@redhat.com,
	linux-kernel@vger.kernel.org, mst@redhat.com
Subject: [RFC PATCH 0/3] kvm/vfio: Manage KVM IOMMU coherency with virtual VFIO device
Date: Thu, 12 Sep 2013 15:22:55 -0600	[thread overview]
Message-ID: <20130912211401.8542.82932.stgit@bling.home> (raw)

See patch 3/3 for a description of exactly why we need this.  I know
POWER folks are also interested in making use of VFIO's external user
interface from KVM and Alexey's proposed patches have a similar device
tailored for SPAPR use there.  I'm hoping that we can make the base
device common and extend it for each architecture.  The problem we're
solving on x86 may or may not be architecture specific.  It has to do
with how the IOMMU handles No-Snoop transactions on PCIe in relation
to how KVM handles vCPU cache operations.

Appreciate any feedback and suggestions on how to make this more
palatable for sharing with POWER.  I'll also send a QEMU RFC which
makes use of this.  Thanks,

Alex

---

Alex Williamson (3):
      kvm: Destroy & free KVM devices on release
      vfio: Add check extension interface to external user support
      kvm: Add VFIO device for handling IOMMU cache coherency


 Documentation/virtual/kvm/devices/vfio.txt |   22 +++
 arch/powerpc/kvm/book3s_xics.c             |    1 
 arch/x86/include/asm/kvm_host.h            |    1 
 arch/x86/kvm/Makefile                      |    2 
 arch/x86/kvm/vmx.c                         |    5 -
 arch/x86/kvm/x86.c                         |    5 -
 drivers/vfio/vfio.c                        |    8 +
 drivers/vfio/vfio_iommu_type1.c            |    4 
 include/linux/kvm_host.h                   |    1 
 include/linux/vfio.h                       |    2 
 include/uapi/linux/kvm.h                   |    4 
 include/uapi/linux/vfio.h                  |    1 
 virt/kvm/kvm_main.c                        |    8 +
 virt/kvm/vfio.c                            |  237 ++++++++++++++++++++++++++++
 14 files changed, 295 insertions(+), 6 deletions(-)
 create mode 100644 Documentation/virtual/kvm/devices/vfio.txt
 create mode 100644 virt/kvm/vfio.c

             reply	other threads:[~2013-09-12 21:23 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-12 21:22 Alex Williamson [this message]
2013-09-12 21:23 ` [RFC PATCH 1/3] kvm: Destroy & free KVM devices on release Alex Williamson
2013-09-12 21:23 ` [RFC PATCH 2/3] vfio: Add check extension interface to external user support Alex Williamson
2013-09-12 21:23 ` [RFC PATCH 3/3] kvm: Add VFIO device for handling IOMMU cache coherency Alex Williamson
2013-09-13  8:49   ` Alexey Kardashevskiy
2013-09-13 16:25     ` Alex Williamson
2013-09-15 12:40       ` Alexey Kardashevskiy
2013-09-25 20:19         ` Alex Williamson
2013-09-26  4:31           ` Alexey Kardashevskiy
2013-09-13 12:39   ` Michael S. Tsirkin
2013-09-13 14:13     ` Alex Williamson
2013-09-13 14:52       ` Michael S. Tsirkin
2013-09-13 15:29         ` Alex Williamson
2013-09-29 13:16   ` Gleb Natapov
2013-09-29 13:52     ` Alex Williamson
2013-09-29 14:44       ` Gleb Natapov
2013-09-29 15:55         ` Alex Williamson
2013-09-30 13:23           ` Gleb Natapov

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=20130912211401.8542.82932.stgit@bling.home \
    --to=alex.williamson@redhat.com \
    --cc=aik@ozlabs.ru \
    --cc=benh@kernel.crashing.org \
    --cc=bsd@redhat.com \
    --cc=gleb@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mst@redhat.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).