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>
This commit is contained in:
Philippe Mathieu-Daudé
2026-02-25 04:52:02 +00:00
parent e78cc345db
commit 591357b68f
2 changed files with 3 additions and 4 deletions

View 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;

View 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 {