qemu-irix/hw
Hannes Reinecke a1f0cce2ac scsi: Update sense code handling
The SCSI spec has a quite detailed list of sense codes available.
It even mandates the use of specific ones for some failure cases.
The current implementation just has one type of generic error
which is actually a violation of the spec in certain cases.
This patch introduces various predefined sense codes to have the
sense code reporting more in line with the spec.

On top of Hannes's patch I fixed the reply to REQUEST SENSE commands
with DESC=0 and a small (<18) length.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
2011-05-26 12:14:16 +02:00
..
9pfs v9fs_walk: As per 9p2000 RFC, MAXWELEM >= nwnames >= 0. 2011-04-27 08:27:25 -07:00
ide ahci: Fix non-NCQ accesses for LBA > 16bits 2011-05-19 12:08:28 +02:00
9p.h
a9mpcore.c
ac97.c ac97: Remove unused local variables 2011-05-08 10:59:05 +01:00
acpi.c
acpi.h
acpi_piix4.c Ignore pci unplug requests for unpluggable devices (CVE-2011-1751) 2011-05-19 11:06:49 +02:00
adb.c vmstate: port adb_mouse 2011-04-22 14:41:40 -05:00
adlib.c
ads7846.c vmstate: port ads7846 2011-04-22 14:41:40 -05:00
alpha_palcode.c
an5206.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
apb_pci.c
apb_pci.h
apic.c
apic.h
apm.c
apm.h
applesmc.c
arm-misc.h
arm11mpcore.c
arm_boot.c hw/arm_boot.c: move initrd load address up to accommodate large kernels 2011-04-20 13:01:04 +02:00
arm_gic.c
arm_pic.c
arm_sysctl.c
arm_timer.c vmstate: port arm_timer 2011-04-22 14:41:40 -05:00
armv7m.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
armv7m_nvic.c vmstate: port armv7m nvic 2011-04-22 14:41:41 -05:00
audiodev.h
axis_dev88.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
baum.c
baum.h
bitbang_i2c.c
bitbang_i2c.h
blizzard.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
blizzard_template.h
boards.h machine, Add default_machine_opts to QEMUMachine. 2011-05-08 10:09:59 +02:00
bonito.c
bt-hci-csr.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
bt-hci.c
bt-hid.c
bt-l2cap.c
bt-sdp.c
bt.c
bt.h Fix typos in comments and code (occured -> occurred and related) 2011-05-08 10:02:18 +01:00
cbus.c
ccid-card-emulated.c
ccid-card-passthru.c
ccid.h
cdrom.c
cirrus_vga.c
cirrus_vga_rop.h
cirrus_vga_rop2.h
collie.c Basic implementation of Sharp Zaurus SL-5500 collie PDA 2011-04-20 12:59:15 +02:00
cris-boot.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
cris-boot.h
cris_pic_cpu.c
cs4231.c
cs4231a.c
cuda.c vmstate: port cuda 2011-04-22 14:41:41 -05:00
debugcon.c
dec_pci.c
dec_pci.h
device-hotplug.c
devices.h
dma.c
dp8393x.c
ds1225y.c
ds1338.c
dummy_m68k.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
e1000.c PXE: Use consistent naming for PXE ROMs 2011-04-18 11:46:01 -06:00
e1000_hw.h
ecc.c
eccmemctl.c
eepro100.c Fix typo in code and comments 2011-05-06 08:19:25 +01:00
eeprom93xx.c Fix typo in code and comments 2011-05-06 08:19:25 +01:00
eeprom93xx.h
elf_ops.h
empty_slot.c
empty_slot.h
es1370.c
escc.c
escc.h
esp.c scsi: introduce scsi_req_cancel 2011-05-26 12:14:15 +02:00
esp.h
etraxfs.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
etraxfs.h
etraxfs_dma.c
etraxfs_dma.h
etraxfs_eth.c
etraxfs_pic.c
etraxfs_ser.c
etraxfs_timer.c
event_notifier.c
event_notifier.h
fdc.c
fdc.h
firmware_abi.h
flash.h nand: pin values are uint8_t 2011-04-22 14:41:43 -05:00
fmopl.c
fmopl.h
framebuffer.c
framebuffer.h
fw_cfg.c
fw_cfg.h
g364fb.c
grackle_pci.c
grlib.h
grlib_apbuart.c trace: Remove %s in grlib trace events 2011-04-26 13:14:49 +01:00
grlib_gptimer.c trace: Remove %s in grlib trace events 2011-04-26 13:14:49 +01:00
grlib_irqmp.c trace: Remove %s in grlib trace events 2011-04-26 13:14:49 +01:00
gt64xxx.c
gumstix.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
gus.c
gusemu.h
gusemu_hal.c
gusemu_mixer.c
gustate.h
hda-audio.c
heathrow_pic.c vmstate: port heathrow_pic 2011-04-22 14:41:41 -05:00
hpet.c
hpet_emul.h
hw.h vmstate: port pmtimer 2011-04-22 14:41:40 -05:00
i2c.c
i2c.h
i8254.c
i8259.c
ide.h
integratorcp.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
intel-hda-defs.h
intel-hda.c MSI: Robust resource release 2011-05-05 16:10:08 +03:00
intel-hda.h
ioapic.c ioapic: Do not set irr for masked edge IRQs 2011-04-27 20:04:51 +02:00
ioapic.h
ioh3420.c
ioh3420.h
irq.c
irq.h
isa-bus.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
isa.h
isa_mmio.c
ivshmem.c
jazz_led.c
kvmclock.c kvm: create kvmclock when one of the flags are present 2011-05-02 09:38:35 -03:00
kvmclock.h
lan9118.c Fix typos in comments (imediately -> immediately) 2011-05-08 10:02:17 +01:00
lance.c
leon3.c
lm32.h
lm32_boards.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
lm32_hwsetup.h
lm32_juart.c
lm32_juart.h
lm32_pic.c
lm32_pic.h
lm32_sys.c
lm32_timer.c
lm32_uart.c
lm832x.c
loader.c
loader.h
lsi53c895a.c scsi: introduce scsi_req_cancel 2011-05-26 12:14:15 +02:00
m48t59.c vmstate: port m48t59 2011-04-22 14:41:40 -05:00
mac_dbdma.c vmstate: port mac_dbdma 2011-04-22 14:41:43 -05:00
mac_dbdma.h
mac_nvram.c vmstate: port mac_nvram 2011-04-22 14:41:43 -05:00
macio.c
mainstone.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
marvell_88w8618_audio.c
max111x.c vmstate: port max111x 2011-04-22 14:41:43 -05:00
max7310.c
mc146818rtc.c
mc146818rtc.h
mcf.h
mcf5206.c
mcf5208.c
mcf_fec.c
mcf_intc.c
mcf_uart.c
microblaze_pic_cpu.c
milkymist-ac97.c
milkymist-hpdmc.c
milkymist-hw.h lm32: add Milkymist Minimac2 support 2011-05-03 10:48:40 +02:00
milkymist-memcard.c
milkymist-minimac2.c lm32: add Milkymist Minimac2 support 2011-05-03 10:48:40 +02:00
milkymist-pfpu.c
milkymist-softusb.c
milkymist-sysctl.c milkymist-sysctl: fix timers 2011-05-03 10:48:40 +02:00
milkymist-tmu2.c
milkymist-uart.c
milkymist-vgafb.c milkymist-vgafb: fix console resizing 2011-05-03 10:48:40 +02:00
milkymist-vgafb_template.h
milkymist.c lm32: add Milkymist Minimac2 support 2011-05-03 10:48:40 +02:00
mips-bios.h
mips.h
mips_addr.c
mips_cpudevs.h
mips_fulong2e.c
mips_int.c
mips_jazz.c
mips_malta.c
mips_mipssim.c
mips_r4k.c
mips_timer.c
mipsnet.c vmstate: port mipsnet 2011-04-22 14:41:40 -05:00
mpcore.c
msi.c Fix typo in code and comments 2011-05-06 08:19:25 +01:00
msi.h
msix.c Fix typo in code and comments 2011-05-06 08:19:25 +01:00
msix.h
msmouse.c
msmouse.h
mst_fpga.c Fix typos in comments (interupt -> interrupt) 2011-05-08 10:02:17 +01:00
multiboot.c
multiboot.h
musicpal.c
nand.c vmstate: port nand 2011-04-22 14:41:43 -05:00
ne2000-isa.c
ne2000.c PXE: Use consistent naming for PXE ROMs 2011-04-18 11:46:01 -06:00
ne2000.h
nseries.c
nvram.h
omap.h
omap1.c
omap2.c
omap_clk.c
omap_dma.c
omap_dss.c
omap_gpio.c
omap_gpmc.c
omap_gptimer.c
omap_i2c.c
omap_intc.c
omap_l4.c
omap_lcd_template.h
omap_lcdc.c
omap_mmc.c
omap_sdrc.c
omap_spi.c
omap_sx1.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
omap_synctimer.c
omap_tap.c
omap_uart.c
onenand.c
openpic.c
openpic.h
palm.c
parallel.c
pc.c pc, Disable vmport initialisation with Xen. 2011-05-08 10:10:00 +02:00
pc.h piix_pci: Introduces Xen specific call for irq. 2011-05-08 10:10:00 +02:00
pc_piix.c xen: Add Xen hypercall for sleep state in the cmos_s3 callback. 2011-05-08 10:10:02 +02:00
pci-hotplug.c
pci-stub.c
pci.c Merge remote-tracking branch 'stefanha/trivial-patches' into staging 2011-05-12 08:08:12 -05:00
pci.h Fix typo in code and comments 2011-05-06 08:19:25 +01:00
pci_bridge.c
pci_bridge.h
pci_host.c
pci_host.h
pci_ids.h
pci_internals.h
pci_regs.h Fix typo in comment (auxilliary -> auxiliary) 2011-05-08 10:02:16 +01:00
pcie.c Fix typos in comments and code (occured -> occurred and related) 2011-05-08 10:02:18 +01:00
pcie.h Fix typos in comments and code (occured -> occurred and related) 2011-05-08 10:02:18 +01:00
pcie_aer.c Fix typo in comment (responsiblity -> responsibility) 2011-05-08 10:02:18 +01:00
pcie_aer.h
pcie_host.c
pcie_host.h
pcie_port.c
pcie_port.h
pcie_regs.h
pckbd.c
pcmcia.h
pcnet-pci.c Merge remote branch 'origin/master' into pci 2011-05-05 16:39:47 +03:00
pcnet.c
pcnet.h
pcspk.c
petalogix_ml605_mmu.c
petalogix_s3adsp1800_mmu.c
pflash_cfi01.c
pflash_cfi02.c Fix typos in comments and code (occured -> occurred and related) 2011-05-08 10:02:18 +01:00
piix4.c vmstate: port piix4 2011-04-22 14:41:43 -05:00
piix_pci.c piix_pci: fix piix3_set_irq_pic() 2011-05-22 22:31:45 +01:00
pixel_ops.h
pl011.c vmstate: port pl011 2011-04-22 14:41:41 -05:00
pl022.c vmstate: port pl022 ssp 2011-04-22 14:41:41 -05:00
pl031.c Fix typos in comments (interupt -> interrupt) 2011-05-08 10:02:17 +01:00
pl050.c
pl061.c Fix typos in comments (interupt -> interrupt) 2011-05-08 10:02:17 +01:00
pl080.c
pl110.c
pl110_template.h
pl181.c
pl190.c
pm_smbus.c
pm_smbus.h
ppc-viosrp.h
ppc.c monitor: add PPC BookE SPRs 2011-05-09 22:31:37 +02:00
ppc.h
ppc4xx.h
ppc4xx_devs.c Fix typos in comments (instanciation -> instantiation) 2011-05-08 10:02:18 +01:00
ppc4xx_pci.c vmstate: port ppc4xx_pci 2011-04-22 14:41:42 -05:00
ppc405.h
ppc405_boards.c
ppc405_uc.c
ppc440.c
ppc440.h
ppc440_bamboo.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
ppc_mac.h
ppc_newworld.c
ppc_oldworld.c
ppc_prep.c
ppce500_mpc8544ds.c PPC: Qdev'ify e500 pci 2011-05-12 00:24:52 +02:00
ppce500_pci.c PPC: Qdev'ify e500 pci 2011-05-12 00:24:52 +02:00
prep_pci.c
prep_pci.h
primecell.h
ps2.c
ps2.h
ptimer.c vmstate: port pmtimer 2011-04-22 14:41:40 -05:00
pxa.h
pxa2xx.c vmstate: port pxa2xx_pm 2011-04-22 14:41:41 -05:00
pxa2xx_dma.c
pxa2xx_gpio.c
pxa2xx_keypad.c vmstate: port pxa2xx_keypad 2011-04-22 14:41:40 -05:00
pxa2xx_lcd.c vmstate: port pxa2xx_lcd 2011-04-22 14:41:43 -05:00
pxa2xx_mmci.c
pxa2xx_pcmcia.c
pxa2xx_pic.c
pxa2xx_template.h
pxa2xx_timer.c
qdev-addr.c
qdev-addr.h
qdev-properties.c char: Allow devices to use a single multiplexed chardev. 2011-04-28 11:03:07 +05:30
qdev.c
qdev.h
qxl-logger.c
qxl-render.c spice: don't call displaystate callbacks from spice server context. 2011-05-03 15:35:48 +02:00
qxl.c spice: drop obsolete iothread locking 2011-05-03 15:35:48 +02:00
qxl.h
r2d.c
rc4030.c
realview.c hw/realview.c: Remove duplicate #include line 2011-05-22 22:31:45 +01:00
realview_gic.c
rtl8139.c Fix typo in code and comments 2011-05-06 08:19:25 +01:00
s390-virtio-bus.c s390x: keep hint on virtio managing size 2011-05-20 17:35:12 +02:00
s390-virtio-bus.h s390x: keep hint on virtio managing size 2011-05-20 17:35:12 +02:00
s390-virtio.c s390x: fix memory detection for guests > 64GB 2011-05-20 17:35:13 +02:00
sb16.c
sbi.c
scsi-bus.c scsi: Update sense code handling 2011-05-26 12:14:16 +02:00
scsi-defs.h
scsi-disk.c scsi: Update sense code handling 2011-05-26 12:14:16 +02:00
scsi-generic.c scsi: Update sense code handling 2011-05-26 12:14:16 +02:00
scsi.h scsi: Update sense code handling 2011-05-26 12:14:16 +02:00
sd.c hw/sd.c: Don't complain about SDIO commands CMD52/CMD53 2011-05-22 22:31:45 +01:00
sd.h
serial.c
sh.h
sh7750.c
sh7750_regnames.c
sh7750_regnames.h
sh7750_regs.h Fix typos in comments (accessable -> accessible, priveleged -> privileged) 2011-05-08 10:02:16 +01:00
sh_intc.c
sh_intc.h
sh_pci.c
sh_serial.c
sh_timer.c
sharpsl.h
shix.c
slavio_intctl.c
slavio_misc.c
slavio_timer.c
sm501.c
sm501_template.h
smbios.c
smbios.h
smbus.c
smbus.h
smbus_eeprom.c
smc91c111.c
soc_dma.c
soc_dma.h
spapr.c Place pseries vty devices at addresses more similar to existing machines 2011-05-09 22:31:37 +02:00
spapr.h
spapr_hcall.c pSeries: Clean up write-only variables 2011-05-20 17:56:03 +02:00
spapr_llan.c pSeries: Clean up write-only variables 2011-05-20 17:56:03 +02:00
spapr_rtas.c Place pseries vty devices at addresses more similar to existing machines 2011-05-09 22:31:37 +02:00
spapr_vio.c
spapr_vio.h Place pseries vty devices at addresses more similar to existing machines 2011-05-09 22:31:37 +02:00
spapr_vscsi.c scsi: introduce scsi_req_cancel 2011-05-26 12:14:15 +02:00
spapr_vty.c
sparc32_dma.c
sparc32_dma.h
spitz.c
srp.h
ssd0303.c Fix typo in comment (colum -> column) 2011-05-08 10:02:16 +01:00
ssd0323.c
ssi-sd.c
ssi.c
ssi.h
stellaris.c vmstate: stellaris use unused for placeholder entries 2011-04-22 14:41:42 -05:00
stellaris_enet.c
stellaris_input.c vmstate: port stellaris gamepad 2011-04-22 14:41:42 -05:00
strongarm.c Implement basic part of SA-1110/SA-1100 2011-04-20 12:59:15 +02:00
strongarm.h Implement basic part of SA-1110/SA-1100 2011-04-20 12:59:15 +02:00
sun4c_intctl.c
sun4m.c
sun4m.h
sun4m_iommu.c Fix typo in code and comments 2011-05-06 08:19:25 +01:00
sun4u.c
syborg.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
syborg.h
syborg_fb.c
syborg_interrupt.c
syborg_keyboard.c vmstate: port syborg_keyboard 2011-04-22 14:41:42 -05:00
syborg_pointer.c vmstate: port syborg_pointer 2011-04-22 14:41:42 -05:00
syborg_rtc.c vmstate: port syborg_rtc 2011-04-22 14:41:40 -05:00
syborg_serial.c Fix typos in comments (imediately -> immediately) 2011-05-08 10:02:17 +01:00
syborg_timer.c vmstate: port sysborg_timer 2011-04-22 14:41:40 -05:00
syborg_virtio.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
sysbus.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
sysbus.h
tc6393xb.c
tc6393xb_template.h
tc58128.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
tcx.c
tmp105.c
tosa.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
tsc210x.c
tsc2005.c
tusb6010.c
twl92230.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
unin_pci.c
usb-bt.c
usb-bus.c
usb-ccid.c
usb-desc.c
usb-desc.h
usb-hid.c Use qemu-common.h or qemu-timer.h in place of sysemu.h 2011-04-15 18:25:44 +00:00
usb-hub.c usb: move complete callback to port ops 2011-05-04 14:11:08 +02:00
usb-msd.c scsi: introduce scsi_req_cancel 2011-05-26 12:14:15 +02:00
usb-musb.c usb-musb: uninline functions 2011-05-09 10:02:44 +02:00
usb-net.c
usb-ohci.c Merge remote-tracking branch 'mst/for_anthony' into staging 2011-05-05 13:05:32 -05:00
usb-ohci.h
usb-serial.c
usb-uhci.c usb: move complete callback to port ops 2011-05-04 14:11:08 +02:00
usb-uhci.h
usb-wacom.c
usb.c usb: control buffer fixes 2011-05-04 12:25:52 +02:00
usb.h usb: move complete callback to port ops 2011-05-04 14:11:08 +02:00
versatile_pci.c
versatilepb.c
vexpress.c
vga-isa-mm.c
vga-isa.c
vga-pci.c
vga.c
vga_int.h
vga_template.h
vhost.c
vhost.h
vhost_net.c
vhost_net.h
virtex_ml507.c
virtio-balloon.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
virtio-balloon.h
virtio-blk.c
virtio-blk.h
virtio-console.c virtio-console: notify backend of guest open / close 2011-04-28 11:02:28 +05:30
virtio-net.c
virtio-net.h
virtio-pci.c PXE: Use consistent naming for PXE ROMs 2011-04-18 11:46:01 -06:00
virtio-serial-bus.c virtio-serial: Fix endianness bug in the config space 2011-04-28 12:35:49 +05:30
virtio-serial.h
virtio.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
virtio.h
vmmouse.c
vmport.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
vmware_vga.c
vmware_vga.h
vt82c686.c
vt82c686.h
watchdog.c
watchdog.h
wdt_i6300esb.c
wdt_ib700.c
wm8750.c
xen.h xen: Add Xen hypercall for sleep state in the cmos_s3 callback. 2011-05-08 10:10:02 +02:00
xen_backend.c xen: Add initialisation of Xen 2011-05-08 10:10:00 +02:00
xen_backend.h xen: Support new libxc calls from xen unstable. 2011-05-08 10:09:59 +02:00
xen_blkif.h
xen_common.h xen: Initialize event channels and io rings 2011-05-08 10:10:01 +02:00
xen_console.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
xen_devconfig.c blockdev: Store -drive option media in DriveInfo 2011-05-19 10:26:21 +02:00
xen_disk.c hw/xen_disk: Remove unused local variable 2011-05-18 14:38:45 +02:00
xen_domainbuild.c xen: Support new libxc calls from xen unstable. 2011-05-08 10:09:59 +02:00
xen_domainbuild.h
xen_machine_pv.c xen: Add initialisation of Xen 2011-05-08 10:10:00 +02:00
xen_nic.c xen: Replace some tab-indents with spaces (clean-up). 2011-05-08 10:09:59 +02:00
xenfb.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
xics.c
xics.h
xilinx.h
xilinx_axidma.c Fix typos in comment (threshhold -> threshold, mapp -> map) 2011-05-08 10:02:18 +01:00
xilinx_axidma.h
xilinx_axienet.c
xilinx_ethlite.c
xilinx_intc.c
xilinx_timer.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
xilinx_uartlite.c
xio3130_downstream.c
xio3130_downstream.h
xio3130_upstream.c
xio3130_upstream.h
zaurus.c