Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315891
b: refs/heads/master
c: a14e579
h: refs/heads/master
i:
  315889: a1a2caa
  315887: 77beab0
v: v3
  • Loading branch information
Avi Kivity committed Jul 9, 2012
1 parent 62cc34b commit 20ce706
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 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: 9299836e6379d5703826a540fb3c704223fac520
refs/heads/master: a14e579f224ba929fe2f1d9bbbff688ae67e2ec4
11 changes: 10 additions & 1 deletion trunk/arch/x86/kvm/emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -3015,6 +3015,15 @@ static int em_mov_sreg_rm(struct x86_emulate_ctxt *ctxt)
return load_segment_descriptor(ctxt, sel, ctxt->modrm_reg);
}

static int em_lldt(struct x86_emulate_ctxt *ctxt)
{
u16 sel = ctxt->src.val;

/* Disable writeback. */
ctxt->dst.type = OP_NONE;
return load_segment_descriptor(ctxt, sel, VCPU_SREG_LDTR);
}

static int em_invlpg(struct x86_emulate_ctxt *ctxt)
{
int rc;
Expand Down Expand Up @@ -3560,7 +3569,7 @@ static struct opcode group5[] = {
static struct opcode group6[] = {
DI(Prot, sldt),
DI(Prot, str),
DI(Prot | Priv, lldt),
II(Prot | Priv | SrcMem16, em_lldt, lldt),
DI(Prot | Priv, ltr),
N, N, N, N,
};
Expand Down

0 comments on commit 20ce706

Please sign in to comment.