• Nadav Amit's avatar
    KVM: x86: Emulator does not decode clflush well · 13e457e0
    Nadav Amit authored
    Currently, all group15 instructions are decoded as clflush (e.g., mfence,
    xsave).  In addition, the clflush instruction requires no prefix (66/f2/f3)
    would exist. If prefix exists it may encode a different instruction (e.g.,
    clflushopt).
    
    Creating a group for clflush, and different group for each prefix.
    
    This has been the case forever, but the next patch needs the cflush group
    in order to fix a bug introduced in 3.17.
    
    Fixes: 41061cdb
    Cc: stable@vger.kernel.org
    Signed-off-by: default avatarNadav Amit <namit@cs.technion.ac.il>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    13e457e0
emulate.c 129 KB