• G
    KVM: VMX: Initialize vm86 TSS only once. · 93ea5388
    Gleb Natapov 提交于
    Currently vm86 task is initialized on each real mode entry and vcpu
    reset. Initialization is done by zeroing TSS and updating relevant
    fields. But since all vcpus are using the same TSS there is a race where
    one vcpu may use TSS while other vcpu is initializing it, so the vcpu
    that uses TSS will see wrong TSS content and will behave incorrectly.
    Fix that by initializing TSS only once.
    Signed-off-by: NGleb Natapov <gleb@redhat.com>
    Signed-off-by: NAvi Kivity <avi@redhat.com>
    93ea5388
vmx.c 116.0 KB