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)
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>

No differences found