• Avi Kivity's avatar
    KVM: VMX: Fix host msr corruption with preemption enabled · a9b21b62
    Avi Kivity authored
    Switching msrs can occur either synchronously as a result of calls to
    the msr management functions (usually in response to the guest touching
    virtualized msrs), or asynchronously when preempting a kvm thread that has
    guest state loaded.  If we're unlucky enough to have the two at the same
    time, host msrs are corrupted and the machine goes kaput on the next syscall.
    
    Most easily triggered by Windows Server 2008, as it does a lot of msr
    switching during bootup.
    Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
    a9b21b62
vmx.c 81.7 KB