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

Function fail_entry

kernel/integration/bf_vp_op_destroy_vp.cpp:181–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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