diff options
author | Glauber de Oliveira Costa <gcosta@redhat.com> | 2008-01-07 08:05:27 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-01-30 06:50:08 -0500 |
commit | 73044f05a4ac65f2df42753e9566444b9d2a660f (patch) | |
tree | 80a3e1d1bda31a769554a8c51f8c189ccec0b9f8 /drivers/lguest/core.c | |
parent | 7ea07a1500f05e06ebf0136763c781244f77a2a1 (diff) |
lguest: make hypercalls use the vcpu struct
this patch changes do_hcall() and do_async_hcall() interfaces (and obviously their
callers) to get a vcpu struct. Again, a vcpu services the hypercall, not the whole
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.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/lguest/core.c b/drivers/lguest/core.c index 75b38f2c778a..0ea67cb0cc0b 100644 --- a/drivers/lguest/core.c +++ b/drivers/lguest/core.c | |||
@@ -181,8 +181,8 @@ int run_guest(struct lg_cpu *cpu, unsigned long __user *user) | |||
181 | /* We stop running once the Guest is dead. */ | 181 | /* We stop running once the Guest is dead. */ |
182 | while (!lg->dead) { | 182 | while (!lg->dead) { |
183 | /* First we run any hypercalls the Guest wants done. */ | 183 | /* First we run any hypercalls the Guest wants done. */ |
184 | if (lg->hcall) | 184 | if (cpu->hcall) |
185 | do_hypercalls(lg); | 185 | do_hypercalls(cpu); |
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. */ |
@@ -234,7 +234,7 @@ int run_guest(struct lg_cpu *cpu, unsigned long __user *user) | |||
234 | local_irq_enable(); | 234 | local_irq_enable(); |
235 | 235 | ||
236 | /* Now we deal with whatever happened to the Guest. */ | 236 | /* Now we deal with whatever happened to the Guest. */ |
237 | lguest_arch_handle_trap(lg); | 237 | lguest_arch_handle_trap(cpu); |
238 | } | 238 | } |
239 | 239 | ||
240 | if (lg->dead == ERR_PTR(-ERESTART)) | 240 | if (lg->dead == ERR_PTR(-ERESTART)) |