search for: virtio_blk_f_stats_vq

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

2011 Aug 18
0
[PATCH] virtio-blk: Update spec with new stats vq
...\begin_body @@ -5224,7 +5225,24 @@ ID 2 \end_layout \begin_layout Description -Virtqueues 0:requestq. +Virtqueues 0:requestq +\change_inserted 2090695081 1313645732 +. + 1:statsq. +\begin_inset Foot +status open + +\begin_layout Plain Layout + +\change_inserted 2090695081 1313645739 +Only if VIRTIO_BLK_F_STATS_VQ set +\end_layout + +\end_inset + + +\change_unchanged +. \end_layout \begin_layout Description @@ -5330,6 +5348,20 @@ VIRTIO_BLK_F_SECTOR_MAX \end_inset (10) Maximum total sectors in an I/O. +\change_inserted 2090695081 1313645792 + +\end_layout + +\begin_layout Description + +\change_inser...
2011 Aug 18
0
[PATCH] virtio-blk: Update spec with new stats vq
...\begin_body @@ -5224,7 +5225,24 @@ ID 2 \end_layout \begin_layout Description -Virtqueues 0:requestq. +Virtqueues 0:requestq +\change_inserted 2090695081 1313645732 +. + 1:statsq. +\begin_inset Foot +status open + +\begin_layout Plain Layout + +\change_inserted 2090695081 1313645739 +Only if VIRTIO_BLK_F_STATS_VQ set +\end_layout + +\end_inset + + +\change_unchanged +. \end_layout \begin_layout Description @@ -5330,6 +5348,20 @@ VIRTIO_BLK_F_SECTOR_MAX \end_inset (10) Maximum total sectors in an I/O. +\change_inserted 2090695081 1313645792 + +\end_layout + +\begin_layout Description + +\change_inser...
2011 Aug 16
1
[PATCH] virtio-blk: Add stats VQ to collect information about devices
...; - /* We expect one virtqueue, for output. */ - vblk->vq = virtio_find_single_vq(vdev, blk_done, "requests"); - if (IS_ERR(vblk->vq)) { - err = PTR_ERR(vblk->vq); + /* We expect one virtqueue for output, and optionally a stats vq. */ + nvqs = virtio_has_feature(vblk->vdev, VIRTIO_BLK_F_STATS_VQ) ? 2 : 1; + err = vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names); + if (err) goto out_free_vblk; + + vblk->vq = vqs[0]; + + if (nvqs == 2) { + struct scatterlist sg; + vblk->stats_vq = vqs[1]; + + /* + * Prime this virtqueue with one buffer so the hypervisor can + *...
2011 Aug 16
1
[PATCH] virtio-blk: Add stats VQ to collect information about devices
...; - /* We expect one virtqueue, for output. */ - vblk->vq = virtio_find_single_vq(vdev, blk_done, "requests"); - if (IS_ERR(vblk->vq)) { - err = PTR_ERR(vblk->vq); + /* We expect one virtqueue for output, and optionally a stats vq. */ + nvqs = virtio_has_feature(vblk->vdev, VIRTIO_BLK_F_STATS_VQ) ? 2 : 1; + err = vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names); + if (err) goto out_free_vblk; + + vblk->vq = vqs[0]; + + if (nvqs == 2) { + struct scatterlist sg; + vblk->stats_vq = vqs[1]; + + /* + * Prime this virtqueue with one buffer so the hypervisor can + *...