[libvirt] [PATCH] [RFC] ISCSI transport protocol support in libvirt

Aurelien ROUGEMONT beorn at binaries.fr
Wed Jul 21 13:22:36 UTC 2010

Hi everyone,

This my first post on this list

Context : Some days ago I have decided to use infiniband for ISCSI 
streams. Infiniband adds a new wonderful transport protocol : ISER. This 
protocols is added to the well known the default TCP. (NB: ISER = ISCSI 
+ RDMA). I could not see any ISCSI transport protocol modification 
support in libivirt (the default protocol tcp is even hardcoded in the 

What i have done :
- did the shell testing for the iscsiadm
- the attached patch that corrects 2 typos in the original code and 
switches completely the iscsi transport protocol from tcp to iser (which 
is not ideal at all)

What should be done (imho):
- add iscsi transport protocol support (using my patch as a basis)
- add a new XML property/whatever_fits_the_projects_policy to the 
storagepool object that allows user to pick the iscsi transport protocol 
(default is tcp)

I was thinking of having something like :

<pool type="iscsi">
           <host name=""/>
           <device path="IQNOFTARGET"/>
           <transport protocol="iser"/>

Any comment on this ? Any help on the XML part ?

Best regards,


NB: the current iscsi transport protocols available are : tcp(default), 
iser, qla4xxx, bnx2, and icxgb3i.

PS: i'm still doing extensive testing of my patch

-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirt-iscsi_transport_protocol-tcp-2-iser.diff
Type: text/x-diff
Size: 2337 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100721/e1fe171c/attachment-0001.bin>

More information about the libvir-list mailing list