xen: add return value to set_phys_to_machine()
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Fri, 27 Aug 2010 20:42:04 +0000 (13:42 -0700)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Fri, 22 Oct 2010 19:57:25 +0000 (12:57 -0700)
commitc3798062f100c3e1d4ae1241bc536f3b1f28a6ca
treec62ab3fb20be784991f6988cd46382d669110c43
parent58e05027b530ff081ecea68e38de8d59db8f87e0
xen: add return value to set_phys_to_machine()

set_phys_to_machine() can return false on failure, which means a memory
allocation failure for the p2m structure.  It can only fail if setting
the mfn for a pfn in previously unused address space.  It is guaranteed
to succeed if you're setting a mapping to INVALID_P2M_ENTRY or updating
the mfn for an existing pfn.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
arch/x86/include/asm/xen/page.h
arch/x86/xen/mmu.c