* Migration assigned device interrupts
@ 2009-10-01 14:50 Avi Kivity
0 siblings, 0 replies; only message in thread
From: Avi Kivity @ 2009-10-01 14:50 UTC (permalink / raw)
To: Yang, Sheng, Chris Wright; +Cc: kvm-devel
It occurs to me that we're handling assigned device interrupts
inefficiently: an interrupt is received on cpu A, injected, and wakes up
(or forces out of guest mode) a vcpu on cpu B. This involved an IPI and
bothers two cpus instead of one.
But we often known which vcpu will be woken up (DM_FIXED interupts) and
which cpu it runs on (vcpu->cpu, preempt notifiers) so we can migrate
the host interrupt to follow the vcpu it wakes. This should improve
latency and cpu utilization.
I'm not sure how to do this generically (with irqfd), so vhost-net can
benefit from it as well - migrate the vhost threads and the interrupts
that feed them too.
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-10-01 14:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-01 14:50 Migration assigned device interrupts 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).