[Qemu-devel] [PATCH] ISCSI: Pick default initiator-name based on the name of the VM

2012-08-06 Thread ronniesahlberg
From: Ronnie Sahlberg This patch updates the iscsi layer to automatically pick a 'unique' initiator-name based on the name of the vm in case the user has not set an explicit iqn-name to use. Create a new function qemu_get_vm_name() that returns the name of the VM, if specified. This way we c

[Qemu-devel] [PATCH] iSCSI block driver support

2011-04-21 Thread ronniesahlberg
From: Ronnie Sahlberg This patch adds a new block driver : block.iscsi.c 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.

[Qemu-devel] iSCSI support for QEMU, update

2011-04-21 Thread ronniesahlberg
iSCSI block driver for QEMU Please find an updated iSCSI patch. This patch adds setting FUA on all writes when the bit BDRV_O_CACHE_WB is not set. regards ronnie sahlberg From: Ronnie Sahlberg Subject: iSCSI support for QEMU, update In-Reply-To:

[Qemu-devel] [PATCH] iSCSI support

2011-02-03 Thread ronniesahlberg
From: Ronnie Sahlberg This patch adds a new block driver : block.iscsi.c 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.

[Qemu-devel] iSCSI block driver support

2011-02-03 Thread ronniesahlberg
The following patch adds a new block driver to QEMU/KVM for iSCSI. This utilizes the userspace client library for iscsi at https://github.com/sahlberg/libiscsi and will link with this library if available. This allows using iSCSI resources with QEMU/KVM without making them visible to the underl

[Qemu-devel] [PATCH 11/14] ./block/iscsi/connect.c

2010-12-03 Thread ronniesahlberg
From: Ronnie Sahlberg iscsi client library : connect.c This file contains helper functions to make simples use of iscsi resources easier by for example baking tcp connect, login, testunit ready, verifying device is available, into one simple to use function. ... ./block/iscsi/ contains a cop

[Qemu-devel] [PATCH 10/14] ./block/iscsi/sync.c

2010-12-03 Thread ronniesahlberg
From: Ronnie Sahlberg iscsi client library : sync.c This file contains functions for implementing a synchronous api layers ontop of the asynchronous library. These functions are all synchronous and thus blocking making them' useful mainly for simple applications where ease of use if more impor

[Qemu-devel] [PATCH 14/14] iscsi support

2010-12-03 Thread ronniesahlberg
From: Ronnie Sahlberg add iscsi.c and the iscsi library to the makefile sot it gets built Signed-off-by: Ronnie Sahlberg --- Makefile |2 +- Makefile.objs |9 + 2 files changed, 10 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index c80566c..6efdf14 10064

[Qemu-devel] [PATCH 09/14] ./block/iscsi/scsi-lowlevel.c

2010-12-03 Thread ronniesahlberg
From: Ronnie Sahlberg iscsi client library : scsi-lowlevel.c This file contains functions for marshalling and unmarshalling scsi CDB blocks and DATA-IN/DATA-OUT blocks. This currently supports only small subset of SCSI opcodes but the hope is contributions will expand its coverage over time.

[Qemu-devel] [PATCH 12/14] ./block/iscsi/*.h

2010-12-03 Thread ronniesahlberg
From: Ronnie Sahlberg iscsi client library : *.h These files contain the heade declaraions, typedefs and useful macros used by the iscsi client library. ... ./block/iscsi/ contains a copy of a general purpose iscsi client library which is aimed at providing a clientside api for iscsi for both

[Qemu-devel] [PATCH 03/14] ./block/iscsi/login.c

2010-12-03 Thread ronniesahlberg
From: Ronnie Sahlberg iscsi client library : login.c This file contains functions associated with loggign in to a target, negotiating session parameters and logging out from a target. Login negitiation is currently limited in scope and functionality but can log in successfully to TGTD targets

[Qemu-devel] [PATCH 07/14] ./block/iscsi/pdu.c

2010-12-03 Thread ronniesahlberg
From: Ronnie Sahlberg iscsi client library : pdu.c This file contains functions for basic manipulation of iscsi PDUs and their flags as well as tracking and matching relations between requests, data-in, data-out and responses. ... ./block/iscsi/ contains a copy of a general purpose iscsi cli

[Qemu-devel] [PATCH 08/14] ./block/iscsi/sscsi-command.c

2010-12-03 Thread ronniesahlberg
From: Ronnie Sahlberg iscsi client library : scsi-command.c This file contains functions for providing a fully async and fully nonblocking interface to send scsi commands to a target and handle replies coming back. This layer is fully async and nonblocking. Client applications can send and kee

[Qemu-devel] [PATCH 13/14] ./block/iscsi.c

2010-12-03 Thread ronniesahlberg
From: Ronnie Sahlberg This file provides a new protocol ISCSI to qemu and allows qemu connect directly to iscsi resources, without having to go through the host scsi layer. This allows qemu/kvm to use iscsi devices without exposing these to the host system and without polluting the page cache of

[Qemu-devel] [PATCH 02/14] ./block/iscsi/socket.c

2010-12-03 Thread ronniesahlberg
From: Ronnie Sahlberg iscsi client library : socket.c This file contains functions for basic manipulation of the socket used to talk to a iscsi target. This includes, connect, disconnect, basic primitives for interfacing with an external eventsystem, reading and writing to the socket. The sock

[Qemu-devel] [PATCH 06/14] ./block/iscsi/nop.c

2010-12-03 Thread ronniesahlberg
From: Ronnie Sahlberg iscsi client library : nop.c This file contains functions for processing of initiator initiated NOP exchanges. While target initiated exchanged look virtually identical, these are not implemented. TGTD iscsin target does not use target initiated nop exchanges but other ta

[Qemu-devel] [PATCH 05/14] ./block/iscsi/crc32c.c

2010-12-03 Thread ronniesahlberg
From: Ronnie Sahlberg iscsi client library : crc32c.c This file contains functions for computing the crc32c used by iscsi header digest and icsi data digest to ensure data integrity across the transport. ... ./block/iscsi/ contains a copy of a general purpose iscsi client library which is aim

[Qemu-devel] [PATCH 04/14] ./block/iscsi/discovery.c

2010-12-03 Thread ronniesahlberg
From: Ronnie Sahlberg iscsi client library : discovery.c This file contains functions for managing discovery sessions used by iscsi clients to discover which targets may be present behind a particular iscsi portal. ... ./block/iscsi/ contains a copy of a general purpose iscsi client library w

[Qemu-devel] [PATCH 01/14] ./block/iscsi/init.c

2010-12-03 Thread ronniesahlberg
From: Ronnie Sahlberg iscsi client library : init.c This file contains functions to create a iscsi context, destroy a context, error reporting api, as well as basic functions to manipulate properties of an iscsi context. ... ./block/iscsi/ contains a copy of a general purpose iscsi client lib

[Qemu-devel] [Patch 0/14] builtin iscsi support

2010-12-03 Thread ronniesahlberg
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