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

Function fail_entry

kernel/integration/bf_vm_op_destroy_vm.cpp:183–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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