KVM: nVMX: Reset RFLAGS on VM-exit
authorJan Kiszka <jan.kiszka@siemens.com>
Sun, 3 Mar 2013 19:47:11 +0000 (20:47 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 5 Mar 2013 23:49:17 +0000 (20:49 -0300)
commitc4627c72e9c9e0fc35af2e9d612888fe4564377d
tree2ef1fbe1c386f303c05a67e7dca3400da951360f
parent10ccaa1e7057d8a9dc3e9ce833af40ec8187b25e
KVM: nVMX: Reset RFLAGS on VM-exit

Ouch, how could this work so well that far? We need to clear RFLAGS to
the reset value as specified by the SDM. Particularly, IF must be off
after VM-exit!

Reviewed-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/vmx.c