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

Function fail_entry

kernel/integration/bf_debug_op_dump_vs.cpp:155–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153 /// input is undefined.
154 ///
155 extern "C" void
156 fail_entry(bsl::safe_u64::value_type const errc, bsl::safe_u64::value_type const addr) noexcept
157 {
158 /// NOTE:
159 /// - Call into the fast fail handler. This entry point serves as a
160 /// trampoline between C and C++. Specifically, the microkernel
161 /// cannot call a member function directly, and can only call
162 /// a C style function.
163 ///
164
165 auto const ret{dispatch_fail( // --
166 g_mut_gs, // --
167 g_mut_tls, // --
168 g_mut_sys, // --
169 g_mut_intrinsic, // --
170 g_mut_vp_pool, // --
171 g_mut_vs_pool, // --
172 bsl::to_u64(errc), // --
173 bsl::to_u64(addr))};
174
175 if (bsl::unlikely(!ret)) {
176 bsl::print<bsl::V>() << bsl::here();
177 return bf_control_op_exit();
178 }
179
180 /// NOTE:
181 /// - This code should never be reached. The fast fail handler should
182 /// always call one of the "run" ABIs to return back to the
183 /// microkernel when a fast fail is finished. If this is called, it
184 /// is because the fast fail handler returned with an error.
185 ///
186
187 return bf_control_op_exit();
188 }
189
190 /// <!-- description -->
191 /// @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