accel/mshv: Forward-declare mshv_root_hvcall structure
Forward-declare the target-specific mshv_root_hvcall structure in order to keep 'system/mshv_int.h' target-agnostic. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20260225051303.91614-3-philmd@linaro.org>
Philippe Mathieu-Daudé committed
Feb 25, 2026 at 04:52 UTC
591357b68fd06c8fa460e443b8dae94920f2ce2e
2 files changed
+3
-4
accel/mshv/mshv-all.c
+1
-1
@@ -381,7 +381,7 @@ static void register_mshv_memory_listener(MshvState *s, MshvMemoryListener *mml,
381
}
382
}
383
384
-int mshv_hvcall(int fd, const struct mshv_root_hvcall *args)
384
+int mshv_hvcall(int fd, const mshv_root_hvcall *args)
385
{
386
int ret = 0;
387
include/system/mshv_int.h
+2
-3
@@ -96,9 +96,8 @@ void mshv_arch_amend_proc_features(
96
union hv_partition_synthetic_processor_features *features);
97
int mshv_arch_post_init_vm(int vm_fd);
98
99
-#if defined COMPILING_PER_TARGET && defined CONFIG_MSHV_IS_POSSIBLE
100
-int mshv_hvcall(int fd, const struct mshv_root_hvcall *args);
101
-#endif
99
+typedef struct mshv_root_hvcall mshv_root_hvcall;
100
+int mshv_hvcall(int fd, const mshv_root_hvcall *args);
101
102
/* memory */
103
typedef struct MshvMemoryRegion {