Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed0b2144 authored by Stefan Hajnoczi's avatar Stefan Hajnoczi Committed by Nicholas Bellinger
Browse files

target: Handle GET_EVENT_STATUS_NOTIFICATION passthrough



The SCSI MMC GET_EVENT_STATUS_NOTIFICATION command can be used to find
out about media change, among other things.  This patch adds it to the
command sequencer so that PSCSI CD-ROM passthrough works with modern
Linux guests that issue this command.

Tested-by: default avatarCong Meng <mengcong@cn.ibm.com>
Signed-off-by: default avatarStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 381e309a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3143,6 +3143,10 @@ static int transport_generic_cmd_sequencer(
			cmd->sam_task_attr = MSG_HEAD_TAG;
		cmd->se_cmd_flags |= SCF_SCSI_CONTROL_SG_IO_CDB;
		break;
	case GET_EVENT_STATUS_NOTIFICATION:
		size = (cdb[7] << 8) | cdb[8];
		cmd->se_cmd_flags |= SCF_SCSI_CONTROL_SG_IO_CDB;
		break;
	default:
		pr_warn("TARGET_CORE[%s]: Unsupported SCSI Opcode"
			" 0x%02x, sending CHECK_CONDITION.\n",