]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Do not push eflags.vm on pushf
authorNadav Amit <namit@cs.technion.ac.il>
Wed, 10 Dec 2014 09:19:03 +0000 (11:19 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 10 Dec 2014 11:51:28 +0000 (12:51 +0100)
commit6b22e9fa7d602f550788e3795085adcc64863606
tree0b7f8fdc82a3a2c084fb618317c96ba91be0f3ce
parentd6f7e43ebea15a40e78bd02d919c344e204780ee
KVM: x86: Do not push eflags.vm on pushf

The pushf instruction does not push eflags.VM, so emulation should not do so as
well.  Although eflags.RF should not be pushed as well, it is already cleared
by the time pushf is executed.

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