Re: [PATCH] KVM: x86: Ensure deadline timer has truly expired before posting its IRQ

2021-03-11 Thread Wanpeng Li
On Fri, 5 Mar 2021 at 10:19, Sean Christopherson wrote: > > When posting a deadline timer interrupt, open code the checks guarding > __kvm_wait_lapic_expire() in order to skip the lapic_timer_int_injected() > check in kvm_wait_lapic_expire(). The injection check will always fail > since the

Re: [PATCH] KVM: x86: Ensure deadline timer has truly expired before posting its IRQ

2021-03-05 Thread Paolo Bonzini
On 05/03/21 03:18, Sean Christopherson wrote: When posting a deadline timer interrupt, open code the checks guarding __kvm_wait_lapic_expire() in order to skip the lapic_timer_int_injected() check in kvm_wait_lapic_expire(). The injection check will always fail since the interrupt has not yet

[PATCH] KVM: x86: Ensure deadline timer has truly expired before posting its IRQ

2021-03-04 Thread Sean Christopherson
When posting a deadline timer interrupt, open code the checks guarding __kvm_wait_lapic_expire() in order to skip the lapic_timer_int_injected() check in kvm_wait_lapic_expire(). The injection check will always fail since the interrupt has not yet be injected. Moving the call after injection