67f366243d
mbind walks through pages to setup vma memory policy. So we need do mmap to create vma mappings first, then call mbind. mbind will do nothing if vma does not exist. And add numa available check before executing mbind, and return NULL to hsaKmtAllocMemory if mbind failed. Change-Id: I28ab661885d807ca51ef90e87230669dc80f10ec Signed-off-by: Philip Yang <Philip.Yang@amd.com>