cpu_to_vhost32
heads[headcount].id = cpu_to_vhost32(vq, d);
heads[headcount].len = cpu_to_vhost32(vq, len);
heads[headcount - 1].len = cpu_to_vhost32(vq, len + datalen);
heads[0].len = cpu_to_vhost32(vq, len + datalen);
heads[0].id = cpu_to_vhost32(vq, d);
vq->heads[0].id = cpu_to_vhost32(vq, head);
vq->heads[nvq->done_idx].id = cpu_to_vhost32(vq, head);
vq->heads[nvq->upend_idx].id = cpu_to_vhost32(vq, head);
evt->event.event = cpu_to_vhost32(vq, event);
evt->event.reason = cpu_to_vhost32(vq, reason);
event->event |= cpu_to_vhost32(vq, VIRTIO_SCSI_T_EVENTS_MISSED);
v_rsp.resid = cpu_to_vhost32(cmd->tvc_vq,
v_rsp.sense_len = cpu_to_vhost32(cmd->tvc_vq,
cpu_to_vhost32(vq, head),
cpu_to_vhost32(vq, len)