Searched refs:ProtectionMask (Results 1 – 5 of 5) sorted by relevance
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/mpk/ |
| H A D | enabled.rs | 52 pub fn allow(mask: ProtectionMask) { in allow() argument 64 pub fn current_mask() -> ProtectionMask { in current_mask() 65 ProtectionMask(pkru::read()) in current_mask() 119 pub struct ProtectionMask(u32); struct 120 impl ProtectionMask { implementation 199 allow(ProtectionMask::all()); in check_masking() 202 allow(ProtectionMask::all().or(ProtectionKey { id: 5, stripe: 0 })); in check_masking() 205 allow(ProtectionMask::zero()); in check_masking() 208 allow(ProtectionMask::zero().or(ProtectionKey { id: 5, stripe: 0 })); in check_masking()
|
| H A D | disabled.rs | 18 pub fn allow(_: ProtectionMask) {} in allow() argument 21 pub fn current_mask() -> ProtectionMask { in current_mask() 22 ProtectionMask in current_mask() 41 pub struct ProtectionMask; struct 44 impl ProtectionMask { impl
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/ |
| H A D | fiber.rs | 3 use crate::vm::mpk::{self, ProtectionMask}; 564 mpk: Option<ProtectionMask>, 652 mpk: Option<ProtectionMask>, 688 fn swap_mpk_states(mask: Option<ProtectionMask>) -> Option<ProtectionMask> { in swap_mpk_states() argument 845 Some(ProtectionMask::all()) in make_fiber_unchecked()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/allocator/ |
| H A D | pooling.rs | 55 mpk::{self, ProtectionKey, ProtectionMask}, 870 mpk::allow(ProtectionMask::zero().or(pkey)); in restrict_to_pkey() 874 mpk::allow(ProtectionMask::all()); in allow_all_pkeys()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/allocator/pooling/ |
| H A D | memory_pool.rs | 64 runtime::vm::mpk::{self, ProtectionKey, ProtectionMask}, 214 mpk::allow(ProtectionMask::all()); in new()
|