Skip to content

Commit

Permalink
KVM: VMX: Drop unneeded CONFIG_X86_LOCAL_APIC check
Browse files Browse the repository at this point in the history
CONFIG_X86_LOCAL_APIC is always on when CONFIG_KVM (on x86) since
commit e42eef4 ("KVM: add X86_LOCAL_APIC dependency").

Suggested-by: Sean Christopherson <[email protected]>
Signed-off-by: Vitaly Kuznetsov <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Reviewed-by: Sean Christopherson <[email protected]>
  • Loading branch information
vittyvk authored and bonzini committed May 24, 2021
1 parent 778a136 commit 377872b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/x86/kvm/vmx/capabilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ static inline bool cpu_has_vmx_preemption_timer(void)

static inline bool cpu_has_vmx_posted_intr(void)
{
return IS_ENABLED(CONFIG_X86_LOCAL_APIC) &&
vmcs_config.pin_based_exec_ctrl & PIN_BASED_POSTED_INTR;
return vmcs_config.pin_based_exec_ctrl & PIN_BASED_POSTED_INTR;
}

static inline bool cpu_has_load_ia32_efer(void)
Expand Down

0 comments on commit 377872b

Please sign in to comment.