lkml.org 
[lkml]   [2019]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2 2/3] KVM: LAPIC: lapic timer interrupt is injected by posted interrupt
From
Date
On 06/06/19 07:31, Wanpeng Li wrote:
> +static inline bool can_posted_interrupt_inject_timer(struct kvm_vcpu *vcpu)
> +{
> + return posted_interrupt_inject_timer_enabled(vcpu) &&
> + !vcpu_halt_in_guest(vcpu);
> +}
> +

I agree with Radim, what you want here is just use kvm_hlt_in_guest.

I'll post shortly a prerequisite patch to block APF artificial halt when
kvm_hlt_in_guest is true.

Paolo

\
 
 \ /
  Last update: 2019-06-11 13:41    [W:0.094 / U:27.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site