From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:47723) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9C23-0002TB-DS for qemu-devel@nongnu.org; Thu, 29 Sep 2011 04:31:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R9C1z-0007Ir-MB for qemu-devel@nongnu.org; Thu, 29 Sep 2011 04:31:51 -0400 Received: from mtagate3.uk.ibm.com ([194.196.100.163]:47728) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9C1z-0007ED-F7 for qemu-devel@nongnu.org; Thu, 29 Sep 2011 04:31:47 -0400 Received: from d06nrmr1507.portsmouth.uk.ibm.com (d06nrmr1507.portsmouth.uk.ibm.com [9.149.38.233]) by mtagate3.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p8T8VQcT025179 for ; Thu, 29 Sep 2011 08:31:26 GMT Received: from d06av11.portsmouth.uk.ibm.com (d06av11.portsmouth.uk.ibm.com [9.149.37.252]) by d06nrmr1507.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p8T8VP9O2642066 for ; Thu, 29 Sep 2011 09:31:26 +0100 Received: from d06av11.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av11.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p8T8VPmF029900 for ; Thu, 29 Sep 2011 02:31:25 -0600 Date: Thu, 29 Sep 2011 07:54:03 +0100 From: Stefan Hajnoczi Message-ID: <20110929065403.GA3594@stefanha-thinkpad.localdomain> References: <1316597875-30463-1-git-send-email-ronniesahlberg@gmail.com> <1316597875-30463-2-git-send-email-ronniesahlberg@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1316597875-30463-2-git-send-email-ronniesahlberg@gmail.com> Subject: Re: [Qemu-devel] [PATCH] This patch adds a new block driver : iSCSI List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ronnie Sahlberg Cc: kwolf@redhat.com, dlaor@redhat.com, qemu-devel@nongnu.org, fujita.tomonori@lab.ntt.co.jp, owasserm@redhat.com, pbonzini@redhat.com, hch@lst.de On Wed, Sep 21, 2011 at 07:37:55PM +1000, Ronnie Sahlberg wrote: > This provides built-in support for iSCSI to QEMU. > This has the advantage that the iSCSI devices need not be made visible to the host, which is useful if you have very many virtual machines and very many iscsi devices. > It also has the benefit that non-root users of QEMU can access iSCSI devices across the network without requiring root privilege on the host. > > This driver interfaces with the multiplatform posix library for iscsi initiator/client access to iscsi devices hosted at > git://github.com/sahlberg/libiscsi.git > > The patch adds the driver to interface with the iscsi library. > It also updated the configure script to > * by default, probe is libiscsi is available and if so, build > qemu against libiscsi. > * --enable-libiscsi > Force a build against libiscsi. If libiscsi is not available > the build will fail. > * --disable-libiscsi > Do not link against libiscsi, even if it is available. > > When linked with libiscsi, qemu gains support to access iscsi resources such as disks and cdrom directly, without having to make the devices visible to the host. > > You can specify devices using a iscsi url of the form : > iscsi://[[:@]][:/ > When using authentication, the password can optionally be set with > LIBISCSI_CHAP_PASSWORD="password" to avoid it showing up in the process list > > Signed-off-by: Ronnie Sahlberg > --- > Makefile.objs | 1 + > block/iscsi.c | 596 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > configure | 31 +++ > trace-events | 7 + > 4 files changed, 635 insertions(+), 0 deletions(-) > create mode 100644 block/iscsi.c Reviewed-by: Stefan Hajnoczi