kvm: x86: vmx: reorder some msr writing
authorTiejun Chen <tiejun.chen@intel.com>
Tue, 23 Dec 2014 08:21:11 +0000 (16:21 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 27 Dec 2014 20:52:10 +0000 (21:52 +0100)
commitbaa035227b2e8b4bfba8f6176dc06c60477f1634
tree409ad6a2961ed62a79a1e329337d91e406a64d08
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672
kvm: x86: vmx: reorder some msr writing

The commit 34a1cd60d17f, "x86: vmx: move some vmx setting from
vmx_init() to hardware_setup()", tried to refactor some codes
specific to vmx hardware setting into hardware_setup(), but some
msr writing should depend on our previous setting condition like
enable_apicv, enable_ept and so on.

Reported-by: Jamie Heilman <jamie@audible.transient.net>
Tested-by: Jamie Heilman <jamie@audible.transient.net>
Signed-off-by: Tiejun Chen <tiejun.chen@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c