public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [question] Why newer QEMU may lose irq when doing migration?
@ 2014-12-17  3:46 Wincy Van
  2014-12-17 10:46 ` Paolo Bonzini
  0 siblings, 1 reply; 5+ messages in thread
From: Wincy Van @ 2014-12-17  3:46 UTC (permalink / raw)
  To: yang.z.zhang, Paolo Bonzini, Bandan Das
  Cc: kvm, 范文一, Wanpeng Li

Hi, all:

The patchset (https://lkml.org/lkml/2014/3/18/309) fixed migration of
Windows guests, but commit 0bc830b05c667218d703f2026ec866c49df974fc
(KVM: ioapic: clear IRR for edge-triggered interrupts at delivery)
introduced a bug (see
https://www.mail-archive.com/kvm@vger.kernel.org/msg109813.html).

>From the description "Unlike the old qemu-kvm, which really never did
that, with new QEMU it is for some reason
somewhat likely to migrate a VM with a nonzero IRR in the ioapic."

Why could new QEMU do that? I can not find any codes about the "some reason"..
As we know, once a irq is set in kvm's ioapic, the ioapic will send
that irq to lapic, this is an "atomic" operation.
Then, kvm will inject them in inject_pending_event(or set rvi in
apic-v case). QEMU will also save the pending irq when doing
migration.

I can not find a point which guest could lose a irq, but this scenario
really exists.

Any ideas?


Thanks,

Wincy

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-12-22 13:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-17  3:46 [question] Why newer QEMU may lose irq when doing migration? Wincy Van
2014-12-17 10:46 ` Paolo Bonzini
2014-12-19  3:58   ` Wincy Van
2014-12-19  9:50     ` Paolo Bonzini
2014-12-22 13:55       ` Wincy Van

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox