]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit55af14bc892379ab0408bce249574a08be2ff618
tree8d92ad6b0a3bd075a81c8a311d8e5581fd0a17f7
parente38210514f9f1d7c3530c177dff3dd57f51eca90
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