]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
KVM: VMX: Flush volatile msrs before emulating rdmsr
authorAvi Kivity <avi@redhat.com>
Sun, 15 Feb 2009 00:32:07 +0000 (02:32 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 15 Feb 2009 00:47:39 +0000 (02:47 +0200)
commit516a1a7e9dc80358030fe01aabb3bedf882db9e2
treef1bf5820a7784d2f6ca46b82aa104230df7a3e20
parent682edb4c01e690c7c7cd772dbd6f4e0fd74dc572
KVM: VMX: Flush volatile msrs before emulating rdmsr

Some msrs (notable MSR_KERNEL_GS_BASE) are held in the processor registers
and need to be flushed to the vcpu struture before they can be read.

This fixes cygwin longjmp() failure on Windows x64.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/vmx.c