I have pushed the rebased QEMU codes and tcm_vhost codes to my git tree. Perhaps some one is interested in playing with it.
1.) my kernel git g...@github.com:wuzhy/linux.git tcm_vhost https://github.com/wuzhy/linux/commits/tcm_vhost 2.) my QEMU git g...@github.com:wuzhy/qemu.git vhost-scsi https://github.com/wuzhy/qemu/commits/vhost-scsi By the way, it is based on latest qemu.git/master. On Thu, 2012-04-19 at 10:38 +0800, zwu.ker...@gmail.com wrote: > From: Zhi Yong Wu <wu...@linux.vnet.ibm.com> > > The patchset was developed originally by Stefan about one year ago. I now > rebase it to latest qemu.git/master and fixed some issues to make it work > against tcm_vhost and virtio_scsi driver. But there are still some issues to > fix. Let us make more effort later. > > Stefan Hajnoczi (13): > virtio-scsi: Add wwpn and tgpt properties > vhost: Pass device path to vhost_dev_init() > virtio-scsi: Add vhost_vring_target ioctl struct > virtio-scsi: Fix tgpt typo to tpgt and use uint16_t > virtio-scsi: Build virtio-scsi.o against vhost.o > virtio-scsi: Open and initialize /dev/vhost-scsi > virtio-scsi: Start/stop vhost > notifier: add validity check and notify function > virtio-pci: support host notifiers in TCG mode > virtio-pci: check that event notification worked > vhost-scsi: add -vhost-scsi host device > virtio-scsi: use the vhost-scsi host device > virtio-scsi: WIP VHOST_SCSI_SET_ENDPOINT call > > Zhi Yong Wu (3): > vhost-scsi: enable vhost notifiers for multiple queues > vhost-scsi: move some definitions to its header file > vhost-scsi: clear endpoint on stopped > > Makefile.target | 2 +- > configure | 2 + > event_notifier.c | 21 +++++++ > event_notifier.h | 4 + > hw/qdev-properties.c | 32 ++++++++++ > hw/qdev.h | 3 + > hw/vhost-scsi.c | 156 > ++++++++++++++++++++++++++++++++++++++++++++++++++ > hw/vhost-scsi.h | 39 +++++++++++++ > hw/vhost.c | 5 +- > hw/vhost.h | 3 +- > hw/vhost_net.c | 2 +- > hw/virtio-pci.c | 28 ++++++++- > hw/virtio-scsi.c | 52 +++++++++++++++++ > hw/virtio-scsi.h | 1 + > hw/virtio.c | 7 ++ > qemu-common.h | 1 + > qemu-config.c | 16 +++++ > qemu-options.hx | 4 + > vl.c | 18 ++++++ > 19 files changed, 388 insertions(+), 8 deletions(-) > create mode 100644 hw/vhost-scsi.c > create mode 100644 hw/vhost-scsi.h > -- Regards, Zhi Yong Wu