KVM: x86: Do not update EFLAGS on faulting emulation
authorNadav Amit <namit@cs.technion.ac.il>
Sun, 2 Nov 2014 09:54:53 +0000 (11:54 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 7 Nov 2014 14:44:08 +0000 (15:44 +0100)
commit38827dbd3fb85a94a002fcf67b8735d5bc1a7e1a
tree8d92ad6b0a3bd075a81c8a311d8e5581fd0a17f7
parent9d88fca71a99a65c37cbfe481b4aa4e91a27ff13
KVM: x86: Do not update EFLAGS on faulting emulation

If the emulation ends in fault, eflags should not be updated.  However, several
instruction emulations (actually all the fastops) currently update eflags, if
the fault was detected afterwards (e.g., #PF during writeback).

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