lguest: use eventfds for device notification
authorRusty Russell <rusty@rustcorp.com.au>
Sat, 13 Jun 2009 04:27:09 +0000 (22:27 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 12 Jun 2009 12:57:10 +0000 (22:27 +0930)
commitdf60aeef4f4fe0645d9a195a7689005520422de5
tree3cfa3c4a986436c8accd5f0a57d5a6f70f1b7965
parent5718607bb670c721f45f0dbb1cc7d6c64969aab1
lguest: use eventfds for device notification

Currently, when a Guest wants to perform I/O it calls LHCALL_NOTIFY with
an address: the main Launcher process returns with this address, and figures
out what device to run.

A far nicer model is to let processes bind an eventfd to an address: if we
find one, we simply signal the eventfd.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Davide Libenzi <davidel@xmailserver.org>
drivers/lguest/Kconfig
drivers/lguest/core.c
drivers/lguest/lg.h
drivers/lguest/lguest_user.c
include/linux/lguest_launcher.h