lkml.org 
[lkml]   [2018]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] X86/VMX: Disable VMX preempition timer if MWAIT is not intercepted
From
Date
On 10/04/2018 10:50, KarimAllah Ahmed wrote:
> WARN_ON(preemptible());
> - if (!kvm_x86_ops->set_hv_timer)
> + if (!kvm_x86_ops->has_hv_timer ||
> + !kvm_x86_ops->has_hv_timer(apic->vcpu))
> return false;
>
> if (!apic_lvtt_period(apic) && atomic_read(&ktimer->pending))

Why not just return -ENOTSUP from vmx_set_hv_timer?

Thanks,

Paolo

\
 
 \ /
  Last update: 2018-04-10 11:04    [W:0.089 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site