diff options
author | Glauber de Oliveira Costa <gcosta@redhat.com> | 2008-01-07 08:05:34 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-01-30 06:50:12 -0500 |
commit | 66686c2ab08feb721ca4d98285fba64acdf6017f (patch) | |
tree | bae76c0e0dc78809abc83b8f0dc9f84dca702de0 /drivers/lguest/core.c | |
parent | fc708b3e407dfd2e12ba9a6cf35bd0bffad1796d (diff) |
lguest: per-vcpu lguest task management
lguest uses tasks to control its running behaviour (like sending
breaks, controlling halted state, etc). In a per-vcpu environment,
each vcpu will have its own underlying task. So this patch
makes the infrastructure for that possible
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/lguest/core.c b/drivers/lguest/core.c index d8e1ac305dc6..66c3d3b17fe4 100644 --- a/drivers/lguest/core.c +++ b/drivers/lguest/core.c | |||
@@ -197,7 +197,7 @@ int run_guest(struct lg_cpu *cpu, unsigned long __user *user) | |||
197 | return -ERESTARTSYS; | 197 | return -ERESTARTSYS; |
198 | 198 | ||
199 | /* If Waker set break_out, return to Launcher. */ | 199 | /* If Waker set break_out, return to Launcher. */ |
200 | if (lg->break_out) | 200 | if (cpu->break_out) |
201 | return -EAGAIN; | 201 | return -EAGAIN; |
202 | 202 | ||
203 | /* Check if there are any interrupts which can be delivered | 203 | /* Check if there are any interrupts which can be delivered |
@@ -217,7 +217,7 @@ int run_guest(struct lg_cpu *cpu, unsigned long __user *user) | |||
217 | 217 | ||
218 | /* If the Guest asked to be stopped, we sleep. The Guest's | 218 | /* If the Guest asked to be stopped, we sleep. The Guest's |
219 | * clock timer or LHCALL_BREAK from the Waker will wake us. */ | 219 | * clock timer or LHCALL_BREAK from the Waker will wake us. */ |
220 | if (lg->halted) { | 220 | if (cpu->halted) { |
221 | set_current_state(TASK_INTERRUPTIBLE); | 221 | set_current_state(TASK_INTERRUPTIBLE); |
222 | schedule(); | 222 | schedule(); |
223 | continue; | 223 | continue; |