summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2008-11-29 20:36:13 +0200
committerAvi Kivity <avi@redhat.com>2008-12-31 16:55:05 +0200
commit2b48cc75b21431037d6f902b9d583b1aff198490 (patch)
tree94701bb39071951a8683a0f462d59a75e343caf5 /arch/x86/kvm
parentcf5de4f886116871c2ae2eee53524edd741a68ae (diff)
downloadop-kernel-dev-2b48cc75b21431037d6f902b9d583b1aff198490.zip
op-kernel-dev-2b48cc75b21431037d6f902b9d583b1aff198490.tar.gz
KVM: x86 emulator: fix popf emulation
Set operand type and size to get correct writeback behavior. Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r--arch/x86/kvm/x86_emulate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86_emulate.c b/arch/x86/kvm/x86_emulate.c
index 72ae86b..e8c87cc 100644
--- a/arch/x86/kvm/x86_emulate.c
+++ b/arch/x86/kvm/x86_emulate.c
@@ -1552,7 +1552,9 @@ special_insn:
emulate_push(ctxt);
break;
case 0x9d: /* popf */
+ c->dst.type = OP_REG;
c->dst.ptr = (unsigned long *) &ctxt->eflags;
+ c->dst.bytes = c->op_bytes;
goto pop_instruction;
case 0xa0 ... 0xa1: /* mov */
c->dst.ptr = (unsigned long *)&c->regs[VCPU_REGS_RAX];
OpenPOWER on IntegriCloud