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

Function dispatch_vmexit

example/default/mocks/dispatch_vmexit.hpp:56–76  ·  view source on GitHub ↗

<!-- description --> @brief Dispatches the VMExit. <!-- inputs/outputs --> @param gs the gs_t to use @param tls the tls_t to use @param sys the bf_syscall_t to use @param intrinsic the intrinsic_t to use @param vp_pool the vp_pool_t to use @param vs_pool the vs_pool_t to use @param vsid the ID of the VS that generated the VMExit @param exit_reason the exit reason associated with the VMExit @retur

Source from the content-addressed store, hash-verified

54 /// and friends otherwise
55 ///
56 [[nodiscard]] static constexpr auto
57 dispatch_vmexit(
58 gs_t const &gs,
59 tls_t const &tls,
60 syscall::bf_syscall_t const &sys,
61 intrinsic_t const &intrinsic,
62 vp_pool_t const &vp_pool,
63 vs_pool_t const &vs_pool,
64 bsl::safe_u16 const &vsid,
65 bsl::safe_u64 const &exit_reason) noexcept -> bsl::errc_type
66 {
67 bsl::discard(gs);
68 bsl::discard(sys);
69 bsl::discard(intrinsic);
70 bsl::discard(vp_pool);
71 bsl::discard(vs_pool);
72 bsl::discard(vsid);
73 bsl::discard(exit_reason);
74
75 return tls.test_ret;
76 }
77}
78
79#endif

Callers 6

behavior.cppFile · 0.50
requirements.cppFile · 0.50
behavior.cppFile · 0.50
requirements.cppFile · 0.50
behavior.cppFile · 0.50
requirements.cppFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected