You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/hw/scsi
Mark Cave-Ayland 6f8ce26bb0 esp.c: only allow ESP commands permitted in the current asc_mode
If an ESP command is issued in an incorrect mode then an illegal command
interrupt should be generated. Add a new esp_cmd_is_valid() function to
indicate whether the ESP command is valid for the current mode, and if not
then raise the illegal command interrupt.

This fixes WinNT MIPS which issues ICCS after a Chip Reset which is not
permitted, but will fail with an INACCESSIBLE_BOOT_DEVICE error unless an
interrupt is generated.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Fixes: 83428f7a97 ("esp.c: move write_response() non-DMA logic to esp_do_nodma()")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2464
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20250711204636.542964-8-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
4 weeks ago
..
Kconfig hw/scsi: Introduce VHOST_SCSI_COMMON symbol in Kconfig 2 years ago
emulation.c scsi-generic: avoid invalid access to struct when emulating block limits 7 years ago
esp-pci.c qom: Make InterfaceInfo[] uses const 4 months ago
esp.c esp.c: only allow ESP commands permitted in the current asc_mode 4 weeks ago
lsi53c895a.c hw/scsi/lsi53c895a: skip automatic zero-init of large array 2 months ago
megasas.c hw/scsi/megasas: skip automatic zero-init of large arrays 2 months ago
meson.build hw/virtio: Build various target-agnostic objects just once 2 years ago
mfi.h hw/other: spelling fixes 2 years ago
mpi.h hw: Add support for LSI SAS1068 (mptsas) device 10 years ago
mptconfig.c nomaintainer: Fix Lesser GPL version number 5 years ago
mptendian.c include: Rename sysemu/ -> system/ 8 months ago
mptsas.c qom: Make InterfaceInfo[] uses const 4 months ago
mptsas.h include/hw/pci: Split pci_device.h off pci.h 3 years ago
scsi-bus.c system/runstate: add VM state change cb with return value 3 months ago
scsi-disk.c scsi-disk: Advertise FUA support by default 3 months ago
scsi-generic.c qom: Have class_init() take a const data argument 4 months ago
spapr_vscsi.c qom: Have class_init() take a const data argument 4 months ago
srp.h spapr-vscsi: add task management 12 years ago
trace-events esp.c: only allow ESP commands permitted in the current asc_mode 4 weeks ago
trace.h trace: switch position of headers to what Meson requires 5 years ago
vhost-scsi-common.c vhost-user: return failure if backend crash when live migration 3 months ago
vhost-scsi.c vhost-scsi: support VIRTIO_SCSI_F_HOTPLUG 3 months ago
vhost-user-scsi.c vhost-user: return failure if backend crash when live migration 3 months ago
viosrp.h Updated the FSF address to <https://www.gnu.org/licenses/> 2 years ago
virtio-scsi-dataplane.c virtio-scsi: only expose cmd vqs via iothread-vq-mapping 5 months ago
virtio-scsi.c qom: Make InterfaceInfo[] uses const 4 months ago
vmw_pvscsi.c hw/scsi/vmw_pvscsi: Convert DeviceRealize -> InstanceInit 2 months ago
vmw_pvscsi.h hw: replace FSF postal address with licenses URL 2 months ago