Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190079
b: refs/heads/master
c: e8861cf
h: refs/heads/master
i:
  190077: 6a52151
  190075: 4b528df
  190071: d0bfe15
  190063: 7d2b9c3
  190047: cc03d13
  190015: 26aae71
  189951: 771820f
v: v3
  • Loading branch information
Jan Kiszka authored and Avi Kivity committed Apr 21, 2010
1 parent cfb09ac commit 4414ed3
Show file tree
Hide file tree
Showing 2 changed files with 6 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: eda2beda835697878e309b6049aa0a3bad051590
refs/heads/master: e8861cfe2c75bdce36655b64d7ce02c2b31b604d
6 changes: 5 additions & 1 deletion trunk/arch/x86/kvm/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -5126,6 +5126,7 @@ int kvm_task_switch(struct kvm_vcpu *vcpu, u16 tss_selector, int reason)
int ret = 0;
u32 old_tss_base = get_segment_base(vcpu, VCPU_SREG_TR);
u16 old_tss_sel = get_segment_selector(vcpu, VCPU_SREG_TR);
u32 desc_limit;

old_tss_base = kvm_mmu_gva_to_gpa_write(vcpu, old_tss_base, NULL);

Expand All @@ -5148,7 +5149,10 @@ int kvm_task_switch(struct kvm_vcpu *vcpu, u16 tss_selector, int reason)
}
}

if (!nseg_desc.p || get_desc_limit(&nseg_desc) < 0x67) {
desc_limit = get_desc_limit(&nseg_desc);
if (!nseg_desc.p ||
((desc_limit < 0x67 && (nseg_desc.type & 8)) ||
desc_limit < 0x2b)) {
kvm_queue_exception_e(vcpu, TS_VECTOR, tss_selector & 0xfffc);
return 1;
}
Expand Down

0 comments on commit 4414ed3

Please sign in to comment.