diff options
author | Glauber de Oliveira Costa <gcosta@redhat.com> | 2008-01-07 08:05:25 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-01-30 06:50:06 -0500 |
commit | d0953d42c3445a120299fac9ad70e672d77898e9 (patch) | |
tree | a631abb2c154bec66cec05508423da705d02f35b /drivers/lguest/lg.h | |
parent | 4dcc53da49c2387078fe8ceb7a420d125e027fc6 (diff) |
lguest: per-cpu run guest
This patch makes the run_guest() routine use the lg_cpu struct.
This is required since in a smp guest environment, there's no
more the notion of "running the guest", but rather, it is "running the vcpu"
Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/lguest/lg.h')
-rw-r--r-- | drivers/lguest/lg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/lguest/lg.h b/drivers/lguest/lg.h index 5f73ddff0e3d..bfca2716ad11 100644 --- a/drivers/lguest/lg.h +++ b/drivers/lguest/lg.h | |||
@@ -126,7 +126,7 @@ void __lgwrite(struct lguest *, unsigned long, const void *, unsigned); | |||
126 | } while(0) | 126 | } while(0) |
127 | /* (end of memory access helper routines) :*/ | 127 | /* (end of memory access helper routines) :*/ |
128 | 128 | ||
129 | int run_guest(struct lguest *lg, unsigned long __user *user); | 129 | int run_guest(struct lg_cpu *cpu, unsigned long __user *user); |
130 | 130 | ||
131 | /* Helper macros to obtain the first 12 or the last 20 bits, this is only the | 131 | /* Helper macros to obtain the first 12 or the last 20 bits, this is only the |
132 | * first step in the migration to the kernel types. pte_pfn is already defined | 132 | * first step in the migration to the kernel types. pte_pfn is already defined |
@@ -177,7 +177,7 @@ void page_table_guest_data_init(struct lguest *lg); | |||
177 | /* <arch>/core.c: */ | 177 | /* <arch>/core.c: */ |
178 | void lguest_arch_host_init(void); | 178 | void lguest_arch_host_init(void); |
179 | void lguest_arch_host_fini(void); | 179 | void lguest_arch_host_fini(void); |
180 | void lguest_arch_run_guest(struct lguest *lg); | 180 | void lguest_arch_run_guest(struct lg_cpu *cpu); |
181 | void lguest_arch_handle_trap(struct lguest *lg); | 181 | void lguest_arch_handle_trap(struct lguest *lg); |
182 | int lguest_arch_init_hypercalls(struct lguest *lg); | 182 | int lguest_arch_init_hypercalls(struct lguest *lg); |
183 | int lguest_arch_do_hcall(struct lguest *lg, struct hcall_args *args); | 183 | int lguest_arch_do_hcall(struct lguest *lg, struct hcall_args *args); |