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)
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

Simple merge