]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Fix host msr corruption with preemption enabled
authorAvi Kivity <avi@qumranet.com>
Tue, 24 Jun 2008 08:48:49 +0000 (11:48 +0300)
committerAvi Kivity <avi@qumranet.com>
Tue, 24 Jun 2008 09:26:17 +0000 (12:26 +0300)
commit3d08496c252b185dcde946a166c4c6cf25092f9d
treedaed282b0f588f31cb3997a16f2ad067b37fb74d
parentc64070609a98c270b5c07801c6c0a92767132192
KVM: VMX: Fix host msr corruption with preemption enabled

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: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/vmx.c