mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-18 06:50:08 +00:00
KVM: VMX: Remove redundant check in vm_need_virtualize_apic_accesses()
flexpriority_enabled implies cpu_has_vmx_virtualize_apic_accesses() returning true, so we don't need this check here. Signed-off-by: Gui Jianfeng <guijianfeng@cn.fujitsu.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
This commit is contained in:
parent
59200273c4
commit
6d3e435e70
@ -358,9 +358,7 @@ static inline int cpu_has_vmx_ple(void)
|
||||
|
||||
static inline int vm_need_virtualize_apic_accesses(struct kvm *kvm)
|
||||
{
|
||||
return flexpriority_enabled &&
|
||||
(cpu_has_vmx_virtualize_apic_accesses()) &&
|
||||
(irqchip_in_kernel(kvm));
|
||||
return flexpriority_enabled && irqchip_in_kernel(kvm);
|
||||
}
|
||||
|
||||
static inline int cpu_has_vmx_vpid(void)
|
||||
|
Loading…
Reference in New Issue
Block a user