Re: [patch 2/3] KVM: x86: add option to advance tscdeadline hrtimer expiration

Paolo Bonzini
2014-12-16T15:18:24Z

On 16/12/2014 16:13, Marcelo Tosatti wrote:
>> > So perhaps you can get rid of patch 1 and check
>> > kvm_apic_vid_enabled(vcpu->kvm):
>> >
>> > if (k_a_v_e(vcpu->kvm)
>> > return true;
>> > if (apic_test_vector(vec, apic->regs + APIC_ISR))
>> > return true;
>> >
>> > Does this sound correct?
> * expired_tscdeadline != 0.
> * APIC timer interrupt delivery masked at LVTT register.
>
> Implies expired_tscdeadline != 0 and interrupt not injected.

Good point.

Paolo