All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] scsi: add support for FORMAT UNIT command and quirks
@ 2022-04-21  6:51 Mark Cave-Ayland
  2022-04-21  6:51 ` [PATCH 1/6] scsi-disk: add FORMAT UNIT command Mark Cave-Ayland
                   ` (6 more replies)
  0 siblings, 7 replies; 14+ messages in thread
From: Mark Cave-Ayland @ 2022-04-21  6:51 UTC (permalink / raw)
  To: pbonzini, laurent, fam, qemu-devel, qemu-block

Here are the next set of patches from my ongoing work to allow the q800
machine to boot MacOS related to SCSI devices.

The first patch implements a dummy FORMAT UNIT command which is used by
the Apple HD SC Setup program when preparing an empty disk to install
MacOS.

Patches 2 adds a new quirks bitmap to SCSIDiskState to allow buggy and/or
legacy features to enabled on an individual device basis. Once the quirks
bitmap has been added, patch 3 uses the quirks feature to implement an
Apple-specific mode page which is required to allow the disk to be recognised
and used by Apple HD SC Setup.

Patch 4 adds compat_props to the q800 machine which enable the MODE_PAGE_APPLE
quirk for all scsi-hd devices attached to the machine.

Finally patches 5 and 6 augment the compat_props to set the default vendor,
product and version information for all scsi-hd and scsi-cd devices attached
to the q800 machine, taken from real drives. This is because MacOS will only
allow a known set of SCSI devices to be recognised during the installation
process.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>


Mark Cave-Ayland (6):
  scsi-disk: add FORMAT UNIT command
  scsi-disk: add new quirks bitmap to SCSIDiskState
  scsi-disk: add MODE_PAGE_APPLE quirk for Macintosh
  q800: implement compat_props to enable quirk_mode_page_apple for
    scsi-hd devices
  q800: add default vendor, product and version information for scsi-hd
    devices
  q800: add default vendor, product and version information for scsi-cd
    devices

 hw/m68k/q800.c           | 12 ++++++++++++
 hw/scsi/scsi-disk.c      | 24 ++++++++++++++++++++++++
 hw/scsi/trace-events     |  1 +
 include/hw/scsi/scsi.h   |  3 +++
 include/scsi/constants.h |  1 +
 5 files changed, 41 insertions(+)

-- 
2.20.1



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-05-30 14:28 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-21  6:51 [PATCH 0/6] scsi: add support for FORMAT UNIT command and quirks Mark Cave-Ayland
2022-04-21  6:51 ` [PATCH 1/6] scsi-disk: add FORMAT UNIT command Mark Cave-Ayland
2022-05-30 14:23   ` Philippe Mathieu-Daudé via
2022-04-21  6:51 ` [PATCH 2/6] scsi-disk: add new quirks bitmap to SCSIDiskState Mark Cave-Ayland
2022-04-21  6:51 ` [PATCH 3/6] scsi-disk: add MODE_PAGE_APPLE quirk for Macintosh Mark Cave-Ayland
2022-04-21 13:27   ` Fam Zheng
2022-04-21 15:29     ` Mark Cave-Ayland
2022-04-21 18:11       ` Richard Henderson
2022-04-21 22:00         ` BALATON Zoltan
2022-04-24 14:50           ` Mark Cave-Ayland
2022-04-21  6:51 ` [PATCH 4/6] q800: implement compat_props to enable quirk_mode_page_apple for scsi-hd devices Mark Cave-Ayland
2022-04-21  6:51 ` [PATCH 5/6] q800: add default vendor, product and version information " Mark Cave-Ayland
2022-04-21  6:51 ` [PATCH 6/6] q800: add default vendor, product and version information for scsi-cd devices Mark Cave-Ayland
2022-04-24 14:54 ` [PATCH 0/6] scsi: add support for FORMAT UNIT command and quirks Mark Cave-Ayland

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.