x86 page fault priority?

Emulation of old PCs, PC hardware, or PC peripherals.

x86 page fault priority?

Postby superfury » 2019-5-10 @ 07:52

When an entry isn't found in the TLB and to be loaded from memory, what is the order of page fault checks that are executed?

There's checking on the PDE's Present bit, the PTE's present bit and the rights(privilege and read/write).

It currently first checks the PDE's present bit, then the PTE's present bit and finally the rights. I thatmcorrect behaviour?

Edit: One more thing: What happens during partially validated page faults? So when two pages are to be validated(e.g. an operand crossing 4K page boundaries) and the first page is present&valid but the 2nd page isn't? Will the first page get loaded into the TLB(setting the Dirty and Accessed flags in the PDE&PTE accordingly in RAM)?
Posts: 3230
Joined: 2014-3-08 @ 11:25
Location: Netherlands

Return to PC Emulation

Who is online

Users browsing this forum: No registered users and 1 guest