All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v6 00/19] xen/riscv: introduce p2m functionality
@ 2025-11-24 12:33 Oleksii Kurochko
  2025-11-24 12:33 ` [PATCH v6 01/19] xen/riscv: avoid redundant HGATP*_MODE_SHIFT and HGATP*_VMID_SHIFT Oleksii Kurochko
                   ` (18 more replies)
  0 siblings, 19 replies; 52+ messages in thread
From: Oleksii Kurochko @ 2025-11-24 12:33 UTC (permalink / raw)
  To: xen-devel
  Cc: Oleksii Kurochko, Alistair Francis, Bob Eshleman, Connor Davis,
	Andrew Cooper, Anthony PERARD, Michal Orzel, Jan Beulich,
	Julien Grall, Roger Pau Monné, Stefano Stabellini,
	Bertrand Marquis, Volodymyr Babchuk

In this patch series are introduced necessary functions to build and manage
RISC-V guest page tables and MMIO/RAM mappings.

---
Changes in V5:
 - Addressed comments for v4.
 - The following patches were Acked-by:
   - [v5 16/18] xen/riscv: implement mfn_valid() and page
   - [v5 15/18] xen/riscv: implement put_page()
   - [v5 14/18] xen/riscv: Implement superpage splitting for p2m mappings
   - [v5 09/18] xen/riscv: implement function to map memory in guest p2m
   - [v5 07/18] xen/riscv: add new p2m types and helper macros for type classification
   - [v5 03/18] xen/riscv: introduce things necessary for p2m initialization
---
Changes in V4:
 - Merged to staging:
   - xen/riscv: introduce sbi_remote_hfence_gvma()
   - xen/riscv: introduce sbi_remote_hfence_gvma_vmid()
 - Drop "xen/riscv: introduce page_{get,set}_xenheap_gfn()" as grant tables aren't going to be introduced for the moment. Also, drops other parts connected to grant tables support.
 - All other changes are patch specific.
---
Changes in V3:
 - Introduce metadata table to store P2M types.
 - Use x86's way to allocate VMID.
 - Abstract Arm-specific p2m type name for device MMIO mappings.
 - All other updates please look at specific patch.
---
Changes in V2:
 - Merged to staging:
   - [PATCH v1 1/6] xen/riscv: add inclusion of xen/bitops.h to asm/cmpxchg.h
 - New patches:
   - xen/riscv: implement sbi_remote_hfence_gvma{_vmid}().
 - Split patch "xen/riscv: implement p2m mapping functionality" into smaller
   one patches:
   - xen/riscv: introduce page_set_xenheap_gfn()
   - xen/riscv: implement guest_physmap_add_entry() for mapping GFNs to MFNs
   - xen/riscv: implement p2m_set_entry() and __p2m_set_entry()
   - xen/riscv: Implement p2m_free_entry() and related helpers
   - xen/riscv: Implement superpage splitting for p2m mappings
   - xen/riscv: implement p2m_next_level()
   - xen/riscv: Implement p2m_entry_from_mfn() and support PBMT configuration
 - Move root p2m table allocation to separate patch:
   xen/riscv: add root page table allocation
 - Drop dependency of this patch series from the patch witn an introduction of
   SvPBMT as it was merged.
 - Patch "[PATCH v1 4/6] xen/riscv: define pt_t and pt_walk_t structures" was
   renamed to xen/riscv: introduce pte_{set,get}_mfn() as after dropping of
   bitfields for PTE structure, this patch introduce only pte_{set,get}_mfn().
 - Rename "xen/riscv: define pt_t and pt_walk_t structures" to
   "xen/riscv: introduce pte_{set,get}_mfn()" as pt_t and pt_walk_t were
   dropped.
 - Introduce guest domain's VMID allocation and manegement.
 - Add patches necessary to implement p2m lookup:
   - xen/riscv: implement mfn_valid() and page reference, ownership handling helpers
   - xen/riscv: add support of page lookup by GFN
 - Re-sort patch series.
 - All other changes are patch-specific. Please check them.
