lguest: make pending notifications per-vcpu
[deliverable/linux.git] / drivers / lguest / core.c
index 66c3d3b17fe4449a8d5068b47c49634dd06f0a6b..6023872e32d0472ffb8e59660be3985b46d9da8a 100644 (file)
@@ -186,10 +186,10 @@ 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. */
-               if (lg->pending_notify) {
-                       if (put_user(lg->pending_notify, user))
+               if (cpu->pending_notify) {
+                       if (put_user(cpu->pending_notify, user))
                                return -EFAULT;
-                       return sizeof(lg->pending_notify);
+                       return sizeof(cpu->pending_notify);
                }
 
                /* Check for signals */
This page took 0.024729 seconds and 5 git commands to generate.