Not sure how you sent this but it's not threaded properly and the diffs
aren't git diffs. Please use git-send-email.
I used quilt mail. I apologize for the improper threading. I'll switch
over to git-send-email in the future.
+int qemu_write_bytes(QEMUFile *f, const uint8_t *buf, int size)
+{
+ if (qemu_file_get_error(f)) {
+ return -1;
+ }
+
+ qemu_put_buffer(f, buf, size);
+
+ if (qemu_file_get_error(f)) {
+ return -1;
+ }
+
+ return size;
+}
I think we've moved away from using qemu-file for anything other than
migration.
Any suggestions for what should be used instead?