Skip to contentSkip to conversation

hw/scsi: add initial SCSI tape device emulation

PATCH Superseded Emmanuel Ugwu 2 participants 4 messages May 13 – May 22 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

cover hw/scsi: add initial SCSI tape device emulation

This RFC adds the foundation for SCSI tape emulation in QEMU.

This patch implements realize and unrealize only. SCSI command handling will follow in subsequent patches.

Feedback needed on the overall structure.

Emmanuel Ugwu (1):
hw/scsi: add initial SCSI tape device emulation

 hw/scsi/meson.build |   1 +
 hw/scsi/scsi-tape.c | 221 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 222 insertions(+)
 create mode 100644 hw/scsi/scsi-tape.c
Signature · 1 line
2.54.0
#1 lore raw

PATCH 1/1 hw/scsi: add initial SCSI tape device emulation

From: kantnero <[email protected]>

Add a new scsi-tape device that attaches to a VirtIO SCSI bus. Implements realize and unrealize lifecycle only. SCSI command handling will follow in subsequent patches.

---
 hw/scsi/meson.build |   1 +
 hw/scsi/scsi-tape.c | 221 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 222 insertions(+)
 create mode 100644 hw/scsi/scsi-tape.c
hw/scsi/meson.build +1 -0
index 69fde0cf84..1699b6e591 100644
@@ -7,6 +7,7 @@ scsi_ss.add(files(
   'scsi-bus.c',
   'scsi-disk.c',
   'scsi-generic.c',
+  'scsi-tape.c',
 ))
 scsi_ss.add(when: 'CONFIG_ESP', if_true: files('esp.c'))
 scsi_ss.add(when: 'CONFIG_ESP_PCI', if_true: files('esp-pci.c'))
hw/scsi/scsi-tape.c new file +221 -0

221 lines not on this page · raw message

Signature · 1 line
2.54.0
#2 lore raw

Hi Emmanuel,

* Emmanuel Ugwu <[email protected]>:

Quoted 5 lines

From: kantnero <[email protected]>

Add a new scsi-tape device that attaches to a VirtIO SCSI bus. Implements realize and unrealize lifecycle only. SCSI command handling will follow in subsequent patches.

Ok.

Quoted 2 lines

Please use the first only.

Quoted 24 lines
---
 hw/scsi/meson.build |   1 +
 hw/scsi/scsi-tape.c | 221 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 222 insertions(+)
 create mode 100644 hw/scsi/scsi-tape.c
hw/scsi/meson.build +1 -0
index 69fde0cf84..1699b6e591 100644
@@ -7,6 +7,7 @@ scsi_ss.add(files(
   'scsi-bus.c',
   'scsi-disk.c',
   'scsi-generic.c',
+  'scsi-tape.c',
 ))
 scsi_ss.add(when: 'CONFIG_ESP', if_true: files('esp.c'))
 scsi_ss.add(when: 'CONFIG_ESP_PCI', if_true: files('esp-pci.c'))
hw/scsi/scsi-tape.c new file +0 -0
new file mode 100644
index 0000000000..650f75471f

hw/scsi/scsi-tape.c line 4

Quoted 4 lines
hw/scsi/scsi-tape.c new file +4 -0
@@ -0,0 +1,221 @@
+/*
+ *  SCSI Tape Device Emulation
+ *
+ *  Copyright (c) Emmanuel Ugwu <[email protected]>

Add copyright year.

I'm no qemu SCSI maintainer, but for me the rest looks OK.

I'm really looking forward to your first implementation!

Thanks!
Helge

#3 lore raw

PATCH v2 1/1 hw/scsi: add scsi-tape device emulation support for QEMU

In reply to Emmanuel Ugwu

Add copyright year to header

v2:
- Add copyright year.
- Split into 5 patches for easier review.

---
 hw/scsi/scsi-tape.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/scsi/scsi-tape.c +1 -1
index 650f75471f..17d9ce4e7b 100644
@@ -1,7 +1,7 @@
 /*
  *  SCSI Tape Device Emulation
  *
- *  Copyright (c) Emmanuel Ugwu <[email protected]>
+ *  Copyright (c) 2026 - Emmanuel Ugwu <[email protected]>
  *
  *  SPDX-License-Identifier: GPL-2.0-or-later
  */
Signature · 1 line
2.54.0