qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [sneak preview] major scsi overhaul


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [sneak preview] major scsi overhaul
Date: Wed, 02 Dec 2009 14:47:48 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-3.9.b4.fc12 Lightning/1.0pre Thunderbird/3.0b4

On 11/27/09 12:08, Gerd Hoffmann wrote:
On 11/26/09 16:50, Hannes Reinecke wrote:
So indeed, this approach would only work if we signal some sense code
back to the host.
I, OTOH, don't have any qualms with returning HARDWARE_ERROR,
0x26/0x08(TOO MANY SEGMENT DESCRIPTORS) resp 0x26h/0x0B (INLINE DATA
LENGTH EXCEEDED).
Feels only fair to notify the guest it has done something wrong.

Also set the info field which linux uses to figure how many sectors it
actually got.

Hmm. Well. Seems to work out at least for linux, i.e. it figures it got a bunch of sectors and tries to continue. Linux logs an I/O error. Also I didn't try other guests (yet).

Using that as a way to limit scsi-disk request sizes probably isn't a good idea. For scsi-generic that would be a improvement over the current situation though.

cheers,
  Gerd




reply via email to

[Prev in Thread] Current Thread [Next in Thread]