]> 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)
commit3e3d52c6346e3cd3b3ef5519dd2ea2082cee6a6a
tree8d92ad6b0a3bd075a81c8a311d8e5581fd0a17f7
parentfd8577b1a99c40c0fcc120dcdcc0e65fe4fb8f9e
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