On Sat, Jan 17, 2026 at 05:29:19PM +0100, Philippe Mathieu-Daudé wrote:
> Date: Sat, 17 Jan 2026 17:29:19 +0100
> From: Philippe Mathieu-Daudé <[email protected]>
> Subject: [PATCH v2 1/8] target/i386: Include missing 'svm.h' header in
>  'sev.h'
> X-Mailer: git-send-email 2.52.0
> 
> otarget/i386/cpu.h:2820:#include "svm.h"
> target/i386/sev.h:17:#include "target/i386/svm.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é <[email protected]>
> ---
>  target/i386/sev.h | 2 ++
>  1 file changed, 2 insertions(+)

Reviewed-by: Zhao Liu <[email protected]>


Reply via email to