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

Function fail_entry

kernel/integration/bf_vm_op_tlb_flush.cpp:167–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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