aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kvm/svm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index 665008d97856..743aebd7bfcc 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -781,6 +781,13 @@ static void svm_get_segment(struct kvm_vcpu *vcpu,
781 if (seg == VCPU_SREG_CS) 781 if (seg == VCPU_SREG_CS)
782 var->g = s->limit > 0xfffff; 782 var->g = s->limit > 0xfffff;
783 783
784 /*
785 * Work around a bug where the busy flag in the tr selector
786 * isn't exposed
787 */
788 if (seg == VCPU_SREG_TR)
789 var->type |= 0x2;
790
784 var->unusable = !var->present; 791 var->unusable = !var->present;
785} 792}
786 793