summaryrefslogtreecommitdiff
path: root/drivers/virtio/virtio_input.c
diff options
context:
space:
mode:
authorXuan Zhuo <xuanzhuo@linux.alibaba.com>2022-08-01 09:38:36 +0300
committerMichael S. Tsirkin <mst@redhat.com>2022-08-11 11:06:39 +0300
commit6fea20e5611fc5c8264f04a878a98c06b6209eed (patch)
tree755fbd0c07bc95e2349ec6724ef856bc8351726c /drivers/virtio/virtio_input.c
parentaf36b16f6c1e51975a3815eb21c21c47f3114393 (diff)
downloadlinux-6fea20e5611fc5c8264f04a878a98c06b6209eed.tar.xz
virtio_ring: split: introduce virtqueue_resize_split()
virtio ring split supports resize. Only after the new vring is successfully allocated based on the new num, we will release the old vring. In any case, an error is returned, indicating that the vring still points to the old vring. In the case of an error, re-initialize(virtqueue_reinit_split()) the virtqueue to ensure that the vring can be used. Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com> Acked-by: Jason Wang <jasowang@redhat.com> Message-Id: <20220801063902.129329-17-xuanzhuo@linux.alibaba.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/virtio/virtio_input.c')
0 files changed, 0 insertions, 0 deletions