mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
hw: Deprecate -drive if=scsi with non-onboard HBAs
Block backends defined with "-drive if=T" with T other than "none" are meant to be picked up by machine initialization code: a suitable frontend gets created and wired up automatically. Drives defined with if=scsi are also picked up by SCSI HBAs added with -device, unlike other interface types. Deprecate this usage, as follows. Create the frontends for onboard HBAs in machine initialization code, exactly like we do for if=ide and other interface types. Change scsi_legacy_handle_cmdline() to create a frontend only when it's still missing, and warn that this usage is deprecated. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <1487161136-9018-3-git-send-email-armbru@redhat.com>
This commit is contained in:
parent
fb8b660e17
commit
a64aa5785d
9 changed files with 35 additions and 7 deletions
|
@ -2268,3 +2268,10 @@ static void lsi53c895a_register_types(void)
|
|||
}
|
||||
|
||||
type_init(lsi53c895a_register_types)
|
||||
|
||||
void lsi53c895a_create(PCIBus *bus)
|
||||
{
|
||||
LSIState *s = LSI53C895A(pci_create_simple(bus, -1, "lsi53c895a"));
|
||||
|
||||
scsi_bus_legacy_handle_cmdline(&s->bus, false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue