aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-06-22 11:53:01 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2022-07-13 16:58:57 +0200
commit3412f9c3b41c3a98f85f81476d5542ac7662bb06 (patch)
tree3dfbbb58163dd21e88366ee30059a1fde469db77
parent8154f5e64b0cfb836803ec6c11360075be66cd00 (diff)
downloadqemu-3412f9c3b41c3a98f85f81476d5542ac7662bb06.zip
qemu-3412f9c3b41c3a98f85f81476d5542ac7662bb06.tar.gz
qemu-3412f9c3b41c3a98f85f81476d5542ac7662bb06.tar.bz2
scsi-disk: add new quirks bitmap to SCSIDiskState
Since the MacOS SCSI implementation is quite old (and Apple added some firmware customisations to their drives for m68k Macs) there is need to add a mechanism to correctly handle Apple-specific quirks. Add a new quirks bitmap to SCSIDiskState that can be used to enable these features as required. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20220622105314.802852-2-mark.cave-ayland@ilande.co.uk> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--hw/scsi/scsi-disk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/scsi/scsi-disk.c b/hw/scsi/scsi-disk.c
index 91acb5c..55c19fb 100644
--- a/hw/scsi/scsi-disk.c
+++ b/hw/scsi/scsi-disk.c
@@ -94,6 +94,7 @@ struct SCSIDiskState {
uint16_t port_index;
uint64_t max_unmap_size;
uint64_t max_io_size;
+ uint32_t quirks;
QEMUBH *bh;
char *version;
char *serial;