support uncachable on-demand mapping

This commit is contained in:
NAKAMURA Gou
2014-09-17 18:13:36 +09:00
parent fb38917bf6
commit f641090a7e
2 changed files with 7 additions and 0 deletions

View File

@@ -791,6 +791,10 @@ enum ihk_mc_pt_attribute common_vrflag_to_ptattr(unsigned long flag, uint64_t fa
attr |= PTATTR_NO_EXECUTE;
}
if ((flag & VR_MEMTYPE_MASK) == VR_MEMTYPE_UC) {
attr |= PTATTR_UNCACHABLE;
}
return attr;
}