Skip to content

RFC PPC: KVM: pseries: Asynchronous page fault

Bharata B Rao kvm kvm-ppc linuxppc-dev oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v0 RFC Latest5 patches 3 repliesIn review

Patches in v0 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5powerpc: Define Expropriation interrupt bit to VPA byte offset 0xB9arch/powerpc/include/asm/lppaca.h drivers/cpuidle/cpuidle-pseries.c+9 -30 replies
2/5KVM: PPC: Add support for KVM_REQ_ESN_EXITarch/powerpc/include/asm/kvm_host.h arch/powerpc/kvm/book3s_hv.c include/uapi/linux/kvm.h+10 -00 replies
3/5KVM: PPC: Book3S: Enable setting SRR1 flags for DSIarch/powerpc/include/asm/kvm_ppc.h arch/powerpc/kvm/book3s.c arch/powerpc/kvm/book3s_64_mmu_radix.c +3 more+14 -130 replies
4/5KVM: PPC: BOOK3S HV: Async PF supportDocumentation/virt/kvm/api.rst arch/powerpc/include/asm/hvcall.h arch/powerpc/include/asm/kvm_book3s_esn.h +11 more+303 -30 replies
5/5pseries: Asynchronous page fault supportarch/powerpc/include/asm/async-pf.h arch/powerpc/mm/fault.c arch/powerpc/platforms/pseries/Makefile +1 more+238 -22 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v0 yet.

Read the v0 thread

Cover letter [RFC PATCH v0 0/5] PPC: KVM: pseries: Asynchronous page fault

Hi,

This series adds asynchronous page fault support for pseries guests and enables the support for the same in powerpc KVM. This is an early RFC with details and multiple TODOs listed in patch descriptions.

This patch needs supporting enablement in QEMU too which will be posted separately.

Bharata B Rao (5):
powerpc: Define Expropriation interrupt bit to VPA byte offset 0xB9
KVM: PPC: Add support for KVM_REQ_ESN_EXIT
KVM: PPC: Book3S: Enable setting SRR1 flags for DSI
KVM: PPC: BOOK3S HV: Async PF support
pseries: Asynchronous page fault support

 Documentation/virt/kvm/api.rst            |  15 ++
 arch/powerpc/include/asm/async-pf.h       |  12 ++
 arch/powerpc/include/asm/hvcall.h         |   1 +
 arch/powerpc/include/asm/kvm_book3s_esn.h |  24 +++
 arch/powerpc/include/asm/kvm_host.h       |  22 +++
 arch/powerpc/include/asm/kvm_ppc.h        |   4 +-
 arch/powerpc/include/asm/lppaca.h         |  20 +-
 arch/powerpc/include/uapi/asm/kvm.h       |   6 +
 arch/powerpc/kvm/Kconfig                  |   2 +
 arch/powerpc/kvm/Makefile                 |   5 +-
 arch/powerpc/kvm/book3s.c                 |   6 +-
 arch/powerpc/kvm/book3s_64_mmu_radix.c    |   9 +-
 arch/powerpc/kvm/book3s_hv.c              |  37 +++-
 arch/powerpc/kvm/book3s_hv_esn.c          | 189 +++++++++++++++++++
 arch/powerpc/kvm/book3s_hv_nested.c       |   4 +-
 arch/powerpc/kvm/book3s_pr.c              |   4 +-
 arch/powerpc/mm/fault.c                   |   7 +-
 arch/powerpc/platforms/pseries/Makefile   |   2 +-
 arch/powerpc/platforms/pseries/async-pf.c | 219 ++++++++++++++++++++++
 drivers/cpuidle/cpuidle-pseries.c         |   4 +-
 include/uapi/linux/kvm.h                  |   2 +
 tools/include/uapi/linux/kvm.h            |   1 +
 22 files changed, 574 insertions(+), 21 deletions(-)
 create mode 100644 arch/powerpc/include/asm/async-pf.h
 create mode 100644 arch/powerpc/include/asm/kvm_book3s_esn.h
 create mode 100644 arch/powerpc/kvm/book3s_hv_esn.c
 create mode 100644 arch/powerpc/platforms/pseries/async-pf.c
Signature · 1 line
2.31.1