On Fri, May 15, 2020 at 11:46:04AM +0800, Han Han wrote: > Signed-off-by: Han Han <hhan@xxxxxxxxxx> > --- > .../qemuxml2argvdata/disk-network-iscsi.args | 8 +++- > .../disk-network-iscsi.x86_64-2.12.0.args | 7 ++- > .../disk-network-iscsi.x86_64-latest.args | 45 +++++++++++-------- > tests/qemuxml2argvdata/disk-network-iscsi.xml | 9 ++++ > tests/qemuxml2argvtest.c | 5 ++- > .../qemuxml2xmloutdata/disk-network-iscsi.xml | 10 +++++ > tests/qemuxml2xmltest.c | 4 +- > tests/virstoragetest.c | 16 +++++++ > 8 files changed, 80 insertions(+), 24 deletions(-) > diff --git a/tests/qemuxml2argvdata/disk-network-iscsi.xml b/tests/qemuxml2argvdata/disk-network-iscsi.xml > index 8a55f1b2..9812b4b1 100644 > --- a/tests/qemuxml2argvdata/disk-network-iscsi.xml > +++ b/tests/qemuxml2argvdata/disk-network-iscsi.xml > @@ -55,6 +56,14 @@ > </source> > <target dev='sda' bus='scsi'/> > </disk> > + <disk type='network' device='lun'> > + <driver name='qemu' type='raw'/> > + <source protocol='iscsi' name='iqn.1992-01.com.example/1'> > + <host name='example.org'/> > + <iser/> > + </source> > + <target dev='sdb' bus='scsi'/> > + </disk> I'm thinking would be better to have this represented as an attribute for the host, as we're basically choosing between TCP and RMDA as the network link, over which ISCSI is run eg <source protocol='iscsi' name='iqn.1992-01.com.example/1'> <host name='example.org' transport="tcp|rdma"/> </source> If we really want to keep the "iser" terminology, then it would be as a replacement for protocol="iscsi" instead g <source protocol='iser' name='iqn.1992-01.com.example/1'> <host name='example.org'/> </source> Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|