kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How is irq delivered in kvm?
@ 2011-04-21 13:49 Nguyen Thai Ngoc Duy
  2011-04-21 14:11 ` Avi Kivity
  0 siblings, 1 reply; 4+ messages in thread
From: Nguyen Thai Ngoc Duy @ 2011-04-21 13:49 UTC (permalink / raw)
  To: kvm

Hi,

I have a specialized e1000 device driver that expects to receive a
single frame per interrupt, no more. It's by design and very hard to
change (and it does not serve IP traffic). -net socket or tap can
sometimes deliver more than one frame in a row and blow up the driver
in turn. I'd like to experiment with tap/socket to only call
qemu_send_packet..() once and leave pending frames in queue until next
time, with hope that guest will have time to process the frame.

The problem is I'm new to kvm and not sure how the main loop is run.
Will there be guest execution time between two tap/socket polls, how
long is it? Or is guest run in parallel with the event loop and
qemu_set_irq() somehow signals guest immediately?
-- 
Duy

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

end of thread, other threads:[~2011-04-21 15:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-21 13:49 How is irq delivered in kvm? Nguyen Thai Ngoc Duy
2011-04-21 14:11 ` Avi Kivity
2011-04-21 14:23   ` Nguyen Thai Ngoc Duy
2011-04-21 15:01     ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).