copy_from and copy_to vm