lguest: make pending notifications per-vcpu
[deliverable/linux.git] / drivers / lguest / lguest_user.c
index 980b3550db7fabe59d632be3f74ca86031c108d2..f4f6df85bece872264092040dcebf8e0a974939b 100644 (file)
@@ -89,8 +89,8 @@ static ssize_t read(struct file *file, char __user *user, size_t size,loff_t*o)
 
        /* If we returned from read() last time because the Guest notified,
         * clear the flag. */
-       if (lg->pending_notify)
-               lg->pending_notify = 0;
+       if (cpu->pending_notify)
+               cpu->pending_notify = 0;
 
        /* Run the Guest until something interesting happens. */
        return run_guest(cpu, (unsigned long __user *)user);
This page took 0.027182 seconds and 5 git commands to generate.