sh: Add support for memory hot-remove.