From: Oleksii Kurochko <oleksii.kurochko@gmail.com>
To: xen-devel@lists.xenproject.org
Cc: "Oleksii Kurochko" <oleksii.kurochko@gmail.com>,
"Alistair Francis" <alistair.francis@wdc.com>,
"Bob Eshleman" <bobbyeshleman@gmail.com>,
"Connor Davis" <connojdavis@gmail.com>,
"Andrew Cooper" <andrew.cooper3@citrix.com>,
"Anthony PERARD" <anthony.perard@vates.tech>,
"Michal Orzel" <michal.orzel@amd.com>,
"Jan Beulich" <jbeulich@suse.com>,
"Julien Grall" <julien@xen.org>,
"Roger Pau Monné" <roger.pau@citrix.com>,
"Stefano Stabellini" <sstabellini@kernel.org>
Subject: [PATCH v8 0/3] xen/riscv: introduce p2m functionality
Date: Mon, 22 Dec 2025 17:37:46 +0100 [thread overview]
Message-ID: <cover.1766406895.git.oleksii.kurochko@gmail.com> (raw)
In this patch series are introduced necessary functions to build and manage
RISC-V guest page tables and MMIO/RAM mappings.
CI tests:
https://gitlab.com/xen-project/people/olkur/xen/-/pipelines/2224311393
---
Changes in V8:
- All patches (except last three ones) are merged to staging.
- Addressed comments for v7.
---
Changes in V7:
- Merged to staging:
- xen/riscv: avoid redundant HGATP*_MODE_SHIFT and HGATP*_VMID_SHIFT
- Introduce new patch:
- xen/riscv: update p2m_set_entry to free unused metadata page
(could be merged with previous one: xen/riscv: introduce metadata table to
store P2M type )
- Addressed comments for v6.
---
Changes in V6:
- Addressed coment for v5.
---
Changes in V5:
- Addressed comments for v4.
---
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 (3):
xen/riscv: add support of page lookup by GFN
xen/riscv: introduce metadata table to store P2M type
xen/riscv: update p2m_set_entry() to free unused metadata pages
xen/arch/riscv/include/asm/flushtlb.h | 2 +-
xen/arch/riscv/include/asm/mm.h | 21 ++
xen/arch/riscv/include/asm/p2m.h | 21 ++
xen/arch/riscv/mm.c | 13 +
xen/arch/riscv/p2m.c | 437 ++++++++++++++++++++++++--
5 files changed, 464 insertions(+), 30 deletions(-)
--
2.52.0
next reply other threads:[~2025-12-22 16:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-22 16:37 Oleksii Kurochko [this message]
2025-12-22 16:37 ` [PATCH v8 1/3] xen/riscv: add support of page lookup by GFN Oleksii Kurochko
2025-12-29 15:06 ` Jan Beulich
2025-12-30 15:25 ` Oleksii Kurochko
2026-01-05 14:23 ` Jan Beulich
2025-12-22 16:37 ` [PATCH v8 2/3] xen/riscv: introduce metadata table to store P2M type Oleksii Kurochko
2025-12-29 15:13 ` Jan Beulich
2025-12-30 15:47 ` Oleksii Kurochko
2026-01-05 14:24 ` Jan Beulich
2025-12-22 16:37 ` [PATCH v8 3/3] xen/riscv: update p2m_set_entry() to free unused metadata pages Oleksii Kurochko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1766406895.git.oleksii.kurochko@gmail.com \
--to=oleksii.kurochko@gmail.com \
--cc=alistair.francis@wdc.com \
--cc=andrew.cooper3@citrix.com \
--cc=anthony.perard@vates.tech \
--cc=bobbyeshleman@gmail.com \
--cc=connojdavis@gmail.com \
--cc=jbeulich@suse.com \
--cc=julien@xen.org \
--cc=michal.orzel@amd.com \
--cc=roger.pau@citrix.com \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.