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

Function fail_entry

kernel/integration/bf_vs_op_promote.cpp:171–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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