savevm: split the process of different stages for loadvm/savevm