Re: [PATCH V2 WIP 0/2] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 12, 2013 at 02:29:40PM +0800, Asias He wrote:
> This is on top of Paolo and Nick's work.
> 
> Current status:
> Works now (guest boots fine, no hang any more) with seabios's virtio-scsi disabled.
> Rebased to latest qemu.org/master
> Change details are in commit log.
> 
> TODO:
> Make seabios happy.

Some updates:

In seabios, src/virtio-scsi.c:virtio_scsi_cmd()

    vring_kick(ioaddr, vq, 1);
    /* Wait for reply */
    while (!vring_more_used(vq))  ------------>>> we hang here
        usleep(5);

In tcm_vhost:
we got: vhost_get_vq_desc: head: -14, out: 0 in: 81216

The vring buffer provided by seabios is not correct?

> Paolo Bonzini (2):
>   virtio-scsi: create VirtIOSCSICommon
>   vhost-scsi: new device supporting the tcm_vhost Linux kernel module
> 
>  hw/Makefile.objs           |   5 +-
>  hw/s390x/s390-virtio-bus.c |  35 +++++++
>  hw/vhost-scsi.c            | 242 +++++++++++++++++++++++++++++++++++++++++++++
>  hw/vhost-scsi.h            |  64 ++++++++++++
>  hw/virtio-pci.c            |  59 +++++++++++
>  hw/virtio-scsi.c           | 199 +++++++++----------------------------
>  hw/virtio-scsi.h           | 129 ++++++++++++++++++++++++
>  include/qemu/osdep.h       |   4 +
>  8 files changed, 586 insertions(+), 151 deletions(-)
>  create mode 100644 hw/vhost-scsi.c
>  create mode 100644 hw/vhost-scsi.h
> 
> -- 
> 1.8.1.4
> 

-- 
Asias
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux