[CORE] rework vmm_manager.c

Signed-off-by: Anup Patel <anup@brainfault.org>