diff options
author | Glauber de Oliveira Costa <gcosta@redhat.com> | 2008-01-07 08:05:30 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-01-30 06:50:09 -0500 |
commit | 0c78441cf4dd66f66e23dc085f0cc1e3e8669b96 (patch) | |
tree | 33216420c6300df9a345247dc6e0b669ce5b2198 /drivers/lguest/lg.h | |
parent | 177e449dc5bd4cf8dc48d66abee61ddf34b126b9 (diff) |
lguest: map_switcher_in_guest() per-vcpu
The switcher needs to be mapped per-vcpu, because different vcpus
will potentially have different page tables (they don't have to,
because threads will share the same).
So our first step is the make the function receive a vcpu struct
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/lguest/lg.h b/drivers/lguest/lg.h index 29e03d588a8d..072d0d4fd0b9 100644 --- a/drivers/lguest/lg.h +++ b/drivers/lguest/lg.h | |||
@@ -168,7 +168,7 @@ void guest_pagetable_clear_all(struct lguest *lg); | |||
168 | void guest_pagetable_flush_user(struct lguest *lg); | 168 | void guest_pagetable_flush_user(struct lguest *lg); |
169 | void guest_set_pte(struct lguest *lg, unsigned long gpgdir, | 169 | void guest_set_pte(struct lguest *lg, unsigned long gpgdir, |
170 | unsigned long vaddr, pte_t val); | 170 | unsigned long vaddr, pte_t val); |
171 | void map_switcher_in_guest(struct lguest *lg, struct lguest_pages *pages); | 171 | void map_switcher_in_guest(struct lg_cpu *cpu, struct lguest_pages *pages); |
172 | int demand_page(struct lguest *info, unsigned long cr2, int errcode); | 172 | int demand_page(struct lguest *info, unsigned long cr2, int errcode); |
173 | void pin_page(struct lguest *lg, unsigned long vaddr); | 173 | void pin_page(struct lguest *lg, unsigned long vaddr); |
174 | unsigned long guest_pa(struct lguest *lg, unsigned long vaddr); | 174 | unsigned long guest_pa(struct lguest *lg, unsigned long vaddr); |