DGP synchronization-contract typestate and validation implementation. More...
import lib.error;import arch.s390x.cpu.irq;import std;import arch.s390x.cpu.lowcore;import zxfoundation.base.types;Functions | |
| auto | zxfoundation::dgp::sync_contract::advance_teardown_phase (teardown_phase ¤t, teardown_phase expected, teardown_phase requested) noexcept -> std::expected< void, lib::kernel_error > |
| Advance a domain-owned teardown phase by exactly one stage. | |
| auto | zxfoundation::dgp::sync_contract::contract_snapshot (lock_context context, teardown_phase phase, u32 domain_id) noexcept -> contract_state |
| Capture the current CPU synchronization state for a DGP call-site check. | |
| auto | zxfoundation::dgp::sync_contract::validate_authority_lookup (const contract_state &state) noexcept -> std::expected< void, lib::kernel_error > |
| Validate that a DGP authority lookup may run in the supplied context. | |
| auto | zxfoundation::dgp::sync_contract::validate_irq_state (const contract_state &state, irq_contract contract) noexcept -> std::expected< void, lib::kernel_error > |
| Validate an IRQ-state precondition. | |
| auto | zxfoundation::dgp::sync_contract::validate_teardown_phase (teardown_phase current, teardown_phase requested) noexcept -> std::expected< void, lib::kernel_error > |
| Validate one exact teardown-phase transition. | |
DGP synchronization-contract typestate and validation implementation.
SPDX-License-Identifier: Apache-2.0
|
nodiscardexportnoexcept |
Advance a domain-owned teardown phase by exactly one stage.
| [in,out] | current | Stored phase owned by the domain being destroyed. |
| [in] | expected | Phase the domain must currently hold. |
| [in] | requested | Immediate phase to record. |
| [in,out] | current | Stored phase owned by the domain being destroyed. |
| [in] | expected | Phase the domain must currently hold. |
| [in] | requested | Immediate phase to record. |
current with the domain lifecycle lock.
|
nodiscardexportnoexcept |
Capture the current CPU synchronization state for a DGP call-site check.
| [in] | context | Synchronization context expected by the caller. |
| [in] | phase | Domain teardown phase associated with the operation. |
| [in] | domain_id | Domain whose authority or lifecycle state is being checked. |
|
nodiscardexportnoexcept |
Validate that a DGP authority lookup may run in the supplied context.
| [in] | state | Current synchronization state. |
|
nodiscardexportnoexcept |
Validate an IRQ-state precondition.
| [in] | state | Current synchronization state. |
| [in] | contract | Required interrupt-state contract. |
|
nodiscardexportnoexcept |
Validate one exact teardown-phase transition.
| [in] | current | Current teardown phase. |
| [in] | requested | Requested teardown phase. |
requested is the immediate successor of current.