virtio/user: do not set vring physical address
It's not required. We only use it in virtio-pci. Change-Id: I61e95d680d00fa3d56ebccbc9a372db7e1db296d Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/417002 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
bcfd6d0fb4
commit
095f355bf3
@ -357,7 +357,6 @@ virtio_user_setup_queue(struct virtio_dev *vdev, struct virtqueue *vq)
|
||||
struct vhost_vring_state state;
|
||||
uint16_t queue_idx = vq->vq_queue_index;
|
||||
void *queue_mem;
|
||||
uint64_t queue_mem_phys_addr;
|
||||
uint64_t desc_addr, avail_addr, used_addr;
|
||||
int callfd;
|
||||
int kickfd;
|
||||
@ -367,12 +366,12 @@ virtio_user_setup_queue(struct virtio_dev *vdev, struct virtqueue *vq)
|
||||
return -1;
|
||||
}
|
||||
|
||||
queue_mem = spdk_dma_zmalloc(vq->vq_ring_size, VIRTIO_PCI_VRING_ALIGN, &queue_mem_phys_addr);
|
||||
queue_mem = spdk_dma_zmalloc(vq->vq_ring_size, VIRTIO_PCI_VRING_ALIGN, NULL);
|
||||
if (queue_mem == NULL) {
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
vq->vq_ring_mem = queue_mem_phys_addr;
|
||||
vq->vq_ring_mem = SPDK_VTOPHYS_ERROR;
|
||||
vq->vq_ring_virt_mem = queue_mem;
|
||||
|
||||
/* May use invalid flag, but some backend uses kickfd and
|
||||
|
Loading…
Reference in New Issue
Block a user