lkml.org 
[lkml]   [2009]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 60/88] KVM: SVM: Set the busy flag of the TR selector

    2.6.28-stable review patch. If anyone has any objections, please let us know.

    ------------------

    From: Amit Shah <amit.shah@redhat.com>

    (cherry picked from c0d09828c870f90c6bc72070ada281568f89c63b)

    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>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
    ---
    arch/x86/kvm/svm.c | 7 +++++++
    1 file changed, 7 insertions(+)

    --- a/arch/x86/kvm/svm.c
    +++ b/arch/x86/kvm/svm.c
    @@ -781,6 +781,13 @@ static void svm_get_segment(struct kvm_v
    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;
    }




    \
     
     \ /
      Last update: 2009-04-30 19:37    [W:0.021 / U:119.160 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site