aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/lguest
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/lguest')
-rw-r--r--drivers/lguest/lguest.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/lguest/lguest.c b/drivers/lguest/lguest.c
index 6dfe568523a2..3386b0e76900 100644
--- a/drivers/lguest/lguest.c
+++ b/drivers/lguest/lguest.c
@@ -1019,6 +1019,11 @@ __init void lguest_init(void *boot)
1019 * the normal data segment to get through booting. */ 1019 * the normal data segment to get through booting. */
1020 asm volatile ("mov %0, %%fs" : : "r" (__KERNEL_DS) : "memory"); 1020 asm volatile ("mov %0, %%fs" : : "r" (__KERNEL_DS) : "memory");
1021 1021
1022 /* Clear the part of the kernel data which is expected to be zero.
1023 * Normally it will be anyway, but if we're loading from a bzImage with
1024 * CONFIG_RELOCATALE=y, the relocations will be sitting here. */
1025 memset(__bss_start, 0, __bss_stop - __bss_start);
1026
1022 /* The Host uses the top of the Guest's virtual address space for the 1027 /* The Host uses the top of the Guest's virtual address space for the
1023 * Host<->Guest Switcher, and it tells us how much it needs in 1028 * Host<->Guest Switcher, and it tells us how much it needs in
1024 * lguest_data.reserve_mem, set up on the LGUEST_INIT hypercall. */ 1029 * lguest_data.reserve_mem, set up on the LGUEST_INIT hypercall. */