[PATCH v1 0/3] RISC-V: p2m context switch

Oleksii Kurochko posted 3 patches 4 days, 21 hours ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/cover.1770036584.git.oleksii.kurochko@gmail.com
xen/arch/riscv/include/asm/domain.h    | 49 ++++++++++++++++
xen/arch/riscv/include/asm/flushtlb.h  |  7 +++
xen/arch/riscv/include/asm/insn-defs.h | 10 ++++
xen/arch/riscv/include/asm/p2m.h       |  4 ++
xen/arch/riscv/p2m.c                   | 81 ++++++++++++++++++++++++++
5 files changed, 151 insertions(+)
create mode 100644 xen/arch/riscv/include/asm/insn-defs.h
[PATCH v1 0/3] RISC-V: p2m context switch
Posted by Oleksii Kurochko 4 days, 21 hours ago
Introduce functions required to perform a p2m context switch during a vCPU
context switch.

This patch series originally depended on a single patch (Patch 1) from [1].
To avoid introducing a dependency on the larger patch series [1],
that patch was cherry-picked into the current series, since it is the
only true dependency.

Patch 2 is fully independent.

Patch 3 depends on Patch 1.

[1] https://lore.kernel.org/xen-devel/cover.1769099883.git.oleksii.kurochko@gmail.com/T/#t

Oleksii Kurochko (3):
  xen/riscv: introduce struct arch_vcpu
  xen/riscv: add support for local guest TLB flush using HFENCE.VVMA
  xen/riscv: implement p2m_ctx_switch_{to,from}_state()

 xen/arch/riscv/include/asm/domain.h    | 49 ++++++++++++++++
 xen/arch/riscv/include/asm/flushtlb.h  |  7 +++
 xen/arch/riscv/include/asm/insn-defs.h | 10 ++++
 xen/arch/riscv/include/asm/p2m.h       |  4 ++
 xen/arch/riscv/p2m.c                   | 81 ++++++++++++++++++++++++++
 5 files changed, 151 insertions(+)
 create mode 100644 xen/arch/riscv/include/asm/insn-defs.h

-- 
2.52.0
Re: [PATCH v1 0/3] RISC-V: p2m context switch
Posted by Jan Beulich 4 days, 20 hours ago
On 02.02.2026 13:57, Oleksii Kurochko wrote:
> Introduce functions required to perform a p2m context switch during a vCPU
> context switch.
> 
> This patch series originally depended on a single patch (Patch 1) from [1].
> To avoid introducing a dependency on the larger patch series [1],
> that patch was cherry-picked into the current series, since it is the
> only true dependency.

But its versioning is now broken. A v2 of that was already posted, and now
we have a (newer) v1, with a revision log claiming it's v3.

Jan