On Tue, Oct 29, 2024 at 04:18:52PM +0100, Paolo Bonzini wrote: > Date: Tue, 29 Oct 2024 16:18:52 +0100 > From: Paolo Bonzini <pbonz...@redhat.com> > Subject: [PATCH 2/8] target/i386: do not rely on ExtSaveArea for > accelerator-supported XCR0 bits > X-Mailer: git-send-email 2.47.0 > > Right now, QEMU is using the "feature" and "bits" fields of ExtSaveArea > to query the accelerator for the support status of extended save areas. > This is a problem for AVX10, which attaches two feature bits (AVX512F > and AVX10) to the same extended save states. > > To keep the AVX10 hacks to the minimum, limit usage of esa->features > and esa->bits. Instead, just query the accelerator for the 0xD leaf. > Do it in common code and clear esa->size if an extended save state is > unsupported. > > Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> > --- > target/i386/cpu.c | 33 +++++++++++++++++++++++++++++++-- > target/i386/kvm/kvm-cpu.c | 4 ---- > 2 files changed, 31 insertions(+), 6 deletions(-)
Reviewed-by: Zhao Liu <zhao1....@intel.com>