---

Oleksii Kurochko (19):
  xen/riscv: avoid redundant HGATP*_MODE_SHIFT and HGATP*_VMID_SHIFT
  xen/riscv: detect and initialize G-stage mode
  xen/riscv: introduce VMID allocation and manegement
  xen/riscv: introduce things necessary for p2m initialization
  xen/riscv: construct the P2M pages pool for guests
  xen/riscv: add root page table allocation
  xen/riscv: introduce pte_{set,get}_mfn()
  xen/riscv: add new p2m types and helper macros for type classification
  xen/dom0less: abstract Arm-specific p2m type name for device MMIO
    mappings
  xen/riscv: implement function to map memory in guest p2m
  xen/riscv: implement p2m_set_range()
  xen/riscv: Implement p2m_free_subtree() and related helpers
  xen/riscv: Implement p2m_pte_from_mfn() and support PBMT configuration
  xen/riscv: implement p2m_next_level()
  xen/riscv: Implement superpage splitting for p2m mappings
  xen/riscv: implement put_page()
  xen/riscv: implement mfn_valid() and page reference, ownership
    handling helpers
  xen/riscv: add support of page lookup by GFN
  xen/riscv: introduce metadata table to store P2M type

 docs/misc/xen-command-line.pandoc           |    9 +
 xen/arch/arm/include/asm/p2m.h              |    5 +
 xen/arch/riscv/Makefile                     |    3 +
 xen/arch/riscv/cpufeature.c                 |    1 +
 xen/arch/riscv/include/asm/Makefile         |    1 -
 xen/arch/riscv/include/asm/cpufeature.h     |    1 +
 xen/arch/riscv/include/asm/domain.h         |   23 +
 xen/arch/riscv/include/asm/flushtlb.h       |   13 +-
 xen/arch/riscv/include/asm/mm.h             |   29 +-
 xen/arch/riscv/include/asm/p2m.h            |  185 ++-
 xen/arch/riscv/include/asm/page.h           |   37 +
 xen/arch/riscv/include/asm/paging.h         |   20 +
 xen/arch/riscv/include/asm/riscv_encoding.h |   23 +-
 xen/arch/riscv/include/asm/vmid.h           |   14 +
 xen/arch/riscv/mm.c                         |   69 +-
 xen/arch/riscv/p2m.c                        | 1443 +++++++++++++++++++
 xen/arch/riscv/paging.c                     |  139 ++
 xen/arch/riscv/setup.c                      |    3 +
 xen/arch/riscv/stubs.c                      |    5 -
 xen/arch/riscv/vmid.c                       |  170 +++
 xen/common/device-tree/dom0less-build.c     |    2 +-
 21 files changed, 2158 insertions(+), 37 deletions(-)
 create mode 100644 xen/arch/riscv/include/asm/paging.h
 create mode 100644 xen/arch/riscv/include/asm/vmid.h
 create mode 100644 xen/arch/riscv/p2m.c
 create mode 100644 xen/arch/riscv/paging.c
 create mode 100644 xen/arch/riscv/vmid.c

-- 
2.51.1



^ permalink raw reply	[flat|nested] 52+ messages in thread

end of thread, other threads:[~2025-12-15  8:28 UTC | newest]

