Chris Wright wrote: >* zach@vmware.com (zach@vmware.com) wrote: > > >>+ memset(pgd, 0, USER_PTRS_PER_PGD*sizeof(pgd_t)); >> if (PTRS_PER_PMD == 1) >> spin_lock_irqsave(&pgd_lock, flags); >> >>- memcpy((pgd_t *)pgd + USER_PTRS_PER_PGD, >>+ clone_pgd_range((pgd_t *)pgd + USER_PTRS_PER_PGD, >> swapper_pg_dir + USER_PTRS_PER_PGD, >>- (PTRS_PER_PGD - USER_PTRS_PER_PGD) * sizeof(pgd_t)); >>- >>+ KERNEL_PGD_PTRS); >> if (PTRS_PER_PMD > 1) >> return; >> >> pgd_list_add(pgd); >> spin_unlock_irqrestore(&pgd_lock, flags); >>- memset(pgd, 0, USER_PTRS_PER_PGD*sizeof(pgd_t)); >> >> > >Why memset was never done on PAE? > >thanks, >-chris > > Update patch. Thanks for catching this. Tested PAE and non-PAE on native hardware and in a virtual machine :) Zach