@samitouri / QOSamiQemu / commits / c725a896c6

typedefs: move QIgvm out of typedefs.h

Typedefs.h should only be used for really core types; QIgvm is just an opaque struct that is defined in system/igvm-internal.h, and the typedef itself can be placed simply in system/igvm.h. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Paolo Bonzini committed Mar 11, 2026 at 17:19 UTC c725a896c6b92f733e0eeb236167cbd9b33efda8
2 files changed +2 -2
include/qemu/typedefs.h
-1
@@ -102,7 +102,6 @@ typedef struct QEMUSGList QEMUSGList;
102 typedef struct QemuSpin QemuSpin;
103 typedef struct QEMUTimer QEMUTimer;
104 typedef struct QEMUTimerListGroup QEMUTimerListGroup;
105 -typedef struct QIgvm QIgvm;
105 typedef struct QList QList;
106 typedef struct QNull QNull;
107 typedef struct QNum QNum;
include/system/igvm.h
+2 -1
@@ -13,10 +13,11 @@
13 #define BACKENDS_IGVM_H
14
15 #include "hw/core/boards.h"
16 -#include "qemu/typedefs.h"
16 #include "system/confidential-guest-support.h"
17 #include "qapi/error.h"
18
19 +typedef struct QIgvm QIgvm;
20 +
21 int qigvm_process_file(IgvmCfg *igvm, MachineState *machine_state,
22 bool onlyVpContext, Error **errp);
23