]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
xen: fix allocation and use of large ldts
authorJeremy Fitzhardinge <jeremy@goop.org>
Sun, 27 Jul 2008 15:45:02 +0000 (08:45 -0700)
committerIngo Molnar <mingo@elte.hu>
Mon, 28 Jul 2008 12:26:27 +0000 (14:26 +0200)
commita05d2ebab28011c2f3f520833f4bfdd2fd1b9c02
treee1e3d5b61ee717d8e044c6a46af8d7f2ac06f5e5
parent64f53a0492b4bc11868307990bb8f7c1e0764f89
xen: fix allocation and use of large ldts

When the ldt gets to more than 1 page in size, the kernel uses vmalloc
to allocate it.  This means that:

 - when making the ldt RO, we must update the pages in both the vmalloc
   mapping and the linear mapping to make sure there are no RW aliases.

 - we need to use arbitrary_virt_to_machine to compute the machine addr
   for each update

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/xen/enlighten.c