Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202395
b: refs/heads/master
c: 07cbc6c
h: refs/heads/master
i:
  202393: 50f389e
  202391: 252f4e0
v: v3
  • Loading branch information
Wei Yongjun authored and Avi Kivity committed Aug 2, 2010
1 parent a7e6435 commit 7824ece
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b16b2b7bb5a78afceb7fe22f2a04476cd70182b7
refs/heads/master: 07cbc6c185aee2c0479776845988242a040c7c93
10 changes: 6 additions & 4 deletions trunk/arch/x86/kvm/emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -2979,17 +2979,19 @@ x86_emulate_insn(struct x86_emulate_ctxt *ctxt, struct x86_emulate_ops *ops)
c->dst.type = OP_NONE; /* Disable writeback. */
break;
case 0xfa: /* cli */
if (emulator_bad_iopl(ctxt, ops))
if (emulator_bad_iopl(ctxt, ops)) {
emulate_gp(ctxt, 0);
else {
goto done;
} else {
ctxt->eflags &= ~X86_EFLAGS_IF;
c->dst.type = OP_NONE; /* Disable writeback. */
}
break;
case 0xfb: /* sti */
if (emulator_bad_iopl(ctxt, ops))
if (emulator_bad_iopl(ctxt, ops)) {
emulate_gp(ctxt, 0);
else {
goto done;
} else {
ctxt->interruptibility = KVM_X86_SHADOW_INT_STI;
ctxt->eflags |= X86_EFLAGS_IF;
c->dst.type = OP_NONE; /* Disable writeback. */
Expand Down

0 comments on commit 7824ece

Please sign in to comment.