| 239 | /// microkernel speak the same ABI. |
| 240 | /// |
| 241 | extern "C" void |
| 242 | ext_main_entry(bsl::uint32 const version) noexcept |
| 243 | { |
| 244 | bsl::safe_umx mut_hndl{}; |
| 245 | bf_status_t mut_ret{}; |
| 246 | |
| 247 | if (bsl::unlikely(!bf_is_spec1_supported(bsl::to_u32(version)))) { |
| 248 | bsl::error() << "integration test not supported\n" << bsl::here(); |
| 249 | return bf_control_op_exit(); |
| 250 | } |
| 251 | |
| 252 | mut_ret = bf_handle_op_open_handle_impl(BF_SPEC_ID1_VAL.get(), mut_hndl.data()); |
| 253 | integration::require(mut_ret == BF_STATUS_SUCCESS); |
| 254 | |
| 255 | mut_ret = bf_callback_op_register_vmexit_impl(mut_hndl.get(), &vmexit_entry); |
| 256 | integration::require(mut_ret == BF_STATUS_SUCCESS); |
| 257 | |
| 258 | mut_ret = bf_callback_op_register_fail_impl(mut_hndl.get(), &fail_entry); |
| 259 | integration::require(mut_ret == BF_STATUS_SUCCESS); |
| 260 | |
| 261 | return bf_control_op_wait(); |
| 262 | } |
| 263 | } |
nothing calls this directly
no test coverage detected