aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/lguest/core.c
diff options
context:
space:
mode:
authorGlauber de Oliveira Costa <gcosta@redhat.com>2008-01-07 08:05:36 -0500
committerRusty Russell <rusty@rustcorp.com.au>2008-01-30 06:50:13 -0500
commit5e232f4f428c4266ba5cdae9f23ba19a0913dcf9 (patch)
tree591e21cb88959373e495eac7eb8ee2c2865771ae /drivers/lguest/core.c
parent4665ac8e28c30c2a015c617c55783c0bf3a49c05 (diff)
lguest: make pending notifications per-vcpu
this patch makes the pending_notify field, used to control pending notifications, per-vcpu, instead of per-guest Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/lguest/core.c')
-rw-r--r--drivers/lguest/core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/lguest/core.c b/drivers/lguest/core.c
index 66c3d3b17fe4..6023872e32d0 100644
--- a/drivers/lguest/core.c
+++ b/drivers/lguest/core.c
@@ -186,10 +186,10 @@ int run_guest(struct lg_cpu *cpu, unsigned long __user *user)
186 186
187 /* It's possible the Guest did a NOTIFY hypercall to the 187 /* It's possible the Guest did a NOTIFY hypercall to the
188 * Launcher, in which case we return from the read() now. */ 188 * Launcher, in which case we return from the read() now. */
189 if (lg->pending_notify) { 189 if (cpu->pending_notify) {
190 if (put_user(lg->pending_notify, user)) 190 if (put_user(cpu->pending_notify, user))
191 return -EFAULT; 191 return -EFAULT;
192 return sizeof(lg->pending_notify); 192 return sizeof(cpu->pending_notify);
193 } 193 }
194 194
195 /* Check for signals */ 195 /* Check for signals */