>               if (likely(mergeable) &&
> -                 memcpy_toiovecend(nvq->hdr, (unsigned char *)&headcount,
> -                                   offsetof(typeof(hdr), num_buffers),
> -                                   sizeof hdr.num_buffers)) {
> +                 copy_to_iter(&headcount, 2, &fixup) != 2) {
>                       vq_err(vq, "Failed num_buffers write");
>                       vhost_discard_vq_desc(vq, headcount);
>                       break;

BTW this will have to be re-based on top of
http://mid.gmane.org/[email protected]
taking byte-swap into account.
_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

Reply via email to