/* Given a partid, get the nasids owned by that partition from the remote partition's reserved page.  */
enum xp_retval xpc_initiate_partid_to_nasids(short partid, void *nasid_mask)
/* Given a partid, get the nasids owned by that partition from the remote partition's reserved page.  */
enum xp_retval xpc_initiate_partid_to_nasids(short partid, void *nasid_mask)
{
	struct xpc_partition *part;
	unsigned long part_nasid_pa;
	part = &xpc_partitions[partid];
	if (part->remote_rp_pa == 0)
		return xpPartitionDown;
	memset(nasid_mask, 0, xpc_nasid_mask_nbytes);
	part_nasid_pa = (unsigned long)XPC_RP_PART_NASIDS(part->remote_rp_pa);
	return xp_remote_memcpy(xp_pa(nasid_mask), part_nasid_pa,
				xpc_nasid_mask_nbytes);
}