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

Function bootstrap_entry

kernel/integration/bf_debug_op_dump_vmexit_log.cpp:107–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 /// @param ppid0 the physical process to bootstrap
106 ///
107 extern "C" void
108 bootstrap_entry(bsl::safe_u16::value_type const ppid0) noexcept
109 {
110 constexpr auto one{bsl::safe_u16::magic_1()};
111
112 // invalid id
113 {
114 constexpr auto ppid{syscall::BF_INVALID_ID};
115 syscall::bf_debug_op_dump_vmexit_log(ppid);
116 }
117
118 // id out of range
119 {
120 constexpr auto ppid{(bsl::to_u16(HYPERVISOR_MAX_PPS) + one).checked()};
121 syscall::bf_debug_op_dump_vmexit_log(ppid);
122 }
123
124 // id not online
125 {
126 constexpr auto ppid{(bsl::to_u16(HYPERVISOR_MAX_PPS) - one).checked()};
127 syscall::bf_debug_op_dump_vmexit_log(ppid);
128 }
129
130 // success
131 {
132 syscall::bf_debug_op_dump_vmexit_log(bsl::to_u16(ppid0));
133 }
134
135 bsl::debug() << "success. remaining backtrace is expected\n" << bsl::here();
136 return bf_control_op_exit();
137 }
138
139 /// <!-- description -->
140 /// @brief Implements the fast fail entry function. This is registered

Callers

nothing calls this directly

Calls 2

bf_control_op_exitFunction · 0.50

Tested by

no test coverage detected