aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/emulate.c
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2010-04-28 12:15:40 -0400
committerAvi Kivity <avi@redhat.com>2010-08-01 03:35:35 -0400
commitef050dc0390176ec6888f373edb776587c88be3d (patch)
tree1e205bbfa3d64385889e976181b086bf3618837e /arch/x86/kvm/emulate.c
parent95c5588652f7742a21c33d9dcce0e043e057d04f (diff)
KVM: x86 emulator: set RFLAGS outside x86 emulator code
Removes the need for set_flags() callback. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/emulate.c')
-rw-r--r--arch/x86/kvm/emulate.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
index 437f31bcffea..291e220c69a5 100644
--- a/arch/x86/kvm/emulate.c
+++ b/arch/x86/kvm/emulate.c
@@ -3034,7 +3034,6 @@ writeback:
3034 /* Commit shadow register state. */ 3034 /* Commit shadow register state. */
3035 memcpy(ctxt->vcpu->arch.regs, c->regs, sizeof c->regs); 3035 memcpy(ctxt->vcpu->arch.regs, c->regs, sizeof c->regs);
3036 ctxt->eip = c->eip; 3036 ctxt->eip = c->eip;
3037 ops->set_rflags(ctxt->vcpu, ctxt->eflags);
3038 3037
3039done: 3038done:
3040 return (rc == X86EMUL_UNHANDLEABLE) ? -1 : 0; 3039 return (rc == X86EMUL_UNHANDLEABLE) ? -1 : 0;