MCPcopy Create free account
hub / github.com/Bareflank/hypervisor / fail_entry

Function fail_entry

kernel/integration/bf_debug_op_dump_page_pool.cpp:134–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132 /// input is undefined.
133 ///
134 extern "C" void
135 fail_entry(bsl::safe_u64::value_type const errc, bsl::safe_u64::value_type const addr) noexcept
136 {
137 /// NOTE:
138 /// - Call into the fast fail handler. This entry point serves as a
139 /// trampoline between C and C++. Specifically, the microkernel
140 /// cannot call a member function directly, and can only call
141 /// a C style function.
142 ///
143
144 auto const ret{dispatch_fail( // --
145 g_mut_gs, // --
146 g_mut_tls, // --
147 g_mut_sys, // --
148 g_mut_intrinsic, // --
149 g_mut_vp_pool, // --
150 g_mut_vs_pool, // --
151 bsl::to_u64(errc), // --
152 bsl::to_u64(addr))};
153
154 if (bsl::unlikely(!ret)) {
155 bsl::print<bsl::V>() << bsl::here();
156 return bf_control_op_exit();
157 }
158
159 /// NOTE:
160 /// - This code should never be reached. The fast fail handler should
161 /// always call one of the "run" ABIs to return back to the
162 /// microkernel when a fast fail is finished. If this is called, it
163 /// is because the fast fail handler returned with an error.
164 ///
165
166 return bf_control_op_exit();
167 }
168
169 /// <!-- description -->
170 /// @brief Implements the VMExit entry function. This is registered

Callers

nothing calls this directly

Calls 2

dispatch_failFunction · 0.50
bf_control_op_exitFunction · 0.50

Tested by

no test coverage detected