diff options
author | Glauber de Oliveira Costa <gcosta@redhat.com> | 2008-01-17 16:13:26 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-01-30 06:50:16 -0500 |
commit | f34f8c5fea079065671163c37d98328cff31980b (patch) | |
tree | 73a97cb67c1450b21587cbadde7a7dad6c58d46d /drivers/lguest/lguest_user.c | |
parent | c40a9f4719d36841a2d7ff4fe866dce7bfb454b7 (diff) |
lguest: move last_pages to lg_cpu
in our new model, pages are assigned to a virtual cpu, not to a guest.
We move it to the lg_cpu structure.
Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/lguest/lguest_user.c')
-rw-r--r-- | drivers/lguest/lguest_user.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/lguest/lguest_user.c b/drivers/lguest/lguest_user.c index f4f6df85bece..a87fca678c6b 100644 --- a/drivers/lguest/lguest_user.c +++ b/drivers/lguest/lguest_user.c | |||
@@ -131,6 +131,10 @@ static int lg_cpu_start(struct lg_cpu *cpu, unsigned id, unsigned long start_ip) | |||
131 | * reference, it is destroyed before close() is called. */ | 131 | * reference, it is destroyed before close() is called. */ |
132 | cpu->mm = get_task_mm(cpu->tsk); | 132 | cpu->mm = get_task_mm(cpu->tsk); |
133 | 133 | ||
134 | /* We remember which CPU's pages this Guest used last, for optimization | ||
135 | * when the same Guest runs on the same CPU twice. */ | ||
136 | cpu->last_pages = NULL; | ||
137 | |||
134 | return 0; | 138 | return 0; |
135 | } | 139 | } |
136 | 140 | ||
@@ -192,10 +196,6 @@ static int initialize(struct file *file, const unsigned long __user *input) | |||
192 | if (err) | 196 | if (err) |
193 | goto free_regs; | 197 | goto free_regs; |
194 | 198 | ||
195 | /* We remember which CPU's pages this Guest used last, for optimization | ||
196 | * when the same Guest runs on the same CPU twice. */ | ||
197 | lg->last_pages = NULL; | ||
198 | |||
199 | /* We keep our "struct lguest" in the file's private_data. */ | 199 | /* We keep our "struct lguest" in the file's private_data. */ |
200 | file->private_data = lg; | 200 | file->private_data = lg; |
201 | 201 | ||