Use error_setg() to report that IGVM is not available, matching the pattern used by other stubs in the tree.
Suggested-by: Stefano Garzarella <[email protected]> Signed-off-by: Luigi Leonardi <[email protected]> --- stubs/igvm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stubs/igvm.c b/stubs/igvm.c index 9e9f683fc9..dfb85eb548 100644 --- a/stubs/igvm.c +++ b/stubs/igvm.c @@ -17,15 +17,18 @@ int qigvm_x86_get_mem_map_entry(int index, ConfidentialGuestMemoryMapEntry *entry, Error **errp) { + error_setg(errp, "IGVM not supported on this platform"); return -1; } int qigvm_x86_set_vp_context(void *data, int index, Error **errp) { + error_setg(errp, "IGVM not supported on this platform"); return -1; } int qigvm_directive_madt(QIgvm *ctx, const uint8_t *header_data, Error **errp) { + error_setg(errp, "IGVM not supported on this platform"); return -1; } --- base-commit: 29c042c6e9d4a09d4a0ac3fa54aeb7ee08ce0bdc change-id: 20260609-igvm_stubs-d3205f48e5a0 Best regards, -- Luigi Leonardi <[email protected]>
