[SLOF] [PATCH v3 05/22] virtio: introduce helper for initializing virt queue

Thomas Huth thuth at redhat.com
Sat Jan 23 17:33:32 AEDT 2016


On 22.01.2016 11:54, Nikunj A Dadhania wrote:
> The routine takes care to allocate and set the queue address in the
> device. Add these calls in virtio-net, virtio-blk and virtio-9p.
> 
> With the lack of this routine, devices like virtio-blk and virtio-9p did
> not do a device reset in the driver initialization code. This helper
> will fix that problem
> 
> Change the signature of virtio_set_qaddr, accepting queue address as
> unsigned long argument.
> 
> Signed-off-by: Nikunj A Dadhania <nikunj at linux.vnet.ibm.com>
> ---
>  board-qemu/slof/pci-device_1af4_1001.fs |  9 -------
>  board-qemu/slof/pci-device_1af4_1009.fs |  9 -------
>  lib/libvirtio/virtio-9p.c               |  7 ++++++
>  lib/libvirtio/virtio-blk.c              |  8 +++++++
>  lib/libvirtio/virtio-net.c              | 42 ++++-----------------------------
>  lib/libvirtio/virtio-net.h              | 12 ----------
>  lib/libvirtio/virtio.c                  | 23 +++++++++++++++++-
>  lib/libvirtio/virtio.h                  | 12 +++++++++-
>  8 files changed, 53 insertions(+), 69 deletions(-)
> 

Reviewed-by: Thomas Huth <thuth at redhat.com>



More information about the SLOF mailing list