[Qemu-devel] iSCSI support for QEMU, update

2011-05-06 Thread Ronnie Sahlberg
This is a patch that adds support for iSCSI to QEMU when QEMU is built against libiscsi (https://github.com/sahlberg/libiscsi) ISCSI devices are specified using a special iSCSI URL: -drive file=iscsi://10.1.1.1:3260/iqn.ronnie.test/1 This allows a guest to access iscsi devices without exposin

Re: [Qemu-devel] iSCSI support for QEMU, update

2011-04-21 Thread Christoph Hellwig
On Fri, Apr 22, 2011 at 04:35:11PM +1000, ronnie sahlberg wrote: > Ok, I am confused And this time it's my fault, sorry. > I have to set FUA if the WB(I guessed this meant write-back) flag is set? > Not the opposite (I assume opposite of write-back is write-through) ? Sorry, I meant exactly the

Re: [Qemu-devel] iSCSI support for QEMU, update

2011-04-21 Thread ronnie sahlberg
Ok, I am confused On Fri, Apr 22, 2011 at 4:13 PM, Christoph Hellwig wrote: > On Fri, Apr 22, 2011 at 04:08:57PM +1000, ronnie sahlberg wrote: >> So I should set FUA when >> BDRV_O_CACHE_WB==0  or  BDRV_O_NOCACHE==1 >> right? > > At this point you need to set it if either the BDRV_O_CACHE_WB and

Re: [Qemu-devel] iSCSI support for QEMU, update

2011-04-21 Thread Christoph Hellwig
On Fri, Apr 22, 2011 at 04:08:57PM +1000, ronnie sahlberg wrote: > So I should set FUA when > BDRV_O_CACHE_WB==0 or BDRV_O_NOCACHE==1 > right? At this point you need to set it if either the BDRV_O_CACHE_WB and BDRV_O_NOCACHE flags are set. And yes, the naming of the nocache flag is rather confu

Re: [Qemu-devel] iSCSI support for QEMU, update

2011-04-21 Thread ronnie sahlberg
Thanks, On Fri, Apr 22, 2011 at 2:08 PM, Christoph Hellwig wrote: > On Fri, Apr 22, 2011 at 06:23:58AM +1000, ronniesahlb...@gmail.com wrote: >> 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 no

Re: [Qemu-devel] iSCSI support for QEMU, update

2011-04-21 Thread Christoph Hellwig
On Fri, Apr 22, 2011 at 06:23:58AM +1000, ronniesahlb...@gmail.com wrote: > 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. At this point you need to check for BDRV_O_CACHE_WB and BDRV_O_NOC

[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: