diff options
-rw-r--r-- | drivers/lguest/x86/core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/lguest/x86/core.c b/drivers/lguest/x86/core.c index 8c723555ffb3..10eab6748d84 100644 --- a/drivers/lguest/x86/core.c +++ b/drivers/lguest/x86/core.c | |||
@@ -60,7 +60,7 @@ static struct lguest_pages *lguest_pages(unsigned int cpu) | |||
60 | (SWITCHER_ADDR + SHARED_SWITCHER_PAGES*PAGE_SIZE))[cpu]); | 60 | (SWITCHER_ADDR + SHARED_SWITCHER_PAGES*PAGE_SIZE))[cpu]); |
61 | } | 61 | } |
62 | 62 | ||
63 | static DEFINE_PER_CPU(struct lguest *, last_guest); | 63 | static DEFINE_PER_CPU(struct lg_cpu *, last_cpu); |
64 | 64 | ||
65 | /*S:010 | 65 | /*S:010 |
66 | * We approach the Switcher. | 66 | * We approach the Switcher. |
@@ -80,8 +80,8 @@ 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_guest) != lg || lg->last_pages != pages) { | 83 | if (__get_cpu_var(last_cpu) != cpu || lg->last_pages != pages) { |
84 | __get_cpu_var(last_guest) = lg; | 84 | __get_cpu_var(last_cpu) = cpu; |
85 | lg->last_pages = pages; | 85 | lg->last_pages = pages; |
86 | lg->changed = CHANGED_ALL; | 86 | lg->changed = CHANGED_ALL; |
87 | } | 87 | } |