Thread overview: 52+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-24 12:33 [PATCH v6 00/19] xen/riscv: introduce p2m functionality Oleksii Kurochko
2025-11-24 12:33 ` [PATCH v6 01/19] xen/riscv: avoid redundant HGATP*_MODE_SHIFT and HGATP*_VMID_SHIFT Oleksii Kurochko
2025-12-08 16:13   ` Jan Beulich
2025-11-24 12:33 ` [PATCH v6 02/19] xen/riscv: detect and initialize G-stage mode Oleksii Kurochko
2025-12-08 16:22   ` Jan Beulich
2025-12-09  9:54     ` Oleksii Kurochko
2025-11-24 12:33 ` [PATCH v6 03/19] xen/riscv: introduce VMID allocation and manegement Oleksii Kurochko
2025-12-08 16:31   ` Jan Beulich
2025-12-09 10:35     ` Oleksii Kurochko
2025-12-09 10:52       ` Jan Beulich
2025-12-08 17:28   ` Teddy Astie
2025-12-09  7:51     ` Jan Beulich
2025-12-09 10:40       ` Oleksii Kurochko
2025-11-24 12:33 ` [PATCH v6 04/19] xen/riscv: introduce things necessary for p2m initialization Oleksii Kurochko
2025-11-24 12:33 ` [PATCH v6 05/19] xen/riscv: construct the P2M pages pool for guests Oleksii Kurochko
2025-11-24 12:33 ` [PATCH v6 06/19] xen/riscv: add root page table allocation Oleksii Kurochko
2025-12-08 16:40   ` Jan Beulich
2025-11-24 12:33 ` [PATCH v6 07/19] xen/riscv: introduce pte_{set,get}_mfn() Oleksii Kurochko
2025-11-24 12:33 ` [PATCH v6 08/19] xen/riscv: add new p2m types and helper macros for type classification Oleksii Kurochko
2025-11-24 12:33 ` [PATCH v6 09/19] xen/dom0less: abstract Arm-specific p2m type name for device MMIO mappings Oleksii Kurochko
2025-11-24 12:33 ` [PATCH v6 10/19] xen/riscv: implement function to map memory in guest p2m Oleksii Kurochko
2025-11-24 12:33 ` [PATCH v6 11/19] xen/riscv: implement p2m_set_range() Oleksii Kurochko
2025-12-08 16:52   ` Jan Beulich
2025-12-09 11:47     ` Oleksii Kurochko
2025-11-24 12:33 ` [PATCH v6 12/19] xen/riscv: Implement p2m_free_subtree() and related helpers Oleksii Kurochko
2025-12-08 16:56   ` Jan Beulich
2025-11-24 12:33 ` [PATCH v6 13/19] xen/riscv: Implement p2m_pte_from_mfn() and support PBMT configuration Oleksii Kurochko
2025-12-09 11:22   ` Jan Beulich
2025-11-24 12:33 ` [PATCH v6 14/19] xen/riscv: implement p2m_next_level() Oleksii Kurochko
2025-11-24 12:33 ` [PATCH v6 15/19] xen/riscv: Implement superpage splitting for p2m mappings Oleksii Kurochko
2025-11-24 12:33 ` [PATCH v6 16/19] xen/riscv: implement put_page() Oleksii Kurochko
2025-11-24 12:33 ` [PATCH v6 17/19] xen/riscv: implement mfn_valid() and page reference, ownership handling helpers Oleksii Kurochko
2025-11-24 12:33 ` [PATCH v6 18/19] xen/riscv: add support of page lookup by GFN Oleksii Kurochko
2025-12-09 11:38   ` Jan Beulich
2025-12-09 15:41     ` Oleksii Kurochko
2025-12-09 15:49       ` Jan Beulich
2025-12-10 11:36         ` Oleksii Kurochko
2025-12-10 11:44           ` Jan Beulich
2025-12-10 12:19             ` Oleksii Kurochko
2025-12-10 15:23         ` Oleksii Kurochko
2025-12-11  9:34           ` Jan Beulich
2025-12-11 13:00             ` Oleksii Kurochko
2025-12-11 13:40               ` Jan Beulich
2025-12-11 14:20                 ` Oleksii Kurochko
2025-11-24 12:33 ` [PATCH v6 19/19] xen/riscv: introduce metadata table to store P2M type Oleksii Kurochko
2025-12-09 13:47   ` Jan Beulich
2025-12-09 17:09     ` Oleksii Kurochko
2025-12-10  7:06       ` Jan Beulich
2025-12-10 12:44         ` Oleksii Kurochko
2025-12-11  9:39           ` Jan Beulich
2025-12-11 16:42             ` Oleksii Kurochko
2025-12-15  8:28               ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.