All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] acce/mshv: size XSAVE buffers from the hypervisor
@ 2026-09-07 14:23 Doru Blânzeanu
  2026-09-07 14:23 ` [PATCH 1/2] accel/mshv: " Doru Blânzeanu
  2026-09-07 14:23 ` [PATCH 2/2] accel/mshv: enable amx tiles support for guests Doru Blânzeanu
  0 siblings, 2 replies; 4+ messages in thread
From: Doru Blânzeanu @ 2026-09-07 14:23 UTC (permalink / raw)
  To: qemu-devel
  Cc: Wei Liu, Magnus Kulke, Wei Liu, Magnus Kulke, Doru Blânzeanu,
	Doru Blânzeanu

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-09-08 11:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-07 14:23 [PATCH 0/2] acce/mshv: size XSAVE buffers from the hypervisor Doru Blânzeanu
2026-09-07 14:23 ` [PATCH 1/2] accel/mshv: " Doru Blânzeanu
2026-09-08 11:26   ` Magnus Kulke
2026-09-07 14:23 ` [PATCH 2/2] accel/mshv: enable amx tiles support for guests Doru Blânzeanu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.