KVM: VMX: Improve the method of writing vmcs control
authorYang, Sheng <sheng.yang@intel.com>
Sun, 29 Jul 2007 08:07:42 +0000 (11:07 +0300)
committerAvi Kivity <avi@qumranet.com>
Sat, 13 Oct 2007 08:18:20 +0000 (10:18 +0200)
commit1c3d14fe0ab75337a3f6c06b6bc18bcbc2b3d0bc
treef3d2533b5250e8405af14f99c2810bb3ead1a06c
parentfb3f0f51d92d1496f9628ca6f0fb06a48dc9ed2a
KVM: VMX: Improve the method of writing vmcs control

Put cpu feature detecting part in hardware_setup, and stored the vmcs
condition in global variable for further check.

[glommer: fix for some i386-only machines not supporting CR8 load/store
 exiting]

Signed-off-by: Sheng Yang <sheng.yang@intel.com>
Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/vmx.c