mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-07 04:09:21 +00:00
KVM: SVM: Set the 'busy' flag of the TR selector
The busy flag of the TR selector is not set by the hardware. This breaks migration from amd hosts to intel hosts. Signed-off-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
25022acc3d
commit
c0d09828c8
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue