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

Function fail_entry

kernel/integration/bf_vs_op_read.cpp:204–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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