diff options
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r-- | arch/x86/kvm/svm.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 63503782935d..e3ea98290f9b 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c | |||
@@ -803,6 +803,15 @@ static void svm_get_segment(struct kvm_vcpu *vcpu, | |||
803 | if (!var->unusable) | 803 | if (!var->unusable) |
804 | var->type |= 0x1; | 804 | var->type |= 0x1; |
805 | break; | 805 | break; |
806 | case VCPU_SREG_SS: | ||
807 | /* On AMD CPUs sometimes the DB bit in the segment | ||
808 | * descriptor is left as 1, although the whole segment has | ||
809 | * been made unusable. Clear it here to pass an Intel VMX | ||
810 | * entry check when cross vendor migrating. | ||
811 | */ | ||
812 | if (var->unusable) | ||
813 | var->db = 0; | ||
814 | break; | ||
806 | } | 815 | } |
807 | } | 816 | } |
808 | 817 | ||