From: Alexey Kardashevskiy <aik@ozlabs.ru>
To: linuxppc-dev@lists.ozlabs.org
Cc: Alexey Kardashevskiy <aik@ozlabs.ru>,
Paul Mackerras <paulus@samba.org>,
Gavin Shan <gwshan@linux.vnet.ibm.com>
Subject: [PATCH v1 0/7] powerpc/iommu: kvm: Enable MultiTCE support
Date: Tue, 15 Jul 2014 19:25:04 +1000 [thread overview]
Message-ID: <1405416311-12429-1-git-send-email-aik@ozlabs.ru> (raw)
This prepares upstream kernel for in-kernel acceleration of TCE hypercalls
(H_PUT_TCE, H_PUT_TCE_INDIRECT, H_STUFF_TCE). This implements acceleration
for both real and virtual modes. As it requires gup() for real mode to
parse TCE list page, this implements gup() for realmode.
This only accelerates emulated PCI and VIO devices. DDW is not affected.
This was made on top of
[PATCH v1 00/16] powernv: vfio: Add Dynamic DMA windows (DDW)
Alexey Kardashevskiy (7):
powerpc/iommu: Change prototypes for realmode support
powerpc/iommu: Support real mode
powerpc/iommu: Clean up IOMMU API
KVM: PPC: Replace SPAPR_TCE_SHIFT with IOMMU_PAGE_SHIFT_4K
KVM: PPC: Move reusable bits of H_PUT_TCE handler to helpers
KVM: PPC: Add kvmppc_find_tce_table()
KVM: PPC: Add support for multiple-TCE hcalls
Documentation/virtual/kvm/api.txt | 26 +++
arch/powerpc/include/asm/iommu.h | 9 +-
arch/powerpc/include/asm/kvm_book3s_64.h | 2 -
arch/powerpc/include/asm/kvm_host.h | 30 +++
arch/powerpc/include/asm/kvm_ppc.h | 16 ++
arch/powerpc/kernel/iommu.c | 140 +++++++-----
arch/powerpc/kvm/book3s_64_vio.c | 177 ++++++++++++++-
arch/powerpc/kvm/book3s_64_vio_hv.c | 343 ++++++++++++++++++++++++++----
arch/powerpc/kvm/book3s_hv.c | 30 ++-
arch/powerpc/kvm/book3s_hv_rmhandlers.S | 4 +-
arch/powerpc/kvm/book3s_pr.c | 4 +
arch/powerpc/kvm/book3s_pr_papr.c | 35 +++
arch/powerpc/kvm/powerpc.c | 3 +
arch/powerpc/platforms/powernv/pci-ioda.c | 3 +-
drivers/vfio/vfio_iommu_spapr_tce.c | 6 +-
15 files changed, 720 insertions(+), 108 deletions(-)
--
2.0.0
next reply other threads:[~2014-07-15 9:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-15 9:25 Alexey Kardashevskiy [this message]
2014-07-15 9:25 ` [PATCH v1 1/7] powerpc/iommu: Change prototypes for realmode support Alexey Kardashevskiy
2014-07-15 9:25 ` [PATCH v1 2/7] powerpc/iommu: Support real mode Alexey Kardashevskiy
2014-07-15 9:25 ` [PATCH v1 3/7] powerpc/iommu: Clean up IOMMU API Alexey Kardashevskiy
2014-07-15 9:25 ` [PATCH v1 4/7] KVM: PPC: Replace SPAPR_TCE_SHIFT with IOMMU_PAGE_SHIFT_4K Alexey Kardashevskiy
2014-07-15 9:25 ` [PATCH v1 5/7] KVM: PPC: Move reusable bits of H_PUT_TCE handler to helpers Alexey Kardashevskiy
2014-07-15 9:25 ` [PATCH v1 6/7] KVM: PPC: Add kvmppc_find_tce_table() Alexey Kardashevskiy
2014-07-15 9:25 ` [PATCH v1 7/7] KVM: PPC: Add support for multiple-TCE hcalls Alexey Kardashevskiy
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=1405416311-12429-1-git-send-email-aik@ozlabs.ru \
--to=aik@ozlabs.ru \
--cc=gwshan@linux.vnet.ibm.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=paulus@samba.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 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).