Add support for memory reservation Upstream-commit: 84b53c8d87c0ab887209a51e54fad60a591e737a Component: engine