Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Mar 2009 23:18:28 +0100
From:      Juergen Lock <nox@jelal.kn-bremen.de>
To:        Doug Barton <dougb@FreeBSD.org>
Cc:        freebsd-emulation@FreeBSD.org, gary.jennejohn@freenet.de
Subject:   Re: qemu 0.10.0 - cd/dvd drive access problems
Message-ID:  <20090309221828.GA13046@saturn.kn-bremen.de>
In-Reply-To: <alpine.BSF.2.00.0903091408420.40723@ync.qbhto.arg>
References:  <49B46A29.7020500@FreeBSD.org> <200903091802.n29I2nYK004571@saturn.kn-bremen.de> <alpine.BSF.2.00.0903091408420.40723@ync.qbhto.arg>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 09, 2009 at 02:16:54PM -0700, Doug Barton wrote:
> On Mon, 9 Mar 2009, Juergen Lock wrote:
> 
>> In article <20090309103706.0a44fb26@ernst.jennejohn.org> you write:
>>> On Sun, 08 Mar 2009 18:00:25 -0700
>>> Doug Barton <dougb@FreeBSD.org> wrote:
>>> 
>>>> One of my main reasons for wanting to install qemu was to be able to
>>>> use Windows tools for things like archiving DVDs. Now that I have qemu
>>>> working pretty well for most things, I tried to start using it for
>>>> DVD/CD access and it's not working well at all. I installed XP via a
>>>> typical installation CD, so I thought I had it made in this area. :(
>>>> 
>>>> I'm using '-cdrom /dev/acd0' the same way I did for the install. If
>>>> there is a disc in the drive when I start qemu I can "see" the disc,
>>>> and copy some small files from it. However trying to copy/read large
>>>> files (say, 1G) doesn't work at all. I get an error saying that sector
>>>> of the disc cannot be read (this is with known-good discs).
>> 
>> Hmm.  I wonder if this bug is related to the opensuse installer segfault,
> 
> Not sure I follow you there, sorry.
> 
Sorry I'm talking about a failure experienced by Gary...

>> have you tried with the (now older, still at the 20080620 snapshot)
>> qemu-devel port thats in the tree?
> 
 ...that didn't happen anymore for him after going back to the 20080620
qemu-devel port.

> That's actually what I started with (i.e., I compiled that port and used it 
> to install my windows guest) but I switched to the 0.10.0 before I started 
> goofing around with the CD/DVD stuff. I'll try going back to the older 
> version, but it's not likely I'll be able to get to it today.
> 
>> You could also try the new "werror"
>> option for -drive (possible values are:
>>    report    - report errors to a guest as IO errors
>>    ignore    - continue as if nothing happened
>>    stop      - stop VM on any error and retry last command on resume
>>    enospc    - stop vm on ENOSPC error and retry last command on resume
>>                all other errors are reported to a guest.
>> I think the default is "enospc" in 0.10.0 .  Yeah -cdrom is readonly
>> but who knows...)
> 
> Errrr, -cdrom being read-only is a problem, I need to be able to write CDs 
> and DVDs. Is there way to do that with the -drive option?

 Not on FreeBSD atm.  (this would require the scsi passthru support
to be ported at least.)

>  I looked at the 
> man page but couldn't quite grasp it well enough to get a command line to 
> try.
> 
> BTW, any hope that we'll have working USB in qemu on -current any time 
> soon?

 Well, the original author of the FreeBSD usb host code is too busy
with other stuff now, so it seems we need another volunteer...

>  I can't help thinking that some of these issues might be avoided if 
> the windows guest could "see" my external drive directly.

 Oh its an usb cd drive?  Then the read problems you saw could have
something to do with usb as well...  Anyway, scsi passthru would most
likely be faster than usb passthru anyway, if the latter even works
at all for burning.

>  It would also 
> allow me to give syncing my iPhone a try, which is another big motivator 
> for me to be trying this at all.
> 
 Btw I got a report of a bricked iphone in connection with the old qemu
ush host code, although iirc that guy was trying to upgrade the firmware...
(which might have made the device drop from the bus for a bit which the
current usb host code doesn't really handle, at least thats my theory...)

>> And finally you could try disabling aio (untested, I hope the following 
>> still works:)
> 
> If I don't have any luck with the other options I'll give this a try as 
> well, thanks.
> 
>> Actually qemu 0.10.0 (and also the last few snapshots I posted updates
>> for) now does its own aio emulation using threads, so the aio(4) kld or
>> kernel option is no longer needed.
> 
> Ah, interesting. I wonder if it's possible that the kernel module is 
> interfering?

 I would very much doubt that, it shouldn't do anything until the
aio syscalls are actually used.

 Cheers,
	Juergen



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090309221828.GA13046>