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 14:35:35 +0200 [thread overview]
Message-ID: <50250017.9070000@profihost.ag> (raw)
In-Reply-To: <CAN05THT_uwYg5-fCEAqip7MerSbDXyGjj6PO73frxfOfrEPaBw@mail.gmail.com>
Am 10.08.2012 14:24, schrieb ronnie sahlberg:
> On Fri, Aug 10, 2012 at 10:14 PM, Stefan Priebe - Profihost AG
> <s.priebe@profihost.ag> wrote:
> I dont know the kvm version numbers.
They're the same as qemu.
> But you can check the file
> block/iscsi.c for the version you use for this :
>
> .bdrv_aio_discard = iscsi_aio_discard,
# grep 'scsi_aio_discard' block/iscsi.c
iscsi_aio_discard(BlockDriverState *bs,
.bdrv_aio_discard = iscsi_aio_discard,
=> so yes
> If it has bdrv_aio_discard then you have support for 'discard' when
> using the scsi emulation. i.e. -drive ...,if=scsi,...
>
> #ifdef __linux__
> .bdrv_ioctl = iscsi_ioctl,
> .bdrv_aio_ioctl = iscsi_aio_ioctl,
> #endif
yes too.
> If it has these two lines too, then you have scsi-passthrough and can
> bypass the qemu scsi emulation.
> One way to activate passthough is via scsi-generic:
> Example:
> -device lsi -device scsi-generic,drive=MyISCSI \
> -drive file=iscsi://10.1.1.125/iqn.ronnie.test/1,if=none,id=MyI
When i do this the guest system always uses the sym53c8xx kernel module.
This results in 70 iops instead of 30000 iops. Is this really correct
that it uses the very old sym53c8xx kernel module for this device?
used start command:
http://pastebin.com/raw.php?i=23fkaQgc
dmesg from guest:
dmesg|egrep "sym|scsi"
[ 0.000000] Linux version 3.5.0intel (root@neuertestswerverscsi) (gcc
version 4.4.5 (Debian 4.4.5-8) ) #5 SMP Thu Aug 9 20:27:29 CEST 2012
[ 0.291949] scsi0 : ata_piix
[ 0.292109] scsi1 : ata_piix
[ 0.495217] sym0: <895a> rev 0x0 at pci 0000:00:03.0 irq 10
[ 0.498694] sym0: No NVRAM, ID 7, Fast-40, LVD, parity checking
[ 0.500565] sym0: SCSI BUS has been reset.
[ 0.508603] scsi2 : sym-2.2.3
[ 3.512544] sym0: unknown interrupt(s) ignored, ISTAT=0x5 DSTAT=0x80
SIST=0x0
[ 3.514004] scsi 2:0:0:0: Direct-Access NEXENTA NEXENTASTOR
1.0 PQ: 0 ANSI: 5
[ 3.514414] scsi target2:0:0: tagged command queuing enabled, command
queue depth 16.
[ 3.514820] scsi target2:0:0: Beginning Domain Validation
[ 3.518370] scsi target2:0:0: Domain Validation skipping write tests
[ 3.518772] scsi target2:0:0: Ending Domain Validation
Thanks a lot!
Stefan
next prev parent reply other threads:[~2012-08-10 12:35 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 [this message]
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
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=50250017.9070000@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).