aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/lguest/core.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2015-02-10 23:58:01 -0500
committerRusty Russell <rusty@rustcorp.com.au>2015-02-11 01:17:46 -0500
commitd9bab50aa46ce46dd4537d455eb13b200cdac516 (patch)
treeefa139a078f1842b1388e54daa67896734e64a0b /drivers/lguest/core.c
parent00f8d546512a7661d43600625f87a42a98cae26a (diff)
lguest: remove NOTIFY call and eventfd facility.
Disappointing, as this was kind of neat (especially getting to use RCU to manage the address -> eventfd mapping). But now the devices are PCI handled in userspace, we get rid of both the NOTIFY hypercall and the interface to connect an eventfd. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/lguest/core.c')
-rw-r--r--drivers/lguest/core.c20
1 files changed, 5 insertions, 15 deletions
diff --git a/drivers/lguest/core.c b/drivers/lguest/core.c
index 9159dbc583f6..7dc93aa004c8 100644
--- a/drivers/lguest/core.c
+++ b/drivers/lguest/core.c
@@ -225,22 +225,12 @@ int run_guest(struct lg_cpu *cpu, unsigned long __user *user)
225 if (cpu->hcall) 225 if (cpu->hcall)
226 do_hypercalls(cpu); 226 do_hypercalls(cpu);
227 227
228 /* 228 /* Do we have to tell the Launcher about a trap? */
229 * It's possible the Guest did a NOTIFY hypercall to the
230 * Launcher.
231 */
232 if (cpu->pending.trap) { 229 if (cpu->pending.trap) {
233 /* 230 if (copy_to_user(user, &cpu->pending,
234 * Does it just needs to write to a registered 231 sizeof(cpu->pending)))
235 * eventfd (ie. the appropriate virtqueue thread)? 232 return -EFAULT;
236 */ 233 return sizeof(cpu->pending);
237 if (!send_notify_to_eventfd(cpu)) {
238 /* OK, we tell the main Launcher. */
239 if (copy_to_user(user, &cpu->pending,
240 sizeof(cpu->pending)))
241 return -EFAULT;
242 return sizeof(cpu->pending);
243 }
244 } 234 }
245 235
246 /* 236 /*