Thanks for the feedback. I’ll clean up the duplicated code and move common parts into vm_util.c in the next version.
vm_util.c
Best regards,Wang Lian