I think "vcpupin_vm_pre_state" here can be replaced by "start_vm" since you didn't start or destroy vm before here.