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/x86 | |
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/x86')
-rw-r--r-- | drivers/lguest/x86/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/lguest/x86/core.c b/drivers/lguest/x86/core.c index 10eab6748d84..f8dfdc9a3e5b 100644 --- a/drivers/lguest/x86/core.c +++ b/drivers/lguest/x86/core.c | |||
@@ -80,9 +80,9 @@ static void copy_in_guest_info(struct lg_cpu *cpu, struct lguest_pages *pages) | |||
80 | * same Guest we ran last time (and that Guest hasn't run anywhere else | 80 | * same Guest we ran last time (and that Guest hasn't run anywhere else |
81 | * meanwhile). If that's not the case, we pretend everything in the | 81 | * meanwhile). If that's not the case, we pretend everything in the |
82 | * Guest has changed. */ | 82 | * Guest has changed. */ |
83 | if (__get_cpu_var(last_cpu) != cpu || lg->last_pages != pages) { | 83 | if (__get_cpu_var(last_cpu) != cpu || cpu->last_pages != pages) { |
84 | __get_cpu_var(last_cpu) = cpu; | 84 | __get_cpu_var(last_cpu) = cpu; |
85 | lg->last_pages = pages; | 85 | cpu->last_pages = pages; |
86 | lg->changed = CHANGED_ALL; | 86 | lg->changed = CHANGED_ALL; |
87 | } | 87 | } |
88 | 88 | ||