]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: x86: clflushopt should be treated as a no-op by emulation
authorDavid Edmondson <david.edmondson@oracle.com>
Tue, 3 Nov 2020 12:04:00 +0000 (12:04 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 22 Nov 2020 09:15:33 +0000 (10:15 +0100)
commit312630a7d5af96a4b6c939837f203cadf72e59f6
tree8b72f8ba2bd309861fb4db1bd7d3c0692114b653
parent6a3ecd17b2f8853700cf34af36e29ec0f6d8a17c
KVM: x86: clflushopt should be treated as a no-op by emulation

commit 51b958e5aeb1e18c00332e0b37c5d4e95a3eff84 upstream.

The instruction emulator ignores clflush instructions, yet fails to
support clflushopt. Treat both similarly.

Fixes: 13e457e0eebf ("KVM: x86: Emulator does not decode clflush well")
Signed-off-by: David Edmondson <david.edmondson@oracle.com>
Message-Id: <20201103120400.240882-1-david.edmondson@oracle.com>
Reviewed-by: Joao Martins <joao.m.martins@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/emulate.c