Re: [Qemu-devel] [PATCH 2/2] virtio-scsi: Implement fc_host feature

2017-01-17 Thread Fam Zheng
On Tue, 01/17 10:54, Stefan Hajnoczi wrote: > On Tue, Jan 17, 2017 at 12:07:30AM +0800, Fam Zheng wrote: > > static void virtio_scsi_device_realize(DeviceState *dev, Error **errp) > > { > > VirtIODevice *vdev = VIRTIO_DEVICE(dev); > > VirtIOSCSI *s = VIRTIO_SCSI(dev); > > +VirtIOSCS

Re: [Qemu-devel] [PATCH 2/2] virtio-scsi: Implement fc_host feature

2017-01-17 Thread Stefan Hajnoczi
On Tue, Jan 17, 2017 at 12:07:30AM +0800, Fam Zheng wrote: > static void virtio_scsi_device_realize(DeviceState *dev, Error **errp) > { > VirtIODevice *vdev = VIRTIO_DEVICE(dev); > VirtIOSCSI *s = VIRTIO_SCSI(dev); > +VirtIOSCSICommon *vs = VIRTIO_SCSI_COMMON(dev); > Error *err

[Qemu-devel] [PATCH 2/2] virtio-scsi: Implement fc_host feature

2017-01-16 Thread Fam Zheng
This patch add qdev properties to allow enabling the fc_host feature of virtio-scsi, and fill config fields. For migration, the destination QEMU should be started with the same wwnn and wwpn, and a inverted primary_active. When migration is done, the config change interrupt will allow guest to dis