aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/vmx.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r--arch/x86/kvm/vmx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index fc494aff5d8b..d1167fc303d6 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -192,7 +192,7 @@ static inline int cpu_has_secondary_exec_ctrls(void)
192 CPU_BASED_ACTIVATE_SECONDARY_CONTROLS); 192 CPU_BASED_ACTIVATE_SECONDARY_CONTROLS);
193} 193}
194 194
195static inline int cpu_has_vmx_virtualize_apic_accesses(void) 195static inline bool cpu_has_vmx_virtualize_apic_accesses(void)
196{ 196{
197 return (vmcs_config.cpu_based_2nd_exec_ctrl & 197 return (vmcs_config.cpu_based_2nd_exec_ctrl &
198 SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES); 198 SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES);
@@ -2565,6 +2565,7 @@ static struct kvm_x86_ops vmx_x86_ops = {
2565 .check_processor_compatibility = vmx_check_processor_compat, 2565 .check_processor_compatibility = vmx_check_processor_compat,
2566 .hardware_enable = hardware_enable, 2566 .hardware_enable = hardware_enable,
2567 .hardware_disable = hardware_disable, 2567 .hardware_disable = hardware_disable,
2568 .cpu_has_accelerated_tpr = cpu_has_vmx_virtualize_apic_accesses,
2568 2569
2569 .vcpu_create = vmx_create_vcpu, 2570 .vcpu_create = vmx_create_vcpu,
2570 .vcpu_free = vmx_free_vcpu, 2571 .vcpu_free = vmx_free_vcpu,