Re: [PATCH v3 00/17] KVM: Add Xen event channel acceleration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/8/22 18:20, David Woodhouse wrote:
Yes, I'm just talking about the second hunk.  The first is clear(ish).
Oh, I see.

When the oneshot timer has expired and hasn't been re-armed by the
guest, we should return zero as 'expires_ns' so that it doesn't get re-
armed in the past (and, hopefully, immediately retriggered) when the
guest is restored.

Also, we don't really want the timer firing*after*  the guest vCPU
state has been serialized, since the newly-injected interrupt might not
get migrated. Hence using hrtimer_cancel() as our check for whether
it's still pending or not.


I think the two are different. The first is also clear, and that should be fixed with a separate bool or possibly a special meaning for expires_ns == -1 (or INT64_MAX, I don't speak Xen hypercalls :)).

The second should not be a problem. The newly-injected interrupt might not get migrated, but it will be injected on the destination. So it shouldn't be a problem, in fact anything that relies on that is probably going to be racy.

Paolo




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux