aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/lguest
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/lguest')
-rw-r--r--drivers/lguest/x86/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/lguest/x86/core.c b/drivers/lguest/x86/core.c
index 96d0fd07c57..44adb00e149 100644
--- a/drivers/lguest/x86/core.c
+++ b/drivers/lguest/x86/core.c
@@ -94,7 +94,7 @@ static void copy_in_guest_info(struct lguest *lg, struct lguest_pages *pages)
94 /* Set up the two "TSS" members which tell the CPU what stack to use 94 /* Set up the two "TSS" members which tell the CPU what stack to use
95 * for traps which do directly into the Guest (ie. traps at privilege 95 * for traps which do directly into the Guest (ie. traps at privilege
96 * level 1). */ 96 * level 1). */
97 pages->state.guest_tss.esp1 = lg->esp1; 97 pages->state.guest_tss.sp1 = lg->esp1;
98 pages->state.guest_tss.ss1 = lg->ss1; 98 pages->state.guest_tss.ss1 = lg->ss1;
99 99
100 /* Copy direct-to-Guest trap entries. */ 100 /* Copy direct-to-Guest trap entries. */
@@ -416,7 +416,7 @@ void __init lguest_arch_host_init(void)
416 /* We know where we want the stack to be when the Guest enters 416 /* We know where we want the stack to be when the Guest enters
417 * the switcher: in pages->regs. The stack grows upwards, so 417 * the switcher: in pages->regs. The stack grows upwards, so
418 * we start it at the end of that structure. */ 418 * we start it at the end of that structure. */
419 state->guest_tss.esp0 = (long)(&pages->regs + 1); 419 state->guest_tss.sp0 = (long)(&pages->regs + 1);
420 /* And this is the GDT entry to use for the stack: we keep a 420 /* And this is the GDT entry to use for the stack: we keep a
421 * couple of special LGUEST entries. */ 421 * couple of special LGUEST entries. */
422 state->guest_tss.ss0 = LGUEST_DS; 422 state->guest_tss.ss0 = LGUEST_DS;