Skip to content

KVM: PPC: TCE improvements

Alexey Kardashevskiy kvm-ppc linuxppc-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest6 patches 2 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6KVM: PPC: Avoid marking DMA-mapped pages dirty in real modearch/powerpc/include/asm/book3s/64/pgtable.h arch/powerpc/include/asm/iommu.h arch/powerpc/include/asm/mmu_context.h +4 more+62 -881 reply
2/6KVM: PPC: Validate all tces before updating tablesarch/powerpc/kvm/book3s_64_vio.c arch/powerpc/kvm/book3s_64_vio_hv.c+22 -00 replies
3/6KVM: PPC: Inform the userspace about TCE update failuresarch/powerpc/kvm/book3s_64_vio.c arch/powerpc/kvm/book3s_64_vio_hv.c+7 -70 replies
4/6KVM: PPC: Validate TCEs against preregistered memory page sizesarch/powerpc/include/asm/kvm_ppc.h arch/powerpc/kvm/book3s_64_vio.c arch/powerpc/kvm/book3s_64_vio_hv.c+58 -90 replies
5/6KVM: PPC: Propagate errors to the guest when failed instead of ignoringarch/powerpc/kvm/book3s_64_vio.c arch/powerpc/kvm/book3s_64_vio_hv.c+13 -280 replies
6/6KVM: PPC: Remove redundand permission bits removalarch/powerpc/include/asm/kvm_ppc.h arch/powerpc/kvm/book3s_64_vio.c arch/powerpc/kvm/book3s_64_vio_hv.c+14 -221 reply

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchDavid Gibson
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH kernel v2 0/6] KVM: PPC: TCE improvements

Hi,

Here is my current queue of TCE/KVM patches.

1/6 is a bugfix for https://bugzilla.redhat.com/show_bug.cgi?id20360
2/6..5/6 are to help with testing https://bugzilla.redhat.com/show_bug.cgi?id13190
6/6 is a small cleanup

This is based on sha1
11da3a7 Linus Torvalds "Linux 4.19-rc3".

Please comment. Thanks.

Alex, I cc: you to keep you informed that
[RFC 1/6] did change drivers/vfio/vfio_iommu_spapr_tce.c but this one does not.

Alexey Kardashevskiy (6):
KVM: PPC: Avoid marking DMA-mapped pages dirty in real mode
KVM: PPC: Validate all tces before updating tables
KVM: PPC: Inform the userspace about TCE update failures
KVM: PPC: Validate TCEs against preregistered memory page sizes
KVM: PPC: Propagate errors to the guest when failed instead of
ignoring
KVM: PPC: Remove redundand permission bits removal

 arch/powerpc/include/asm/book3s/64/pgtable.h |   1 -
 arch/powerpc/include/asm/iommu.h             |   2 -
 arch/powerpc/include/asm/kvm_ppc.h           |   4 +-
 arch/powerpc/include/asm/mmu_context.h       |   1 +
 arch/powerpc/kernel/iommu.c                  |  25 ------
 arch/powerpc/kvm/book3s_64_vio.c             |  89 +++++++++++++++------
 arch/powerpc/kvm/book3s_64_vio_hv.c          | 114 +++++++++++++++++----------
 arch/powerpc/mm/init_64.c                    |  49 ------------
 arch/powerpc/mm/mmu_context_iommu.c          |  34 +++++++-
 9 files changed, 170 insertions(+), 149 deletions(-)
Signature · 1 line
2.11.0