projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef40561
)
scsi-disk: fix changeable values for MODE_PAGE_R_W_ERROR
author
Paolo Bonzini
<pbonzini@redhat.com>
Tue, 10 Jul 2012 12:04:51 +0000
(14:04 +0200)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Thu, 26 Jul 2012 15:44:10 +0000
(17:44 +0200)
The changeable values were not all-zeros for this mode page, fix it.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi-disk.c
patch
|
blob
|
history
diff --git
a/hw/scsi-disk.c
b/hw/scsi-disk.c
index
dca9866
..
7015420
100644
(file)
--- a/
hw/scsi-disk.c
+++ b/
hw/scsi-disk.c
@@
-1059,6
+1059,9
@@
static int mode_sense_page(SCSIDiskState *s, int page, uint8_t **p_outbuf,
case MODE_PAGE_R_W_ERROR:
length = 10;
+ if (page_control == 1) { /* Changeable Values */
+ break;
+ }
p[0] = 0x80; /* Automatic Write Reallocation Enabled */
if (s->qdev.type == TYPE_ROM) {
p[1] = 0x20; /* Read Retry Count */