qemu/include
Fam Zheng c5f52875b9 scsi: Change scsi sense buf size to 252
Current buffer size fails the assersion check in like

    hw/scsi/scsi-bus.c:1655:    assert(req->sense_len <= sizeof(req->sense));

when backend (block/iscsi.c) returns more data then 96.

Exercise the core dump path by booting an Gentoo ISO with scsi-generic
device backed with iscsi (built with libiscsi 1.7.0):

    x86_64-softmmu/qemu-system-x86_64 \
    -drive file=iscsi://localhost:3260/iqn.foobar/0,if=none,id=drive-disk \
    -device virtio-scsi-pci,id=scsi1,bus=pci.0,addr=0x6 \
    -device scsi-generic,drive=drive-disk,bus=scsi1.0,id=iscsi-disk \
    -boot d \
    -cdrom gentoo.iso

    qemu-system-x86_64: hw/scsi/scsi-bus.c:1655: scsi_req_complete:
    Assertion `req->sense_len <= sizeof(req->sense)' failed.

According to SPC-4, section 4.5.2.1, 252 is the limit of sense data. So
increase the value to fix it.

Also remove duplicated define for the macro.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2014-02-22 10:02:23 +01:00
..
block nbd: move socket wrappers to qemu-nbd 2014-02-21 21:02:23 +01:00
disas disas: Implement disassembly output for A64 2014-02-08 14:50:48 +00:00
exec exec: Make cpu_physical_memory_write_rom input an AS 2014-02-11 22:57:44 +10:00
fpu softfloat: Add support for ties-away rounding 2014-01-08 19:07:22 +00:00
hw scsi: Change scsi sense buf size to 252 2014-02-22 10:02:23 +01:00
migration vmstate: Add uint32 2D-array support 2014-02-08 14:50:48 +00:00
monitor quorum: Add quorum mechanism. 2014-02-21 22:29:50 +01:00
net net: declare struct iovec in checksum.h to fix compiler warning 2014-02-15 16:10:25 +04:00
qapi qapi: Add human mode to StringOutputVisitor 2014-02-14 21:12:03 +01:00
qemu qemu-option: has_help_option() and is_valid_option_list() 2014-02-21 22:10:17 +01:00
qom qapi: Add human mode to StringOutputVisitor 2014-02-14 21:12:03 +01:00
sysemu qtest: Don't segfault with invalid -qtest option 2014-02-14 21:12:01 +01:00
ui include: add missing config-host.h include 2013-12-16 10:12:20 +01:00
config.h janitor: move remaining public headers to include/ 2012-12-19 08:32:46 +01:00
elf.h tcg-s390: Use qemu_getauxval in query_facilities 2013-11-30 07:45:30 +13:00
glib-compat.h glib: add a compatibility interface for g_timeout_add_seconds 2013-03-25 13:10:40 -05:00
qemu-common.h blkverify: Extract qemu_iovec_clone() and qemu_iovec_compare() from blkverify. 2014-02-21 22:29:49 +01:00
qemu-io.h qemu-io: add command completion 2014-01-22 12:07:17 +01:00
trace.h build: some simplifications for "trace/Makefile.objs" 2013-01-12 18:42:51 +01:00