Skip to content

RISC-V: p2m context switch

Oleksii Kurochko xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 9 repliesIn review
  2. v13 patches 11 repliesSuperseded

Changes in v2 from the cover letter

- Drop patch "xen/riscv: introduce struct arch_vcpu", took only declaration of vsatp and squash it with the patch:
xen/riscv: implement p2m_ctx_switch_{to,from}_state()
- Other changes please look at specific patch.
- CI tests: https://gitlab.com/xen-project/people/olkur/xen/-/pipelines/2317277592
---

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2xen/riscv: add support for local guest TLB flush using HFENCE.VVMAxen/arch/riscv/include/asm/flushtlb.h xen/arch/riscv/include/asm/insn-defs.h+17 -01 reply
2/2xen/riscv: add p2m context switch handling for VSATP and HGATPxen/arch/riscv/include/asm/domain.h xen/arch/riscv/include/asm/p2m.h xen/arch/riscv/p2m.c +1 more+137 -08 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchJan Beulich
1/2A-b
2/2

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 v2 0/2] RISC-V: p2m context switch

Introduce functions required to perform a p2m context switch during a vCPU context switch.

Although this patch series is technically independent of [1], some merge conflicts are still possible depending on which series is applied first. For now, the series has been rebased on top of [1] but can go without [1].

[1] https://lore.kernel.org/xen-devel/[email protected]/T/#m5d8de24e5ee0eaf6f35f9f1437a00096e3574684

---
Changes in v2:
- Drop patch "xen/riscv: introduce struct arch_vcpu", took only declaration of vsatp and squash it with the patch:
xen/riscv: implement p2m_ctx_switch_{to,from}_state()
- Other changes please look at specific patch.
- CI tests: https://gitlab.com/xen-project/people/olkur/xen/-/pipelines/2317277592
---

Oleksii Kurochko (2):
xen/riscv: add support for local guest TLB flush using HFENCE.VVMA xen/riscv: add p2m context switch handling for VSATP and HGATP

 xen/arch/riscv/include/asm/domain.h    |   1 +
 xen/arch/riscv/include/asm/flushtlb.h  |   7 ++
 xen/arch/riscv/include/asm/insn-defs.h |  10 ++
 xen/arch/riscv/include/asm/p2m.h       |  11 +++
 xen/arch/riscv/p2m.c                   | 123 +++++++++++++++++++++++++
 xen/arch/riscv/traps.c                 |   2 +
 6 files changed, 154 insertions(+)
 create mode 100644 xen/arch/riscv/include/asm/insn-defs.h
Signature · 1 line
2.52.0