Lines Matching refs:msg
125 struct hvctl_msg msg; in main() local
164 bzero(&msg, sizeof(msg)); in main()
165 msg.hdr.op = HVCTL_OP_GET_HVCONFIG; in main()
166 msg.hdr.seq = hvctl_seq++; in main()
167 nbytes = write(hvctl_fd, &msg, sizeof(msg)); in main()
168 if (nbytes != sizeof(msg)) in main()
171 bzero(&msg, sizeof(msg)); in main()
172 nbytes = read(hvctl_fd, &msg, sizeof(msg)); in main()
173 if (nbytes != sizeof(msg)) in main()
176 hv_mdpa = msg.msg.hvcnf.hvmdp; in main()
387 struct hvctl_msg msg; in hv_update_md() local
412 bzero(&msg, sizeof(msg)); in hv_update_md()
413 msg.hdr.op = HVCTL_OP_RECONFIGURE; in hv_update_md()
414 msg.hdr.seq = hvctl_seq++; in hv_update_md()
415 msg.msg.reconfig.guestid = -1; in hv_update_md()
416 msg.msg.reconfig.hvmdp = hv_mdpa; in hv_update_md()
417 nbytes = write(hvctl_fd, &msg, sizeof(msg)); in hv_update_md()
418 if (nbytes != sizeof(msg)) in hv_update_md()
421 bzero(&msg, sizeof(msg)); in hv_update_md()
422 nbytes = read(hvctl_fd, &msg, sizeof(msg)); in hv_update_md()
423 if (nbytes != sizeof(msg)) in hv_update_md()
428 if (msg.hdr.status != HVCTL_ST_OK) in hv_update_md()
429 logit(LOG_CRIT, "reconfigure failed: %d", msg.hdr.status); in hv_update_md()
435 struct hvctl_msg msg; in hv_open() local
446 bzero(&msg, sizeof(msg)); in hv_open()
447 msg.hdr.op = HVCTL_OP_HELLO; in hv_open()
448 msg.hdr.seq = hvctl_seq++; in hv_open()
449 msg.msg.hello.major = 1; in hv_open()
450 nbytes = write(hvctl_fd, &msg, sizeof(msg)); in hv_open()
451 if (nbytes != sizeof(msg)) in hv_open()
454 bzero(&msg, sizeof(msg)); in hv_open()
455 nbytes = read(hvctl_fd, &msg, sizeof(msg)); in hv_open()
456 if (nbytes != sizeof(msg)) in hv_open()
459 code = msg.msg.clnge.code ^ 0xbadbeef20; in hv_open()
464 bzero(&msg, sizeof(msg)); in hv_open()
465 msg.hdr.op = HVCTL_OP_RESPONSE; in hv_open()
466 msg.hdr.seq = hvctl_seq++; in hv_open()
467 msg.msg.clnge.code = code ^ 0x12cafe42a; in hv_open()
468 nbytes = write(hvctl_fd, &msg, sizeof(msg)); in hv_open()
469 if (nbytes != sizeof(msg)) in hv_open()
472 bzero(&msg, sizeof(msg)); in hv_open()
473 nbytes = read(hvctl_fd, &msg, sizeof(msg)); in hv_open()
474 if (nbytes != sizeof(msg)) in hv_open()