aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/lguest/lg.h
diff options
context:
space:
mode:
authorGlauber de Oliveira Costa <gcosta@redhat.com>2008-01-17 16:13:26 -0500
committerRusty Russell <rusty@rustcorp.com.au>2008-01-30 06:50:16 -0500
commitf34f8c5fea079065671163c37d98328cff31980b (patch)
tree73a97cb67c1450b21587cbadde7a7dad6c58d46d /drivers/lguest/lg.h
parentc40a9f4719d36841a2d7ff4fe866dce7bfb454b7 (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/lg.h')
-rw-r--r--drivers/lguest/lg.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/lguest/lg.h b/drivers/lguest/lg.h
index 94e518da9aa8..f1c4c33e4153 100644
--- a/drivers/lguest/lg.h
+++ b/drivers/lguest/lg.h
@@ -57,6 +57,8 @@ struct lg_cpu {
57 unsigned long regs_page; 57 unsigned long regs_page;
58 struct lguest_regs *regs; 58 struct lguest_regs *regs;
59 59
60 struct lguest_pages *last_pages;
61
60 int cpu_pgd; /* which pgd this cpu is currently using */ 62 int cpu_pgd; /* which pgd this cpu is currently using */
61 63
62 /* If a hypercall was asked for, this points to the arguments. */ 64 /* If a hypercall was asked for, this points to the arguments. */
@@ -92,7 +94,6 @@ struct lguest
92 94
93 /* Bitmap of what has changed: see CHANGED_* above. */ 95 /* Bitmap of what has changed: see CHANGED_* above. */
94 int changed; 96 int changed;
95 struct lguest_pages *last_pages;
96 97
97 struct pgdir pgdirs[4]; 98 struct pgdir pgdirs[4];
98 99