]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/lguest/core.c
PCI: pcie, aer: rework MASK macros in aerdrv_errprint.c
[mirror_ubuntu-bionic-kernel.git] / drivers / lguest / core.c
index cd058bc903ff28e02ca87c9a0c00d043c587a4df..1e2cb846b3c9d7b593d3dd6e5b588a1f3f227991 100644 (file)
@@ -217,10 +217,15 @@ int run_guest(struct lg_cpu *cpu, unsigned long __user *user)
 
                /*
                 * It's possible the Guest did a NOTIFY hypercall to the
-                * Launcher, in which case we return from the read() now.
+                * Launcher.
                 */
                if (cpu->pending_notify) {
+                       /*
+                        * 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 Laucher. */
                                if (put_user(cpu->pending_notify, user))
                                        return -EFAULT;
                                return sizeof(cpu->pending_notify);