Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146574
b: refs/heads/master
c: b586eb0
h: refs/heads/master
v: v3
  • Loading branch information
Andre Przywara authored and Avi Kivity committed Jun 10, 2009
1 parent b87e834 commit 45c3da0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9b5843ddd20557b77c73ddbcc814a8c816bf3d3a
refs/heads/master: b586eb0253083795e58dcbe76665410d4676dc08
9 changes: 9 additions & 0 deletions trunk/arch/x86/kvm/svm.c
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,15 @@ static void svm_get_segment(struct kvm_vcpu *vcpu,
if (!var->unusable)
var->type |= 0x1;
break;
case VCPU_SREG_SS:
/* On AMD CPUs sometimes the DB bit in the segment
* descriptor is left as 1, although the whole segment has
* been made unusable. Clear it here to pass an Intel VMX
* entry check when cross vendor migrating.
*/
if (var->unusable)
var->db = 0;
break;
}
}

Expand Down

0 comments on commit 45c3da0

Please sign in to comment.