]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
accel/mshv: Forward-declare mshv_root_hvcall structure
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 25 Feb 2026 04:52:02 +0000 (04:52 +0000)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 10 Mar 2026 10:36:21 +0000 (11:36 +0100)
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>

accel/mshv/mshv-all.c
include/system/mshv_int.h

index ddc4c18cba477e719bca64d6d6934d4591778d8c..d4cc7f537158a65268252641c5d5751a5adfab0d 100644 (file)
@@ -381,7 +381,7 @@ static void register_mshv_memory_listener(MshvState *s, MshvMemoryListener *mml,
     }
 }
 
-int mshv_hvcall(int fd, const struct mshv_root_hvcall *args)
+int mshv_hvcall(int fd, const mshv_root_hvcall *args)
 {
     int ret = 0;
 
index ad4d001c3cdd8e5c64c8b396393d8c56d54c279b..35386c422fa65daa7354a73b5afc3a9b0caeea1d 100644 (file)
@@ -96,9 +96,8 @@ void mshv_arch_amend_proc_features(
     union hv_partition_synthetic_processor_features *features);
 int mshv_arch_post_init_vm(int vm_fd);
 
-#if defined COMPILING_PER_TARGET && defined CONFIG_MSHV_IS_POSSIBLE
-int mshv_hvcall(int fd, const struct mshv_root_hvcall *args);
-#endif
+typedef struct mshv_root_hvcall mshv_root_hvcall;
+int mshv_hvcall(int fd, const mshv_root_hvcall *args);
 
 /* memory */
 typedef struct MshvMemoryRegion {