summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorWincy Van <fanwenyi0529@gmail.com>2015-03-04 14:31:56 +0800
committerMarcelo Tosatti <mtosatti@redhat.com>2015-03-13 09:24:51 -0300
commit670125bda1d86edfadf81dc56a87582ac7fbd47b (patch)
tree3aa81d60a6db3effc49ca1a890aa50e071af21e4 /virt
parentc1a6bff28cbff796bf6e7db5cf42ec9244911be2 (diff)
downloadlinux-670125bda1d86edfadf81dc56a87582ac7fbd47b.tar.gz
linux-670125bda1d86edfadf81dc56a87582ac7fbd47b.tar.bz2
linux-670125bda1d86edfadf81dc56a87582ac7fbd47b.zip
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>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions