search for: trace_virtqueue_fill

Displaying 4 results from an estimated 4 matches for "trace_virtqueue_fill".

2015 Mar 09
0
virtio fixes pull for 4.0?
...e_empty(VirtQueue *vq) } void virtqueue_fill(VirtQueue *vq, const VirtQueueElement *elem, - unsigned int len, unsigned int idx) + unsigned int len_written, unsigned int idx) { - unsigned int offset; + unsigned int offset, tot_wlen; int i; - trace_virtqueue_fill(vq, elem, len, idx); + trace_virtqueue_fill(vq, elem, len_written, idx); + + for (tot_wlen = i = 0; i < elem->out_num; i++) { + tot_wlen += elem->out_sg[i].iov_len; + } + assert(len_written <= tot_wlen); offset = 0; for (i = 0; i < elem->in_num; i++)...
2015 Mar 09
0
virtio fixes pull for 4.0?
...e_empty(VirtQueue *vq) } void virtqueue_fill(VirtQueue *vq, const VirtQueueElement *elem, - unsigned int len, unsigned int idx) + unsigned int len_written, unsigned int idx) { - unsigned int offset; + unsigned int offset, tot_wlen; int i; - trace_virtqueue_fill(vq, elem, len, idx); + trace_virtqueue_fill(vq, elem, len_written, idx); + + for (tot_wlen = i = 0; i < elem->out_num; i++) { + tot_wlen += elem->out_sg[i].iov_len; + } + assert(len_written <= tot_wlen); offset = 0; for (i = 0; i < elem->in_num; i++)...
2015 Mar 07
4
virtio fixes pull for 4.0?
Hi Rusty! There are a bunch of (mostly virtio 1.0 related) fixes for virtio that need to go into 4.0 I think. virtio_blk: typo fix virtio_blk: fix comment for virtio 1.0 virtio_console: init work unconditionally virtio_console: avoid config access from irq virtio_balloon: set DRIVER_OK before using device seem ready? virtio_mmio: generation support virtio_mmio: fix endian-ness for mmio
2015 Mar 07
4
virtio fixes pull for 4.0?
Hi Rusty! There are a bunch of (mostly virtio 1.0 related) fixes for virtio that need to go into 4.0 I think. virtio_blk: typo fix virtio_blk: fix comment for virtio 1.0 virtio_console: init work unconditionally virtio_console: avoid config access from irq virtio_balloon: set DRIVER_OK before using device seem ready? virtio_mmio: generation support virtio_mmio: fix endian-ness for mmio