mirror of https://gitee.com/openkylin/linux.git
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)
|
static inline int vm_need_virtualize_apic_accesses(struct kvm *kvm)
|
||||||
{
|
{
|
||||||
return flexpriority_enabled &&
|
return flexpriority_enabled && irqchip_in_kernel(kvm);
|
||||||
(cpu_has_vmx_virtualize_apic_accesses()) &&
|
|
||||||
(irqchip_in_kernel(kvm));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int cpu_has_vmx_vpid(void)
|
static inline int cpu_has_vmx_vpid(void)
|
||||||
|
|
Loading…
Reference in New Issue