]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
xen: replace callers of alloc_vm_area()/free_vm_area() with xen_ prefixed one
authorIsaku Yamahata <yamahata@valinux.co.jp>
Wed, 2 Apr 2008 17:53:59 +0000 (10:53 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 24 Apr 2008 21:57:32 +0000 (23:57 +0200)
commit5f0ababbf49f12330effab932a18055a50f4c0a1
treee6f991570835c7e22646f89db979508d0ca5c93e
parent20e71f2edb5991de8f2a70902b4aa5982f67c69c
xen: replace callers of alloc_vm_area()/free_vm_area() with xen_ prefixed one

Don't use alloc_vm_area()/free_vm_area() directly, instead define
xen_alloc_vm_area()/xen_free_vm_area() and use them.

alloc_vm_area()/free_vm_area() are used to allocate/free area which
are for grant table mapping. Xen/x86 grant table is based on virtual
address so that alloc_vm_area()/free_vm_area() are suitable.
On the other hand Xen/ia64 (and Xen/powerpc) grant table is based on
pseudo physical address (guest physical address) so that allocation
should be done differently.
The original version of xenified Linux/IA64 have its own
allocate_vm_area()/free_vm_area() definitions which don't allocate vm area
contradictory to those names.
Now vanilla Linux already has its definitions so that it's impossible
to have IA64 definitions of allocate_vm_area()/free_vm_area().
Instead introduce xen_allocate_vm_area()/xen_free_vm_area() and use them.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/xen/grant-table.c
drivers/xen/xenbus/xenbus_client.c
include/asm-x86/xen/grant_table.h [new file with mode: 0644]
include/xen/grant_table.h