]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: popf emulation should not change RF
authorNadav Amit <namit@cs.technion.ac.il>
Mon, 21 Jul 2014 11:37:28 +0000 (14:37 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 21 Jul 2014 11:41:58 +0000 (13:41 +0200)
commit4f336b79af15346ddfc480547263d0467f695277
tree8f80fe829e1c0aa3860e6aae69744ffa83c3b82f
parent1d7dcda4cf1ce7f6d9b006203666989173eb0dab
KVM: x86: popf emulation should not change RF

RFLAGS.RF is always zero after popf. Therefore, popf should not updated RF, as
anyhow emulating popf, just as any other instruction should clear RFLAGS.RF.

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