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)
commitbc397a6c914c75d8ae21dad23eba9ae82e34dad3
tree0b7f8fdc82a3a2c084fb618317c96ba91be0f3ce
parent53bb4f789a7be4448d624741df93b2401ecd3625
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