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

Function fail_entry

kernel/integration/bf_vs_op_migrate.cpp:196–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194 /// input is undefined.
195 ///
196 extern "C" void
197 fail_entry(bsl::safe_u64::value_type const errc, bsl::safe_u64::value_type const addr) noexcept
198 {
199 /// NOTE:
200 /// - Call into the fast fail handler. This entry point serves as a
201 /// trampoline between C and C++. Specifically, the microkernel
202 /// cannot call a member function directly, and can only call
203 /// a C style function.
204 ///
205
206 auto const ret{dispatch_fail( // --
207 g_mut_gs, // --
208 g_mut_tls, // --
209 g_mut_sys, // --
210 g_mut_intrinsic, // --
211 g_mut_vp_pool, // --
212 g_mut_vs_pool, // --
213 bsl::to_u64(errc), // --
214 bsl::to_u64(addr))};
215
216 if (bsl::unlikely(!ret)) {
217 bsl::print<bsl::V>() << bsl::here();
218 return bf_control_op_exit();
219 }
220
221 /// NOTE:
222 /// - This code should never be reached. The fast fail handler should
223 /// always call one of the "run" ABIs to return back to the
224 /// microkernel when a fast fail is finished. If this is called, it
225 /// is because the fast fail handler returned with an error.
226 ///
227
228 return bf_control_op_exit();
229 }
230
231 /// <!-- description -->
232 /// @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