qemu/include/hw
Nicholas Bellinger 5e9be92d77 vhost-scsi: new device supporting the tcm_vhost Linux kernel module
The WWPN specified in configfs is passed to "-device vhost-scsi-pci".
The tgpt field of the SET_ENDPOINT ioctl is obsolete now, so it is not
available from the QEMU command-line.  Instead, I hardcode it to zero.

Changes in Patch-v2:
   - Add vhost_scsi_get_features() in order to determine feature bits
     supports by host kernel (mst + nab)
   - Re-enable usage of DEFINE_VIRTIO_COMMON_FEATURES, and allow
     EVENT_IDX to be disabled by host in vhost_scsi_get_features()
   - Drop unused hotplug bit in DEFINE_VHOST_SCSI_PROPERTIES

Changes in Patch-v1:
   - Set event_idx=off by default (nab, thanks asias)
   - Disable hotplug feature bit for v3.9 tcm_vhost kernel code, need to
     re-enable in v3.10 (nab)
   - Update to latest qemu.git/master HEAD

Changes in WIP-V3:
   - Drop ioeventfd vhost_scsi_properties (asias, thanks stefanha)
   - Add CONFIG_VHOST_SCSI (asias, thanks stefanha)
   - Add hotplug feature bit

Changes in WIP-V2:
   - Add backend guest masking support (nab)
   - Bump ABI_VERSION to 1 (nab)
   - Set up set_guest_notifiers (asias)
   - Set up vs->dev.vq_index (asias)
   - Drop vs->vs.vdev.{set,clear}_vhost_endpoint (asias)
   - Drop VIRTIO_CONFIG_S_DRIVER check in vhost_scsi_set_status (asias)

Howto:
   Use the latest seabios, at least commit b44a7be17b
   git clone git://git.seabios.org/seabios.git
   make
   cp out/bios.bin /usr/share/qemu/bios.bin
   qemu -device vhost-scsi-pci,wwpn=naa.6001405bd4e8476d,event_idx=off
...

Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Asias He <asias@redhat.com>
[ Rebase on top of VirtIOSCSICommon patch, fix bugs in feature
  negotiation and irqfd masking - Paolo ]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2013-04-19 16:18:11 +02:00
..
acpi acpi.h: make it self contained 2013-04-15 10:22:04 -05:00
arm arm: fix location of some include files 2013-04-15 15:16:01 +02:00
audio hw: move headers to include/ 2013-04-08 18:13:10 +02:00
block hw: move headers to include/ 2013-04-08 18:13:10 +02:00
char hw: move headers to include/ 2013-04-08 18:13:10 +02:00
cris hw: move headers to include/ 2013-04-08 18:13:10 +02:00
i2c hw: move headers to include/ 2013-04-08 18:13:10 +02:00
i386 acpi: move declarations from pc.h to acpi.h 2013-04-15 15:16:34 +02:00
input hw: move headers to include/ 2013-04-08 18:13:10 +02:00
isa hw: move headers to include/ 2013-04-08 18:13:10 +02:00
kvm hw: move headers to include/ 2013-04-08 18:13:10 +02:00
lm32 hw: move headers to include/ 2013-04-08 18:13:10 +02:00
m68k hw: move headers to include/ 2013-04-08 18:13:10 +02:00
mips hw: move headers to include/ 2013-04-08 18:13:10 +02:00
misc hw: move headers to include/ 2013-04-08 18:13:10 +02:00
nvram hw: move headers to include/ 2013-04-08 18:13:10 +02:00
pci scsi: VMWare PVSCSI paravirtual device implementation 2013-04-19 10:44:17 +02:00
pci-host hw: move PCI bridges to hw/pci-* or hw/ARCH 2013-04-08 18:13:14 +02:00
ppc hw: move headers to include/ 2013-04-08 18:13:10 +02:00
s390x hw: move headers to include/ 2013-04-08 18:13:10 +02:00
scsi hw: move headers to include/ 2013-04-08 18:13:10 +02:00
sh4 sh7750: Change cpu field type to SuperHCPU 2013-04-13 13:51:45 +02:00
sparc hw: move timer devices to hw/timer/, configure with default-configs/ 2013-04-08 18:13:14 +02:00
timer hw: move headers to include/ 2013-04-08 18:13:10 +02:00
unicore32 hw: move headers to include/ 2013-04-08 18:13:10 +02:00
virtio vhost-scsi: new device supporting the tcm_vhost Linux kernel module 2013-04-19 16:18:11 +02:00
xen configure: CONFIG_NO_XEN is duplicated 2013-04-18 14:12:31 +02:00
boards.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
bt.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
devices.h arm: fix location of some include files 2013-04-15 15:16:01 +02:00
elf_ops.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
empty_slot.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
hw.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
ide.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
irq.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
loader.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
pcmcia.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
ptimer.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
qdev-addr.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
qdev-core.h qdev: Fix QOM unrealize behavior 2013-04-15 17:05:34 -05:00
qdev-dma.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
qdev-properties.h qdev: Add qdev property for bool type 2013-04-16 01:19:46 +02:00
qdev.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
sd.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
ssi.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
stream.h stream: Remove app argument hack 2013-04-16 10:04:23 +02:00
sysbus.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
usb.h Merge remote-tracking branch 'bonzini/hw-dirs' into staging 2013-04-08 13:12:33 -05:00
xilinx.h stream: Remove app argument hack 2013-04-16 10:04:23 +02:00