Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356877
b: refs/heads/master
c: 378a8b0
h: refs/heads/master
i:
  356875: 4564342
v: v3
  • Loading branch information
Gleb Natapov authored and Marcelo Tosatti committed Jan 24, 2013
1 parent a94c1a4 commit 97fbeb5
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 91b0aa2ca63e60ac69c5dd96bff580d3947073d4
refs/heads/master: 378a8b099fc207ddcb91b19a8c1457667e0af398
4 changes: 3 additions & 1 deletion trunk/arch/x86/kvm/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -4489,8 +4489,10 @@ static bool emulator_get_segment(struct x86_emulate_ctxt *ctxt, u16 *selector,
kvm_get_segment(emul_to_vcpu(ctxt), &var, seg);
*selector = var.selector;

if (var.unusable)
if (var.unusable) {
memset(desc, 0, sizeof(*desc));
return false;
}

if (var.g)
var.limit >>= 12;
Expand Down

0 comments on commit 97fbeb5

Please sign in to comment.