]> git.karo-electronics.de Git - karo-tx-linux.git/commit
KVM: VMX: Fix a wrong usage of vmcs_config
authorSheng Yang <sheng.yang@intel.com>
Wed, 23 Jul 2008 08:43:37 +0000 (11:43 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Aug 2008 19:42:58 +0000 (12:42 -0700)
commit82506d9bdf48fd15af526cc5c5518d9a1cda117e
treeb58289c41f586ba1673517ac87ce823e24125582
parentc7cc70b61a1cabaf4c51b0324638042f706665d6
KVM: VMX: Fix a wrong usage of vmcs_config

Original-Commit-Hash: 406046a9638a455876b030853862e576a4378d29

The function ept_update_paging_mode_cr0() write to
CPU_BASED_VM_EXEC_CONTROL based on vmcs_config.cpu_based_exec_ctrl. That's
wrong because the variable may not consistent with the content in the
CPU_BASE_VM_EXEC_CONTROL MSR.

Signed-off-by: Sheng Yang <sheng.yang@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/vmx.c