sorear changed the topic of #riscv to: RISC-V instruction set architecture | https://riscv.org | Logs: https://libera.irclog.whitequark.org/riscv | Matrix: #riscv:catircservices.org
naoki has quit [Quit: naoki]
heat has quit [Ping timeout: 252 seconds]
Tenkawa has quit [Quit: Was I really ever here?]
Trifton has joined #riscv
naoki has joined #riscv
naoki has quit [Client Quit]
frkzoid has joined #riscv
frkazoid333 has quit [Ping timeout: 260 seconds]
andyc has joined #riscv
coldfeet has joined #riscv
iooi has quit [Quit: iooi]
jedix has joined #riscv
paulk has quit [Read error: Connection reset by peer]
paulk has joined #riscv
tec has quit [Quit: bye!]
tec has joined #riscv
BootLayer has joined #riscv
naoki has joined #riscv
naoki has quit [Quit: naoki]
indy_ has quit [Ping timeout: 276 seconds]
memset has quit [Ping timeout: 260 seconds]
jfsimon1981_b has quit [Remote host closed the connection]
jfsimon1981_b has joined #riscv
memset has joined #riscv
Stat_headcrabed has joined #riscv
andyc has quit [Quit: Connection closed for inactivity]
iooi has joined #riscv
Stat_headcrabed has quit [Quit: Stat_headcrabed]
naoki has joined #riscv
naoki has quit [Client Quit]
jfsimon1981_b has quit [Remote host closed the connection]
jfsimon1981_b has joined #riscv
davidlt has joined #riscv
davidlt_ has joined #riscv
davidlt has quit [Ping timeout: 252 seconds]
<JohnHenry> So I'm trying to hack riscv linux, and I want to foil my hardware page walker over a virtual memory area so I can page fault and do tricky things. I could clear the V bits for the relevant PTEs and flush the TLBs and get my page faults. But now I'm looking at Linux and trying to figure out what it might do with those now-invalid PTEs that it might treat as swap entries.
<JohnHenry> I'm having trouble sorting out how Linux treats PTEs with an un-set V bit. Are they all swap entries? How do I know what encodings are safe for me to use? I don't want to actually swap, I just want to get a fault and then do my tricky things. https://github.com/torvalds/linux/blob/17712b7ea0756799635ba159cc773082230ed028/arch/riscv/include/asm/pgtable.h#L838
jfsimon1981_b has quit [Remote host closed the connection]
jfsimon1981_b has joined #riscv
jfsimon1981 has joined #riscv
jfsimon1981_b has quit [Remote host closed the connection]
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #riscv
psydroid2 has joined #riscv
davidlt_ has quit [Ping timeout: 248 seconds]
davidlt_ has joined #riscv
davidlt_ has quit [Ping timeout: 245 seconds]
coldfeet has quit [Remote host closed the connection]
jfsimon1981 has quit [Read error: Connection reset by peer]
jfsimon1981 has joined #riscv
davidlt_ has joined #riscv
Stat_headcrabed has joined #riscv
stolen has joined #riscv
davidlt_ has quit [Ping timeout: 260 seconds]
jfsimon1981_b has joined #riscv
jfsimon1981 has quit [Read error: Connection reset by peer]
Tenkawa has joined #riscv
coldfeet has joined #riscv
coldfeet has quit [Remote host closed the connection]
<sorear> if _PAGE_PROT_NONE is set, they're considered to be valid mappings with no permissions, if it is not set they're considered to be swap
heat has joined #riscv
Trifton has quit [Ping timeout: 252 seconds]
coldfeet has joined #riscv
Stat_headcrabed has quit [Quit: Stat_headcrabed]
Andre_Z has joined #riscv
hightower2 has quit [Ping timeout: 252 seconds]
coldfeet has quit [Remote host closed the connection]
coldfeet has joined #riscv
frkzoid has quit [Ping timeout: 276 seconds]
Stat_headcrabed has joined #riscv
Stat_headcrabed has quit [Quit: Stat_headcrabed]
zjason` is now known as zjason
Andre_Z has quit [Ping timeout: 248 seconds]
stolen has quit [Quit: Connection closed for inactivity]
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #riscv
davidlt_ has joined #riscv
davidlt__ has joined #riscv
davidlt_ has quit [Ping timeout: 265 seconds]
Stat_headcrabed has joined #riscv
BootLayer has quit [Quit: Leaving]
billchenchina- has joined #riscv
davidlt__ has quit [Ping timeout: 260 seconds]
Stat_headcrabed has quit [Quit: Stat_headcrabed]
jfsimon1981_c has joined #riscv
jfsimon1981_b has quit [Read error: Connection reset by peer]
clever has quit [Ping timeout: 255 seconds]
coldfeet has quit [Quit: leaving]
billchenchina- has quit [Remote host closed the connection]
zjason` has joined #riscv
zjason has quit [Ping timeout: 252 seconds]
naoki has joined #riscv
Bluefoxicy has quit [Ping timeout: 260 seconds]
Bluefoxicy has joined #riscv
frkazoid333 has joined #riscv
psydroid2 has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
iooi has quit [Ping timeout: 252 seconds]
prabhakalad has quit [Quit: Konversation terminated!]
prabhakalad has joined #riscv
eightthree has quit [Ping timeout: 245 seconds]
eightthree has joined #riscv
eightthree has quit [Remote host closed the connection]
eightthree has joined #riscv
DesRoin has quit [Ping timeout: 252 seconds]
DesRoin has joined #riscv
<JohnHenry> sorear: thank you!
<JohnHenry> _PAGE_PROT_NONE is... essentially what Linux calls the RISC-V PTE's V bit? I'm still working through all the definitions
<JohnHenry> I guess a valid entry with no permissions will still fault upon access, huh
<JohnHenry> and that gets me out of having to figure out what kind of swap entry I need
<sorear> no, _PAGE_PROT_NONE is one of the SW bits which Linux uses to distiguish mapped pages with no protections from unmapped/swap pages
<sorear> the V bit is _PAGE_PRESENT
<sorear> oh, they moved _PAGE_PROT_NONE to use one of the arch bits after I added it, cool