public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* RE: Event channels in KVM?
@ 2009-04-28 16:39 Kapadia, Vivek
  2009-04-28 16:59 ` Anthony Liguori
  0 siblings, 1 reply; 12+ messages in thread
From: Kapadia, Vivek @ 2009-04-28 16:39 UTC (permalink / raw)
  To: kvm@vger.kernel.org

I came across this thread looking for an efficient event channel mechanism between two guests (running on different cpu cores).

While I can use available emulated IO mechanism (guest1->host kernel driver->Qemu1->Qemu2) in conjunction with interrupt mechanism (Qemu2->host kernel driver->guest2) in KVM, this involves several context switches. Xen handles notifications in hypervisor via hypercall and hence is likely more efficient.

Is there a way I can perform direct notification (guest1->host kernel driver->guest2) in kvm?

Thanks,
Vivek.


Matt Anger wrote:
> I was referring to the bounce from host kernel to qemu
> and then back
> to the host kernel for my BE driver.
> Xen:
> guest -> guest kernel driver-> host kernel driver
>
> For both situations I need a FE and BE driver, but for
> KVM I need to modify QEMU and teach it how to pass the
> virtio calls to my Host
> driver. In Xen BE driver and Host driver are the same and
> I don't have
> to recompile any part of Xen.
>
You can implement (host) kernel level device model too which will have
same result with Xen, i.e. skip Qemu.
I don't think Xen & KVM has fundamental difference here, but different
implementation style. Xen implement BE driver in driver domain kernel,
but KVM like to implement in user level host process. Different people
has different favorite, I am neutral actually :)

Thx, eddie
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html <http://vger.kernel.org/majordomo-info.html>




^ permalink raw reply	[flat|nested] 12+ messages in thread
* Event channels in KVM?
@ 2008-09-19 17:16 Matt Anger
  2008-09-19 18:31 ` Anthony Liguori
  0 siblings, 1 reply; 12+ messages in thread
From: Matt Anger @ 2008-09-19 17:16 UTC (permalink / raw)
  To: kvm

Does KVM have any interface similar to event-channels like Xen does?
Basically a way to send notifications between the host and guest.

Thanks,
-Matt

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

end of thread, other threads:[~2009-04-30  9:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-28 16:39 Event channels in KVM? Kapadia, Vivek
2009-04-28 16:59 ` Anthony Liguori
2009-04-30  9:04   ` Avi Kivity
  -- strict thread matches above, loose matches on Subject: below --
2008-09-19 17:16 Matt Anger
2008-09-19 18:31 ` Anthony Liguori
2008-09-19 19:10   ` Javier Guerra
2008-09-19 19:14     ` Anthony Liguori
2008-09-22 23:50       ` Matt Anger
2008-09-23  0:30         ` Dong, Eddie
2008-09-23  0:36           ` Matt Anger
2008-09-23  1:36             ` Dong, Eddie
2008-09-23  7:26         ` Avi Kivity

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