From: Stefan Priebe - Profihost AG <s.priebe@profihost.ag>
To: ronnie sahlberg <ronniesahlberg@gmail.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
qemu-devel <qemu-devel@nongnu.org>,
Stefan Hajnoczi <stefanha@gmail.com>
Subject: Re: [Qemu-devel] virtio-scsi vs. virtio-blk
Date: Fri, 10 Aug 2012 13:54:21 +0200 [thread overview]
Message-ID: <5024F66D.8050905@profihost.ag> (raw)
In-Reply-To: <CAN05THTePt-wxC9wfEP2uQvqM6m-Xps1o8B9gfrjQv5VejZ6pg@mail.gmail.com>
http://www.nexenta.com/corp/products/what-is-openstorage/nexentastor
tells me:
"SCSI UNMAP as a client-side feature frees up storage in the back end,
in the context of thin provisioning (a 100-to-one reduction in space for
VDI when using NexentaStor)."
So i would say nexenta supports it. But i'm using virtio-scsi-pci? I'm
really sorry to ask so many questions.
Stefan
Am 10.08.2012 13:20, schrieb ronnie sahlberg:
> On Fri, Aug 10, 2012 at 8:30 PM, Paolo Bonzini <pbonzini@redhat.com> wrote:
>> Il 10/08/2012 12:28, Stefan Priebe - Profihost AG ha scritto:
>>> I'm using iscsi. So no raw or qcow2.
>>
>> Ok, then you need to use scsi-block as your device instead of scsi-disk
>> or scsi-hd. This will disable the QEMU SCSI emulation and let your VM
>> talk directly to the NAS.
>>
>> CCing Ronnie who may be interested in bug reports since I'm on holiday
>> starting "soon".
>>
>
> I think it works on any,
> You can of course not boot from a if=scsi disk in qemu,
>
> but any '-drive file=iscsi://...,if=scsi' should work as long as it is
> not the boot device.
>
> SCSI emulation in qemu picks this up via WRITESAME10/16 and then calls
> bdrv_aio_discard()
> block/iscsi.c is invoked for discard and then translates this back to
> a SBC UNMAP command it sends to the target.
>
>
> Now, block/iscsi.c does assume that any target that reports that it
> supports thin-provisioning actually implements UNMAP command.
> There could be targets that support thin-provision ing that does NOT
> support UNMAP and unly support discard via WRITESAME10/16
> so at some stage I should send a patch to iscsi.c to check which
> commands the target supprots and use one of the supported ones instead
> of a blanket
> "you say you support thin-provisioning, I take that as confirmation
> you support SBC UNMAP"
>
>
> regards
> ronnie sahlberg
>
next prev parent reply other threads:[~2012-08-10 11:54 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-08 15:21 [Qemu-devel] virtio-scsi vs. virtio-blk Stefan Priebe
2012-08-08 16:17 ` Paolo Bonzini
2012-08-08 17:12 ` Stefan Priebe
2012-08-08 17:37 ` Paolo Bonzini
2012-08-09 6:13 ` Stefan Priebe
2012-08-09 7:01 ` Paolo Bonzini
2012-08-09 7:07 ` Stefan Priebe
2012-08-09 7:19 ` Paolo Bonzini
2012-08-09 7:41 ` Stefan Priebe
2012-08-09 7:53 ` Paolo Bonzini
2012-08-09 8:00 ` Stefan Priebe
2012-08-09 8:03 ` Paolo Bonzini
2012-08-09 9:18 ` Stefan Hajnoczi
2012-08-09 10:17 ` Stefan Priebe - Profihost AG
2012-08-09 11:04 ` Stefan Hajnoczi
2012-08-09 11:10 ` Paolo Bonzini
2012-08-09 11:24 ` Stefan Priebe - Profihost AG
2012-08-09 12:08 ` Stefan Priebe - Profihost AG
2012-08-09 12:19 ` Paolo Bonzini
2012-08-09 12:31 ` Stefan Priebe - Profihost AG
2012-08-09 12:44 ` Paolo Bonzini
2012-08-09 15:41 ` Stefan Priebe - Profihost AG
2012-08-09 12:52 ` ronnie sahlberg
2012-08-09 13:15 ` Paolo Bonzini
2012-08-09 13:39 ` Stefan Priebe - Profihost AG
2012-08-09 13:42 ` Paolo Bonzini
2012-08-09 13:52 ` Stefan Priebe - Profihost AG
2012-08-09 14:35 ` Paolo Bonzini
2012-08-09 14:25 ` Stefan Priebe - Profihost AG
2012-08-10 9:22 ` Stefan Priebe - Profihost AG
2012-08-10 10:20 ` Paolo Bonzini
2012-08-10 10:28 ` Stefan Priebe - Profihost AG
2012-08-10 10:30 ` Paolo Bonzini
2012-08-10 11:12 ` ronnie sahlberg
2012-08-10 11:57 ` Stefan Priebe - Profihost AG
2012-08-10 12:04 ` ronnie sahlberg
2012-08-10 12:14 ` Stefan Priebe - Profihost AG
2012-08-10 12:24 ` ronnie sahlberg
2012-08-10 12:35 ` Stefan Priebe - Profihost AG
2012-08-10 12:39 ` Paolo Bonzini
2012-08-10 12:43 ` Stefan Priebe - Profihost AG
2012-08-10 11:20 ` ronnie sahlberg
2012-08-10 11:54 ` Stefan Priebe - Profihost AG [this message]
2012-08-10 11:58 ` ronnie sahlberg
2012-08-10 12:38 ` Stefan Priebe - Profihost AG
2012-08-10 11:49 ` Stefan Priebe - Profihost AG
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5024F66D.8050905@profihost.ag \
--to=s.priebe@profihost.ag \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=ronniesahlberg@gmail.com \
--cc=stefanha@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).