qemu/accel/hvf
Phil Dennis-Jordan a3c67dfc14 hvf: Makes assert_hvf_ok report failed expression
When a macOS Hypervisor.framework call fails which is checked by
assert_hvf_ok(), Qemu exits printing the error value, but not the
location
in the code, as regular assert() macro expansions would.

This change turns assert_hvf_ok() into a macro similar to other
assertions, which expands to a call to the corresponding _impl()
function together with information about the expression that failed
the assertion and its location in the code.

Additionally, stringifying the numeric hv_return_t code is factored
into a helper function that can be reused for diagnostics and debugging
outside of assertions.

Signed-off-by: Phil Dennis-Jordan <phil@philjordan.eu>
Message-ID: <20240605112556.43193-8-phil@philjordan.eu>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2024-06-08 10:33:38 +02:00
..
entitlements.plist hvf: Add hypervisor entitlement to output binaries 2021-01-29 10:47:28 +00:00
hvf-accel-ops.c hvf: Consistent types for vCPU handles 2024-06-08 10:33:38 +02:00
hvf-all.c hvf: Makes assert_hvf_ok report failed expression 2024-06-08 10:33:38 +02:00
meson.build hvf: Move vcpu thread functions into common directory 2021-06-03 16:43:26 +01:00