From f781366a1ab9461055dca4ad5c4790e311925863 Mon Sep 17 00:00:00 2001 From: Amit Shah Date: Mon, 27 Oct 2008 09:04:18 +0000 Subject: [PATCH] --- yaml --- r: 125199 b: refs/heads/master c: c0d09828c870f90c6bc72070ada281568f89c63b h: refs/heads/master i: 125197: fd6eb457624c5240a2abdd119ffc7c93dae640a7 125195: 4715c574d2df280d9fab7310084ae6a1fef55386 125191: ba9495c6fa52b4920b05818967d7aa9b59b54e7a 125183: eed11721a1edf1c9c71ceddf96179b16c153de97 v: v3 --- [refs] | 2 +- trunk/arch/x86/kvm/svm.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 674fea1c7f6c..e6fd6bd21122 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 25022acc3dd5f0b54071c7ba7c371860f2971b52 +refs/heads/master: c0d09828c870f90c6bc72070ada281568f89c63b diff --git a/trunk/arch/x86/kvm/svm.c b/trunk/arch/x86/kvm/svm.c index 665008d97856..743aebd7bfcc 100644 --- a/trunk/arch/x86/kvm/svm.c +++ b/trunk/arch/x86/kvm/svm.c @@ -781,6 +781,13 @@ static void svm_get_segment(struct kvm_vcpu *vcpu, if (seg == VCPU_SREG_CS) var->g = s->limit > 0xfffff; + /* + * Work around a bug where the busy flag in the tr selector + * isn't exposed + */ + if (seg == VCPU_SREG_TR) + var->type |= 0x2; + var->unusable = !var->present; }