From: "Doru Blânzeanu" <dblanzeanu@linux.microsoft.com>
To: qemu-devel@nongnu.org
Cc: "Magnus Kulke" <magnuskulke@microsoft.com>,
"Magnus Kulke" <magnuskulke@linux.microsoft.com>,
"Wei Liu" <wei.liu@kernel.org>,
"Doru Blânzeanu" <dblanzeanu@linux.microsoft.com>,
"Wei Liu" <liuwe@microsoft.com>,
"Doru Blânzeanu" <dblanzeanu@microsoft.com>
Subject: [PATCH v2 0/2] acce/mshv: size XSAVE buffers from the hypervisor
Date: Tue, 22 Sep 2026 17:21:54 +0300 [thread overview]
Message-ID: <20260922142156.89306-1-dblanzeanu@linux.microsoft.com> (raw)
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.
Changes from v1:
- change max xsave area size retrieval to be done only the first vcpu by
checking against the `first_cpu` global
- change error handling for `mshv_get_max_xsave_size` and instead add assert for
the return value to signal something broken in case of failure
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 | 40 ++++++++++++++-----------------------
4 files changed, 46 insertions(+), 38 deletions(-)
--
2.53.0
next reply other threads:[~2026-09-22 14:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-22 14:21 Doru Blânzeanu [this message]
2026-09-22 14:21 ` [PATCH v2 1/2] accel/mshv: size XSAVE buffers from the hypervisor Doru Blânzeanu
2026-09-22 14:21 ` [PATCH v2 2/2] accel/mshv: enable amx tiles support for guests Doru Blânzeanu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260922142156.89306-1-dblanzeanu@linux.microsoft.com \
--to=dblanzeanu@linux.microsoft.com \
--cc=dblanzeanu@microsoft.com \
--cc=liuwe@microsoft.com \
--cc=magnuskulke@linux.microsoft.com \
--cc=magnuskulke@microsoft.com \
--cc=qemu-devel@nongnu.org \
--cc=wei.liu@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.