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

Function fail_entry

kernel/integration/bf_vs_op_tlb_flush.cpp:182–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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