[PATCH 0/2] arm/hvf: Add SME2 support

Manos Pitsidianakis posted 2 patches 3 weeks, 2 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260114-sme2-hvf-v1-0-ce9599596736@linaro.org
Maintainers: Peter Maydell <peter.maydell@linaro.org>, Alexander Graf <agraf@csgraf.de>, Mads Ynddal <mads@ynddal.dk>
There is a newer version of this series
target/arm/cpu.c            |   4 +-
target/arm/cpu64.c          |  13 +-
target/arm/hvf/hvf.c        | 318 ++++++++++++++++++++++++++++++++++++++++++--
target/arm/hvf/sysreg.c.inc |  10 ++
target/arm/hvf_arm.h        |  46 +++++++
target/arm/machine.c        |   2 +-
6 files changed, 376 insertions(+), 17 deletions(-)
[PATCH 0/2] arm/hvf: Add SME2 support
Posted by Manos Pitsidianakis 3 weeks, 2 days ago
M4/M5 Macs support SME2, and HVF exposes this functionality in its
public API.

Add support for it in QEMU.

This was tested by running an SME2 benchmark from Arm [0]. savevm and
loadvm during the benchmark's run were used to verify migration works.

[0]:
https://learn.arm.com/learning-paths/cross-platform/multiplying-matrices-with-sme2/1-get-started/

Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
---
Manos Pitsidianakis (2):
      hvf/arm: handle FEAT_SME2 migration
      hvf/arm: expose FEAT_SME2 to guest if available

 target/arm/cpu.c            |   4 +-
 target/arm/cpu64.c          |  13 +-
 target/arm/hvf/hvf.c        | 318 ++++++++++++++++++++++++++++++++++++++++++--
 target/arm/hvf/sysreg.c.inc |  10 ++
 target/arm/hvf_arm.h        |  46 +++++++
 target/arm/machine.c        |   2 +-
 6 files changed, 376 insertions(+), 17 deletions(-)
---
base-commit: cf3e71d8fc8ba681266759bb6cb2e45a45983e3e
change-id: 20260114-sme2-hvf-105767189521

--
γαῖα πυρί μιχθήτω


Re: [PATCH 0/2] arm/hvf: Add SME2 support
Posted by Mohamed Mediouni 3 weeks, 2 days ago

> On 14. Jan 2026, at 09:35, Manos Pitsidianakis <manos.pitsidianakis@linaro.org> wrote:
> 
> M4/M5 Macs support SME2, and HVF exposes this functionality in its
> public API.
> 
> Add support for it in QEMU.
> 
> This was tested by running an SME2 benchmark from Arm [0]. savevm and
> loadvm during the benchmark's run were used to verify migration works.
> 
> [0]:
> https://learn.arm.com/learning-paths/cross-platform/multiplying-matrices-with-sme2/1-get-started/
> 
> Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
> ---
> Manos Pitsidianakis (2):
>      hvf/arm: handle FEAT_SME2 migration
>      hvf/arm: expose FEAT_SME2 to guest if available
> 
Hello,

For this series:

Reviewed-by: Mohamed Mediouni <mohamed@unpredictable.fr>

Random note: For running on older macOS releases when built with a new SDK, you might also need -weak_framework, but not sure meson supports that…

> 
>  target/arm/cpu.c            |   4 +-
> target/arm/cpu64.c          |  13 +-
> target/arm/hvf/hvf.c        | 318 ++++++++++++++++++++++++++++++++++++++++++--
> target/arm/hvf/sysreg.c.inc |  10 ++
> target/arm/hvf_arm.h        |  46 +++++++
> target/arm/machine.c        |   2 +-
> 6 files changed, 376 insertions(+), 17 deletions(-)
> ---
> base-commit: cf3e71d8fc8ba681266759bb6cb2e45a45983e3e
> change-id: 20260114-sme2-hvf-105767189521
> 
> --
> γαῖα πυρί μιχθήτω
> 
>