commit | 670125bda1d86edfadf81dc56a87582ac7fbd47b | [log] [tgz] |
---|---|---|
author | Wincy Van <fanwenyi0529@gmail.com> | Wed Mar 04 14:31:56 2015 +0800 |
committer | Marcelo Tosatti <mtosatti@redhat.com> | Fri Mar 13 09:24:51 2015 -0300 |
tree | 3aa81d60a6db3effc49ca1a890aa50e071af21e4 | |
parent | c1a6bff28cbff796bf6e7db5cf42ec9244911be2 [diff] |
KVM: VMX: Set msr bitmap correctly if vcpu is in guest mode In commit 3af18d9c5fe9 ("KVM: nVMX: Prepare for using hardware MSR bitmap"), we are setting MSR_BITMAP in prepare_vmcs02 if we should use hardware. This is not enough since the field will be modified by following vmx_set_efer. Fix this by setting vmx_msr_bitmap_nested in vmx_set_msr_bitmap if vcpu is in guest mode. Signed-off-by: Wincy Van <fanwenyi0529@gmail.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>