Date
1 - 2 of 2
[RISC-V] [tech-virt-mem] Fault type when PTE reserved bit is set
should an OS person weigh in on this? I asked previously about COW and was told a reserved bit could be used. ---------- Forwarded message --------- From: Greg Favor <gfavor@...> Date: Fri, Feb 26, 2021 at 11:11 AM Subject: Re: [RISC-V] [tech-virt-mem] Fault type when PTE reserved bit is set To: <tech-virt-mem@...>, Allen Baum <allen.baum@...> Cc: Richard Trauben <rtrauben@...>, swallach <steven.wallach@...> Copy-on-write is a popular thing and takes the form of a page fault. Greg On Fri, Feb 26, 2021 at 11:09 AM Allen Baum <allen.baum@...> wrote:
|
|
Jonathan Behrens <behrensj@...>
I think you might be confusing the "reserved for software" (RSW) bits in the PTE with the "Reserved" bits. The former are bits 8 and 9 in a PTE, while the latter are bits 54-63 in Sv39/Sv48 and don't exist in SV32. Operating systems will frequently use one of the reserved for software bits to track whether a page is COW or not, and hardware is required to ignore whether those bits are set. By contrast, software is currently prohibited from setting any of the Reserved bits, with currently unspecified results if it does anyway (the subject of this thread being to instead define the behavior as triggering a page fault if the PTE accessed non-speculatively). Jonathan PS: this isn't the first time I've seen confusion over the reserved vs. reserved for software, so it might be worth thinking about if there is a way to make things clearer. |
|