This series of pathces adds built in iscsi support to qemu. The first 12 patches 14 adds a general purpose iscsi client library in a separate subdirectory ./block/iscsi that is aimed at being useful not only for kvm/qemu but for all scsi relates applications.
Patch 13 adds the block driver ./block/iscsi.c that interfaces qemu with the library and patch 14 adds the library to build on posix platforms Please review and/or apply. Note that ./block/iscsi/* is aimed at being re-used outisde of qemu/kvm in other applications why qemu/kvm specific calkls are not used there. Syntax to use with TGTD iscsi target is -drive file=iscsi://<host>[:<port>]/<target-iqn-name>/<lun> for disk devices and -cdrom iscsi://<host>[:<port>]/<target-iqn-name>/<lun> for cdrom devices