From: Stefan Hajnoczi <stefanha@gmail.com>
To: Thomas Schmitt <scdbackup@gmx.net>
Cc: Kevin Wolf <kwolf@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Do you have a use for a tester of virtio-scsi with CD drives ?
Date: Wed, 2 Nov 2011 11:25:18 +0000 [thread overview]
Message-ID: <CAJSP0QV2rMgyhrzA8NvD2utAT9XgF7vM0Z6e==KJGgs4Se69VQ@mail.gmail.com> (raw)
In-Reply-To: <97448486715687@192.168.2.69>
On Tue, Nov 1, 2011 at 9:03 PM, Thomas Schmitt <scdbackup@gmx.net> wrote:
> Hi,
>
> Stefan Hajnoczi wrote:
>> In the future I think it's appropriate to CC qemu-devel since others
>> in the community may be interested in virtio-scsi discussions too.
>
> Ok. I'll forward my original mail and this reply to qemu-devel.
>
>
>> The current state is that CD-ROM passthrough with virtio-scsi does not
>> work yet because the in-kernel SCSI target needs a patch to allow the
>> GET EVENT STATUS NOTIFICATION command which newish Linux kernel use to
>> poll CD-ROMs.
>
> I have the exploration of this command on my own TODO list.
> Good to know that it might make problems in the kernel.
>
> --------------------------------------------------------------------------
>
>> In theory QEMU with -drive file=/dev/sg0,if=scsi,... should provide
>> SCSI passthrough. QEMU is a userspace process so it uses the
>> scsi-generic driver to pass through SCSI commands. You could try that
>> (note this is without virtio-scsi and should work today in theory).
>
> The following experiments show quite ill effects.
>
> I could need instructions how to install and use qemu from git
> on Debian GNU/Linux 6.0.2 without disturbing the installed
> qemu-0.12.5 from apt-get.
>
> Currently i run 0.15.1 from release tarball as
> ./qemu-0.15.1/i386-softmmu/qemu
> with no special indication that this would cause the problems.
> The installed 0.12.5 capsizes at the same occasionsi, albeit with
> different symptoms.
>
> Nevertheless i get a message at startup
> Could not open option rom 'sgabios.bin': No such file or directory
> which indicates that this is not the intended way to have a qemu
> for testing.
> So when i get a git clone, it would be best to have a more
> conventional test setup. (Be it only for kvm acceleration.)
If you want to ensure a self-contained environment try:
qemu-0.15.1/i386-softmmu/qemu -L qemu-0.15.1/pc-bios ...
The -L option sets QEMU's "data_dir" which is used as the base
directory. There is code to auto-detect but it will prefer the
system-wide /usr/share/qemu path instead of ../pc-bios, so explicitly
setting this option is the right thing to do.
>
> --------------------------------------------------------------------------
>
> First try is on qemu-0.15.1:
>
> ./qemu-0.15.1/i386-softmmu/qemu \
> -nographic \
> -m 512 \
> -net nic,model=ne2k_pci \
> -net user,hostfwd=tcp::5557-:22 \
> -hda /dvdbuffer/i386-install.qemu \
> -drive file=/dev/sg2,if=scsi,bus=4,unit=0,media=cdrom
>
> Now i have two drives by one option.
> xorriso -devices reports
> 0 -dev '/dev/sr0' rwrw-- : 'TSSTcorp' 'CDDVDW SH-S223B'
> 1 -dev '/dev/sr1' rwrw-- : 'QEMU ' 'QEMU DVD-ROM'
> with /dev/sr1 being an empty drive. (Is this a known bug ?)
Off the top of my head I'd say this is an empty IDE CD-ROM drive which
is added by default. Would need to check the code to be sure though.
> But /dev/sr0 seems to work well, on the first glimpse.
>
> Trying to burn something, being logged in via SSH
>
> $ xorriso -dev /dev/sr0 -add /usr/lib
>
> reads old session, adds files, but when writing should begin:
>
> Connection to localhost closed by remote host.
> Connection to localhost closed.
>
> and i get the host system prompt.
>
> The window where i ran qemu says:
>
> qemu: ./qemu_dir/qemu-0.15.1/hw/lsi53c895a.c:540:
> lsi_do_dma: Assertion `s->current' failed.
That's a bug in the LSI SCSI HBA emulation or a generic SCSI emulation
problem in QEMU. I have CCed Paolo and Kevin who have recently been
working on SCSI and IDE much more than me and know more.
> With the installed qemu-0.12.5:
Thanks for the extensive testing. I actually suggest focussing just
on qemu.git/master because that is where developers mostly invest
their time. The data points on older versions can be interesting but
my guess is folks won't have time to debug them - instead let's make
qemu.git/master work.
Stefan
next prev parent reply other threads:[~2011-11-02 11:25 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-01 17:27 [Qemu-devel] Do you have a use for a tester of virtio-scsi with CD drives ? Thomas Schmitt
2011-11-01 21:03 ` Thomas Schmitt
2011-11-02 11:25 ` Stefan Hajnoczi [this message]
2011-11-02 12:08 ` Paolo Bonzini
2011-11-02 16:26 ` Thomas Schmitt
2011-11-02 16:34 ` Paolo Bonzini
2011-11-02 18:05 ` Thomas Schmitt
2011-11-02 19:50 ` Paolo Bonzini
2011-11-02 21:22 ` Thomas Schmitt
2011-11-02 22:08 ` Thomas Schmitt
2011-11-02 22:16 ` [Qemu-devel] Compile error Frans de Boer
2011-11-02 22:19 ` Anthony Liguori
2011-11-02 22:31 ` Frans de Boer
2011-11-03 7:49 ` [Qemu-devel] Do you have a use for a tester of virtio-scsi with CD drives ? Paolo Bonzini
2011-11-03 9:15 ` Thomas Schmitt
2011-11-03 9:36 ` Paolo Bonzini
2011-11-03 13:10 ` Thomas Schmitt
2011-11-03 22:30 ` Thomas Schmitt
2011-11-04 9:18 ` Thomas Schmitt
2011-11-04 9:38 ` Paolo Bonzini
2011-11-04 11:09 ` Thomas Schmitt
2011-11-04 11:31 ` Paolo Bonzini
2011-11-04 13:03 ` Thomas Schmitt
2011-11-04 20:28 ` Thomas Schmitt
2011-11-05 8:33 ` Paolo Bonzini
2011-11-05 13:00 ` Thomas Schmitt
2011-11-05 14:37 ` Thomas Schmitt
2011-11-05 15:53 ` Paolo Bonzini
2011-11-05 16:38 ` Thomas Schmitt
2011-11-05 20:47 ` Thomas Schmitt
2011-11-06 8:17 ` Paolo Bonzini
2011-11-06 10:35 ` Thomas Schmitt
2011-11-06 20:14 ` Thomas Schmitt
2011-11-07 8:02 ` Paolo Bonzini
2011-11-07 10:04 ` Thomas Schmitt
2011-11-07 11:13 ` Paolo Bonzini
2011-11-07 11:24 ` Zhi Yong Wu
2011-11-07 11:29 ` Paolo Bonzini
2011-11-07 11:40 ` Zhi Yong Wu
2011-11-06 9:31 ` Thomas Schmitt
2011-11-04 13:26 ` Andreas Färber
2011-11-04 14:46 ` Thomas Schmitt
2011-11-07 8:48 ` Zhi Yong Wu
2011-11-02 15:15 ` Thomas Schmitt
2011-11-02 16:22 ` Paolo Bonzini
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='CAJSP0QV2rMgyhrzA8NvD2utAT9XgF7vM0Z6e==KJGgs4Se69VQ@mail.gmail.com' \
--to=stefanha@gmail.com \
--cc=kwolf@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=scdbackup@gmx.net \
/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).