target/i386: Populate x86_ext_save_areas offsets using cpuid where possible
commitfea4500841024195ec701713e05b92ebf667f192
authorDavid Edmondson <david.edmondson@oracle.com>
Mon, 5 Jul 2021 10:46:31 +0000 (5 11:46 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 6 Jul 2021 06:33:48 +0000 (6 08:33 +0200)
tree7901cb3679ee3b1177ff80493f874bade24d63ea
parent3568987f78faff90829ea6c885bbdd5b083dc86c
target/i386: Populate x86_ext_save_areas offsets using cpuid where possible

Rather than relying on the X86XSaveArea structure definition,
determine the offset of XSAVE state areas using CPUID leaf 0xd where
possible (KVM and HVF).

Signed-off-by: David Edmondson <david.edmondson@oracle.com>
Message-Id: <20210705104632.2902400-8-david.edmondson@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c
target/i386/cpu.h
target/i386/hvf/hvf-cpu.c
target/i386/hvf/hvf.c
target/i386/kvm/kvm-cpu.c
target/i386/kvm/kvm.c
target/i386/tcg/tcg-cpu.c