ZXFoundation™ 26h2
Loading...
Searching...
No Matches
fault.cxxm File Reference

page fault handler — core interface. More...

import zxfoundation.base.types;
import zxfoundation.memory.vm.types;
Include dependency graph for fault.cxxm:

Data Structures

struct  zxfoundation::memory::vm::_fault_file_request
 Coordinates of a file-backed miss captured while the VM-space lock is held. More...

Enumerations

enum class  zxfoundation::memory::vm::fault_action : u8 {
  resolved = 0 , killed = 1 , guard_hit = 2 , stack_grew = 3 ,
  retry = 4 , oom = 5
}
 Outcome of a page fault resolution. More...

Functions

auto zxfoundation::memory::vm::handle_page_fault (vm_space &space, u64 root_phys, u8 storage_key, u64 fault_va, bool is_write, bool is_exec) noexcept -> fault_action

Detailed Description

page fault handler — core interface.

SPDX-License-Identifier: Apache-2.0

Enumeration Type Documentation

◆ fault_action

enum class zxfoundation::memory::vm::fault_action : u8
exportstrong

Outcome of a page fault resolution.

Enumerator
resolved 

Fault resolved — page mapped, resume execution.

killed 

Unrecoverable fault — domain must be killed.

guard_hit 

Fault on a guard page.

stack_grew 

Stack region was extended downward.

retry 

Mapping changed concurrently; retry the fault.

oom 

Allocation or backing store exhausted.