[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [UNIKRAFT PATCH RFCv3 30/32] plat/virtio_mmio: Fix virtqueue size for virtio 9p device
For virtio 9p, the virtqueue size is 128 statically. Without this patch, virtio 9p device can't be initialized in arm64 kvm plat. Signed-off-by: Jia He <justin.he@xxxxxxx> --- plat/drivers/virtio/virtio_mmio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plat/drivers/virtio/virtio_mmio.c b/plat/drivers/virtio/virtio_mmio.c index be9e59d..dc5c6c2 100644 --- a/plat/drivers/virtio/virtio_mmio.c +++ b/plat/drivers/virtio/virtio_mmio.c @@ -309,7 +309,7 @@ static struct virtqueue *vm_setup_vq(struct virtio_dev *vdev, virtio_cwrite32(vm_dev->base, VIRTIO_MMIO_QUEUE_SEL, queue_id); /* Activate the queue */ - virtio_cwrite32(vm_dev->base, VIRTIO_MMIO_QUEUE_NUM, (__u32)virtqueue_vring_get_num(vq)); + virtio_cwrite32(vm_dev->base, VIRTIO_MMIO_QUEUE_NUM, num_desc); if (vm_dev->version == 1) { virtio_cwrite32(vm_dev->base, VIRTIO_MMIO_QUEUE_ALIGN, __PAGE_SIZE); -- 2.17.1
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |