Skip to content

Commit

Permalink
cheripte: Make PTE bits reserved in guest page tables (#515)
Browse files Browse the repository at this point in the history
The base hypervisor spec says that the format for guest page table PTEs
is the same as for normal PTEs and reserves bits (e.g. the G bit) that
don't have a meaning for guest address translation (yet). Do the same
for the cheripte bits.

Co-authored-by: Christian Ehrhardt <christian.ehrhardt@codasip.com>
  • Loading branch information
chrehrhardt and Christian Ehrhardt authored Feb 4, 2025
1 parent 643e79c commit bd84e2f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cheri-pte-ext.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ Generation (CRG), are added to leaf PTEs in Sv39, Sv48 and Sv57 as shown in
xref:sv39pte[xrefstyle=short], xref:sv48pte[xrefstyle=short] and
xref:sv57pte[xrefstyle=short] respectively. For non-leaf PTEs these bits
remain reserved and must be cleared by software for forward compatibility,
or else a page-fault exception is raised.
or else a page-fault exception is raised. Additionally, if the hypervisor
extension is enabled these bits remain reserved for leaf and non-leaf PTEs
used in guest address translation.

.Sv39 page table entry
[#sv39pte]
Expand Down

0 comments on commit bd84e2f

Please sign in to comment.