On Thu, 1 Oct 2026 at 11:52, Aastha Rawat <[email protected]> wrote: > > Enable the build of the MSHV accelerator for arm64 in the Meson build > system. Introduce initial files and stub implementations to support MSHV > for the ARM target. > > Signed-off-by: Aastha Rawat <[email protected]> > --- > accel/mshv/mshv-all.c | 10 ++++-- > hw/i386/mshv/clock.c | 2 +- > include/system/mshv.h | 2 +- > meson.build | 8 ++--- > target/arm/meson.build | 1 + > target/arm/mshv/meson.build | 7 ++++ > target/arm/mshv/mshv-all.c | 81 > +++++++++++++++++++++++++++++++++++++++++++++ > 7 files changed, 103 insertions(+), 8 deletions(-) > > diff --git a/accel/mshv/mshv-all.c b/accel/mshv/mshv-all.c > index efe19a3914..f3f1825b0b 100644 > --- a/accel/mshv/mshv-all.c > +++ b/accel/mshv/mshv-all.c > @@ -142,8 +142,10 @@ static int create_partition(int mshv_fd, int *vm_fd) > { > int ret; > uint64_t pt_flags, host_proc_features; > - union hv_partition_processor_xsave_features disabled_xsave_features; > union hv_partition_processor_features disabled_partition_features = {0}; > +#if defined(__x86_64__) > + union hv_partition_processor_xsave_features disabled_xsave_features; > +#endif
This is the common mshv file; if you are adding __x86_64__ ifdefs to it then something is in the wrong place and needs to be moved to an architecture-specific file/function. thanks -- PMM
