• Andre Przywara's avatar
    KVM: fix XSAVE bit scanning (now properly) · 02668b06
    Andre Przywara authored
    commit 123108f1c1aafd51d6a5c79cc04d7999dd88a930 tried to fix KVMs
    XSAVE valid feature scanning, but it was wrong. It was not considering
    the sparse nature of this bitfield, instead reading values from
    uninitialized members of the entries array.
    This patch now separates subleaf indicies from KVM's array indicies
    and fills the entry before querying it's value.
    This fixes AVX support in KVM guests.
    Signed-off-by: default avatarAndre Przywara <andre.przywara@amd.com>
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    02668b06
x86.c 164 KB