qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 0/3] hw/scsi: Cleanup around scsi_bus_legacy_handle_cmdline()


From: Thomas Huth
Subject: Re: [PATCH 0/3] hw/scsi: Cleanup around scsi_bus_legacy_handle_cmdline()
Date: Fri, 22 Nov 2024 13:37:11 +0100
User-agent: Mozilla Thunderbird

On 22/11/2024 12.19, Philippe Mathieu-Daudé wrote:
When a device model requires legacy command line handling,
call scsi_bus_legacy_handle_cmdline() in its realize handler
instead of having each user call it.

This applies to:
  - spapr_vscsi
  - lsi53c810 / lsi53c895a
  - sysbus_esp

Note, scsi_bus_legacy_handle_cmdline() prototype could be
made private to hw/scsi/ to restrict its use to scsi device
implementations.

Not sure whether this is the right way to go ... shouldn't the handling of the legacy command line be rather part of the machine than being part of the SCSI controller device? Imagine for example a machine that has multiple, different SCSI controllers - I think you'd rather want to let the machine decide where the legacy devices should be grabbed from than having the SCSI controller devices fight for them...?

 Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]