| 564 | } |
| 565 | |
| 566 | static void config_additional_file_load_cb(void *opaque, |
| 567 | uint8_t *buf, int buf_len) |
| 568 | { |
| 569 | VMConfigLoadState *s = opaque; |
| 570 | VirtMachineParams *p = s->vm_params; |
| 571 | |
| 572 | p->files[s->file_index].buf = malloc(buf_len); |
| 573 | memcpy(p->files[s->file_index].buf, buf, buf_len); |
| 574 | p->files[s->file_index].len = buf_len; |
| 575 | |
| 576 | /* load the next files */ |
| 577 | s->file_index++; |
| 578 | config_additional_file_load(s); |
| 579 | } |
| 580 | |
| 581 | void vm_add_cmdline(VirtMachineParams *p, const char *cmdline) |
| 582 | { |
nothing calls this directly
no test coverage detected