aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/lguest/segments.c
diff options
context:
space:
mode:
authorGlauber de Oliveira Costa <gcosta@redhat.com>2008-01-17 16:14:46 -0500
committerRusty Russell <rusty@rustcorp.com.au>2008-01-30 06:50:17 -0500
commitae3749dcd8c31dcfbab14ea28c68a944c93f418f (patch)
treebdbbe9207bb7c50e9aeb7afc5b5653b79501c03f /drivers/lguest/segments.c
parentf34f8c5fea079065671163c37d98328cff31980b (diff)
lguest: move changed bitmap to lg_cpu
events represented in the 'changed' bitmap are per-cpu, not per-guest. 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/segments.c')
-rw-r--r--drivers/lguest/segments.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/lguest/segments.c b/drivers/lguest/segments.c
index 02138450ecf5..635f54c719ae 100644
--- a/drivers/lguest/segments.c
+++ b/drivers/lguest/segments.c
@@ -159,7 +159,7 @@ void load_guest_gdt(struct lg_cpu *cpu, unsigned long table, u32 num)
159 fixup_gdt_table(cpu, 0, ARRAY_SIZE(cpu->arch.gdt)); 159 fixup_gdt_table(cpu, 0, ARRAY_SIZE(cpu->arch.gdt));
160 /* Mark that the GDT changed so the core knows it has to copy it again, 160 /* Mark that the GDT changed so the core knows it has to copy it again,
161 * even if the Guest is run on the same CPU. */ 161 * even if the Guest is run on the same CPU. */
162 lg->changed |= CHANGED_GDT; 162 cpu->changed |= CHANGED_GDT;
163} 163}
164 164
165/* This is the fast-track version for just changing the three TLS entries. 165/* This is the fast-track version for just changing the three TLS entries.
@@ -174,7 +174,7 @@ void guest_load_tls(struct lg_cpu *cpu, unsigned long gtls)
174 __lgread(lg, tls, gtls, sizeof(*tls)*GDT_ENTRY_TLS_ENTRIES); 174 __lgread(lg, tls, gtls, sizeof(*tls)*GDT_ENTRY_TLS_ENTRIES);
175 fixup_gdt_table(cpu, GDT_ENTRY_TLS_MIN, GDT_ENTRY_TLS_MAX+1); 175 fixup_gdt_table(cpu, GDT_ENTRY_TLS_MIN, GDT_ENTRY_TLS_MAX+1);
176 /* Note that just the TLS entries have changed. */ 176 /* Note that just the TLS entries have changed. */
177 lg->changed |= CHANGED_GDT_TLS; 177 cpu->changed |= CHANGED_GDT_TLS;
178} 178}
179/*:*/ 179/*:*/
180 180