Skip to contentSkip to conversation

qemu/hw ide.c

Qemu-devel Thiemo Seufer 2 participants 7 messages Feb 19, 2007

lore
Share & tools
lore
#3 lore raw
Quoted 12 lines · Thiemo Seufer
Quoted 11 lines · Jens Axboe
Quoted 10 lines · Thiemo Seufer

CVSROOT: /sources/qemu
Module name: qemu
Changes by: Thiemo Seufer <ths> 07/02/19 00:59:34

Modified files:
hw : ide.c

Log message:
Ignore special flags in nsector variable.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/ide.c?cvsroot=qemu&r1=1.53&r2=1.54

Why is nsector uint32_t to begin with?

Because nobody sent a patch to fix it, I figure.

Actually I seem to recall it's because it's being overloaded for requests that are > 256 sectors. It would be a good cleanup to get rid of that an turn nsector into a proper uint8_t.

Signature · 1 line
Jens Axboe
#4 lore raw
Quoted 16 lines · Jens Axboe
Quoted 15 lines · Thiemo Seufer
Quoted 14 lines · Jens Axboe
Quoted 12 lines · Thiemo Seufer

CVSROOT: /sources/qemu
Module name: qemu
Changes by: Thiemo Seufer <ths> 07/02/19 00:59:34

Modified files:
hw : ide.c

Log message:
Ignore special flags in nsector variable.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/ide.c?cvsroot=qemu&r1=1.53&r2=1.54

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

Why is nsector uint32_t to begin with?

Because nobody sent a patch to fix it, I figure.

Actually I seem to recall it's because it's being overloaded for requests that are > 256 sectors. It would be a good cleanup to get rid of that an turn nsector into a proper uint8_t.

It appears to use 16k bits in some cases. I won't fiddle with it myself because I know nothing about IDE and have no time to learn about it.

Thiemo

#5 lore raw

Thiemo Seufer wrote:
[snip]

Quoted 9 lines
Quoted 7 lines
Quoted 3 lines
Quoted 1 line

Why is nsector uint32_t to begin with?

Because nobody sent a patch to fix it, I figure.

Actually I seem to recall it's because it's being overloaded for requests that are > 256 sectors. It would be a good cleanup to get rid of that an turn nsector into a proper uint8_t.

It appears to use 16k bits in some cases. I won't fiddle with it myself

16bits, or 64k, that is.

Thiemo

#6 lore raw
Quoted 6 lines · Thiemo Seufer

Thiemo Seufer wrote:
[snip]

Quoted 4 lines
Quoted 4 lines
Quoted 3 lines
Quoted 1 line

Why is nsector uint32_t to begin with?

Because nobody sent a patch to fix it, I figure.

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

Actually I seem to recall it's because it's being overloaded for requests that are > 256 sectors. It would be a good cleanup to get rid of that an turn nsector into a proper uint8_t.

It appears to use 16k bits in some cases. I won't fiddle with it myself

16bits, or 64k, that is.

Yeah, it's for larger requests. It would be nice to track elsewhere, though. I'll take a look at it.

Signature · 1 line
Jens Axboe