diff options
author | Avi Kivity <avi@redhat.com> | 2012-03-06 12:16:33 (GMT) |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-03-08 12:11:55 (GMT) |
commit | 9ee73970c03edb68146ceb1ba2a7033c99a5e017 (patch) | |
tree | 505ca7982d04d4ba670c2c8b2bad69adc71079cb /arch/x86/kernel/head_64.S | |
parent | bec87d6e34de459a559fc326aa4e56bee4ba7423 (diff) | |
download | linux-fsl-qoriq-9ee73970c03edb68146ceb1ba2a7033c99a5e017.tar.xz |
KVM: VMX: Fix delayed load of shared MSRs
Shared MSRs (MSR_*STAR and related) are stored in both vmx->guest_msrs
and in the CPU registers, but vmx_set_msr() only updated memory. Prior
to 46199f33c2953, this didn't matter, since we called vmx_load_host_state(),
which scheduled a vmx_save_host_state(), which re-synchronized the CPU
state, but now we don't, so the CPU state will not be synchronized until
the next exit to host userspace. This mostly affects nested vmx workloads,
which play with these MSRs a lot.
Fix by loading the MSR eagerly.
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kernel/head_64.S')
0 files changed, 0 insertions, 0 deletions