diff options
author | Glauber de Oliveira Costa <gcosta@redhat.com> | 2007-08-15 05:36:45 +0300 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-08-15 05:36:45 +0300 |
commit | 83aecfbf44f3ba92abde47957a3c9175f1ec7165 (patch) | |
tree | 088df924a21b01acc500df227eb937f211921a90 | |
parent | b517a860ccc6d2042dbbf4f686cfee04cb30aab9 (diff) |
KVM: VMX: Don't require cr8 load/store exit capability when running on 32-bitkvm-35
This is because cr8 is not available on IA-32. It is just used in 64-bit mode.
The rdmsr will then report this as not present, and it will lead us to return
an -EIO.
Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
-rw-r--r-- | drivers/kvm/vmx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c index 4901339de93c..906d4fa13d10 100644 --- a/drivers/kvm/vmx.c +++ b/drivers/kvm/vmx.c @@ -864,8 +864,10 @@ static __init int setup_vmcs_config(struct vmcs_config *vmcs_conf) return -EIO; min = CPU_BASED_HLT_EXITING | +#ifdef CONFIG_X86_64 CPU_BASED_CR8_LOAD_EXITING | CPU_BASED_CR8_STORE_EXITING | +#endif CPU_BASED_USE_IO_BITMAPS | CPU_BASED_MOV_DR_EXITING | CPU_BASED_USE_TSC_OFFSETING; |