Module device

Source
Expand description

A SCSI controller has SCSI target(s), a SCSI target has logical unit(s). crosvm currently supports only one logical unit in a target (LUN0), therefore a SCSI target is tied to a logical unit and a disk image belongs to a logical unit in crosvm.

Structsยง

AsyncLogicalUnit
A logical unit with an AsyncDisk as the disk.
Controller
Vitio device for exposing SCSI command operations on a host file.
DiskConfig
Configuration of each SCSI device.
LogicalUnit ๐Ÿ”’
Describes each SCSI logical unit.
Sense
Sense code representation
Targets ๐Ÿ”’
VirtioScsiCmdReqHeader ๐Ÿ”’
VirtioScsiCmdRespHeader ๐Ÿ”’

Enumsยง

ExecuteError
Errors that happen while handling scsi commands.
QueueType ๐Ÿ”’

Constantsยง

DEFAULT_MAX_CHANNEL ๐Ÿ”’
DEFAULT_MAX_LUN ๐Ÿ”’
DEFAULT_MAX_TARGET ๐Ÿ”’
DEFAULT_QUEUE_SIZE ๐Ÿ”’
FIXED_FORMAT_SENSE_SIZE ๐Ÿ”’
MAX_CMD_PER_LUN ๐Ÿ”’
MAX_NUM_QUEUES ๐Ÿ”’
MAX_SECTORS ๐Ÿ”’
MIN_NUM_QUEUES ๐Ÿ”’

Functionsยง

handle_queue ๐Ÿ”’
process_one_chain ๐Ÿ”’
process_one_request ๐Ÿ”’
run_worker ๐Ÿ”’

Type Aliasesยง

TargetId ๐Ÿ”’