[PATCH 0/4] Two-ended allocation support