hw/scsi: add initial SCSI tape device emulation
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
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
@@ -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
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
Signed-off-by Emmanuel Ugwu <[email protected]>Signed-off-by kantnero <[email protected]>
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.chw/scsi/meson.build +1
-0@@ -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
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
PATCH v2 1/1 hw/scsi: add scsi-tape device emulation support for QEMU
In reply to Emmanuel UgwuAdd 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
@@ -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