[PATCH 0/2] acce/mshv: size XSAVE buffers from the hypervisor

Doru Blânzeanu posted 2 patches 2 weeks, 5 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260907142355.141033-1-dblanzeanu@linux.microsoft.com
Maintainers: Magnus Kulke <magnuskulke@linux.microsoft.com>, Wei Liu <wei.liu@kernel.org>, "Doru Blânzeanu" <dblanzeanu@linux.microsoft.com>
There is a newer version of this series
accel/mshv/mshv-all.c       | 39 +++++++++++++++++++----------
accel/mshv/trace-events     |  2 ++
include/system/mshv_int.h   |  3 +++
target/i386/mshv/mshv-cpu.c | 50 ++++++++++++++++++-------------------
4 files changed, 56 insertions(+), 38 deletions(-)
[PATCH 0/2] acce/mshv: size XSAVE buffers from the hypervisor
Posted by Doru Blânzeanu 2 weeks, 5 days ago
This patch series allows Qemu to dynamically size the xsave area from the
hypervisor by reading the property HV_PARTITION_PROPERTY_MAX_XSAVE_DATA_SIZE.

Previously, the xsave area size was set to 4kB and as a consequence AMX Tiles
feature couldn't be enabled because it needs more than the 4kB allocated.
With this change, Qemu enables all the xsave features in the partition, and it
queries the hypervisor to retrieve the maximum size of xsave.
The size is cached in `MshvState` at vCPU arch initialization time to be used
later for MSHV_{GET/SET}_VP_XSAVE.

To correctly advertise AMX support, we remove the logic disabling the AMX at
CPUID and partition level.

Doru Blânzeanu (2):
  accel/mshv: size XSAVE buffers from the hypervisor
  accel/mshv: enable amx tiles support for guests

 accel/mshv/mshv-all.c       | 39 +++++++++++++++++++----------
 accel/mshv/trace-events     |  2 ++
 include/system/mshv_int.h   |  3 +++
 target/i386/mshv/mshv-cpu.c | 50 ++++++++++++++++++-------------------
 4 files changed, 56 insertions(+), 38 deletions(-)

-- 
2.53.0