From: Philippe Mathieu-Daudé Date: Wed, 7 Jan 2026 16:48:19 +0000 (+0100) Subject: target/i386: Include missing 'svm.h' header in 'sev.h' X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a91b167cea3a00b1044aad3a59a20fa1a557cfb6;p=thirdparty%2Fqemu.git target/i386: Include missing 'svm.h' header in 'sev.h' "target/i386/sev.h" uses the vmcb_seg structure type, which is defined in "target/i386/svm.h". Current builds succeed because the files including "target/i386/sev.h" also include "monitor/hmp-target.h", itself including "cpu.h" and finally "target/i386/svm.h". Include the latter, otherwise removing "cpu.h" from "monitor/hmp-target.h" triggers: ../target/i386/sev.h:62:21: error: field has incomplete type 'struct vmcb_seg' 62 | struct vmcb_seg es; | ^ Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Zhao Liu Message-Id: <20260129164039.58472-2-philmd@linaro.org> --- diff --git a/target/i386/sev.h b/target/i386/sev.h index 9db1a802f6..4358df40e4 100644 --- a/target/i386/sev.h +++ b/target/i386/sev.h @@ -14,6 +14,8 @@ #ifndef I386_SEV_H #define I386_SEV_H +#include "target/i386/svm.h" + #ifndef CONFIG_USER_ONLY #include CONFIG_DEVICES /* CONFIG_SEV */ #endif