Merge tag 'platform-drivers-x86-v3.20-1' of git://git.infradead.org/users/dvhart...
[firefly-linux-kernel-4.4.55.git] / drivers / lguest / core.c
index 9159dbc583f67ea9a9fbbfa169f9918cc8259742..7dc93aa004c86cfa988993d53164ea1d665aff97 100644 (file)
@@ -225,22 +225,12 @@ int run_guest(struct lg_cpu *cpu, unsigned long __user *user)
                if (cpu->hcall)
                        do_hypercalls(cpu);
 
-               /*
-                * It's possible the Guest did a NOTIFY hypercall to the
-                * Launcher.
-                */
+               /* Do we have to tell the Launcher about a trap? */
                if (cpu->pending.trap) {
-                       /*
-                        * Does it just needs to write to a registered
-                        * eventfd (ie. the appropriate virtqueue thread)?
-                        */
-                       if (!send_notify_to_eventfd(cpu)) {
-                               /* OK, we tell the main Launcher. */
-                               if (copy_to_user(user, &cpu->pending,
-                                                sizeof(cpu->pending)))
-                                       return -EFAULT;
-                               return sizeof(cpu->pending);
-                       }
+                       if (copy_to_user(user, &cpu->pending,
+                                        sizeof(cpu->pending)))
+                               return -EFAULT;
+                       return sizeof(cpu->pending);
                }
 
                /*