]> git.baikalelectronics.ru Git - kernel.git/commit
xen: x86/32: perform initial startup on initial_page_table
authorIan Campbell <ian.campbell@citrix.com>
Wed, 3 Nov 2010 15:32:21 +0000 (15:32 +0000)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Tue, 30 Nov 2010 01:07:53 +0000 (17:07 -0800)
commitffdec7eca13578662af138972dff8294f6dc0526
tree7d5bfeb30f5e178f05b932c20d64f2d9fd98583f
parent8035acaf4ec9fdde961c27ec8ad92ae3bf3b9201
xen: x86/32: perform initial startup on initial_page_table

Only make swapper_pg_dir readonly and pinned when generic x86 architecture code
(which also starts on initial_page_table) switches to it.  This helps ensure
that the generic setup paths work on Xen unmodified. In particular
clone_pgd_range writes directly to the destination pgd entries and is used to
initialise swapper_pg_dir so we need to ensure that it remains writeable until
the last possible moment during bring up.

This is complicated slightly by the need to avoid sharing kernel PMD entries
when running under Xen, therefore the Xen implementation must make a copy of
the kernel PMD (which is otherwise referred to by both intial_page_table and
swapper_pg_dir) before switching to swapper_pg_dir.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: H. Peter Anvin <hpa@linux.intel.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
arch/x86/xen/enlighten.c
arch/x86/xen/mmu.c