]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
KVM: x86: emulate: correct page fault error code for NoWrite instructions
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 9 Feb 2015 09:02:05 +0000 (10:02 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 9 Feb 2015 12:36:01 +0000 (13:36 +0100)
commitd44e1212230a68f9dccd1a95b5c8ca5217c62094
tree8f3e4007c2bd4126422b4efe7e85b6f0d5333b26
parentccd9e785ea174a1c21d4c63a2afaacd6ef31d56d
KVM: x86: emulate: correct page fault error code for NoWrite instructions

NoWrite instructions (e.g. cmp or test) never set the "write access"
bit in the error code, even if one of the operands is treated as a
destination.

Fixes: c205fb7d7d4f81e46fc577b707ceb9e356af1456
Cc: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c