]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: x86: Emulator does not decode clflush well
authorNadav Amit <namit@cs.technion.ac.il>
Mon, 13 Oct 2014 10:04:13 +0000 (13:04 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Nov 2014 18:10:28 +0000 (10:10 -0800)
commit04647769835cbcf32a4ad04731cf1f00e2d6f03a
treea99eeb2344a6b6667eaa11812bcb8c630b60e66a
parent759caa76e2fb7f6037083e08194ece12745b92ef
KVM: x86: Emulator does not decode clflush well

commit 13e457e0eebf0a0c82c38ceb890d93eb826d62a6 upstream.

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: 41061cdb98a0bec464278b4db8e894a3121671f5
Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/emulate.c