vhost-scsi: add a property for booting
commit9143d5f0f14c1eef92a362b3b976606ad2874daa
authorGonglei <arei.gonglei@huawei.com>
Thu, 29 Jan 2015 07:08:54 +0000 (29 15:08 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 11 Feb 2015 20:47:52 +0000 (11 21:47 +0100)
treeb4c3bfecce56e42a2268b3c70c842eeddfdf39b3
parent1956cf6fa1039647327ef333dc09b43775907305
vhost-scsi: add a property for booting

Because Qemu only accept an wwpn argument for vhost-scsi, we
cannot assign a tpgt. That's say tpg is transparent for Qemu, Qemu
doesn't know which tpg can boot, but vhost-scsi driver module
doesn't know too for one assigned wwpn.

At present, we assume that the first tpg can boot only, and add
a boot_tpgt property that defaults to 0. Of course, people can
pass a valid value by qemu command line.

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/hw/virtio/vhost-scsi.h
include/hw/virtio/virtio-scsi.h