• Andre Przywara's avatar
    KVM: fix XSAVE bit scanning · 20800bc9
    Andre Przywara authored
    When KVM scans the 0xD CPUID leaf for propagating the XSAVE save area
    leaves, it assumes that the leaves are contigious and stops at the
    first zero one. On AMD hardware there is a gap, though, as LWP uses
    leaf 62 to announce it's state save area.
    So lets iterate through all 64 possible leaves and simply skip zero
    ones to also cover later features.
    Signed-off-by: default avatarAndre Przywara <andre.przywara@amd.com>
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    20800bc9
x86.c 157 KB