aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/lguest/x86
diff options
context:
space:
mode:
authorGlauber de Oliveira Costa <gcosta@redhat.com>2008-01-07 08:05:30 -0500
committerRusty Russell <rusty@rustcorp.com.au>2008-01-30 06:50:09 -0500
commit0c78441cf4dd66f66e23dc085f0cc1e3e8669b96 (patch)
tree33216420c6300df9a345247dc6e0b669ce5b2198 /drivers/lguest/x86
parent177e449dc5bd4cf8dc48d66abee61ddf34b126b9 (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/x86')
-rw-r--r--drivers/lguest/x86/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/lguest/x86/core.c b/drivers/lguest/x86/core.c
index 66f48fcc1196..d35f6299c92f 100644
--- a/drivers/lguest/x86/core.c
+++ b/drivers/lguest/x86/core.c
@@ -91,7 +91,7 @@ static void copy_in_guest_info(struct lg_cpu *cpu, struct lguest_pages *pages)
91 pages->state.host_cr3 = __pa(current->mm->pgd); 91 pages->state.host_cr3 = __pa(current->mm->pgd);
92 /* Set up the Guest's page tables to see this CPU's pages (and no 92 /* Set up the Guest's page tables to see this CPU's pages (and no
93 * other CPU's pages). */ 93 * other CPU's pages). */
94 map_switcher_in_guest(lg, pages); 94 map_switcher_in_guest(cpu, pages);
95 /* Set up the two "TSS" members which tell the CPU what stack to use 95 /* Set up the two "TSS" members which tell the CPU what stack to use
96 * for traps which do directly into the Guest (ie. traps at privilege 96 * for traps which do directly into the Guest (ie. traps at privilege
97 * level 1). */ 97 * level 1). */