bootdevice: Gather LCHS from all relevant devices
commit71f571a23d732711908a5af8c24c56b218a44256
authorSam Eiderman <shmuel.eiderman@oracle.com>
Wed, 16 Oct 2019 16:41:42 +0000 (16 19:41 +0300)
committerJohn Snow <jsnow@redhat.com>
Thu, 31 Oct 2019 15:47:29 +0000 (31 11:47 -0400)
tree3a89efc41e551f16f98fec0f13a640f4b240397a
parent6b98c5aae65b432816b3f6d9ce765edf78d66864
bootdevice: Gather LCHS from all relevant devices

Relevant devices are:
    * ide-hd (and ide-cd, ide-drive)
    * scsi-hd (and scsi-cd, scsi-disk, scsi-block)
    * virtio-blk-pci

We do not call del_boot_device_lchs() for ide-* since we don't need to -
IDE block devices do not support unplugging.

Reviewed-by: Karl Heubaum <karl.heubaum@oracle.com>
Reviewed-by: Arbel Moshe <arbel.moshe@oracle.com>
Signed-off-by: Sam Eiderman <shmuel.eiderman@oracle.com>
Signed-off-by: Sam Eiderman <sameid@google.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
hw/block/virtio-blk.c
hw/ide/qdev.c
hw/scsi/scsi-disk.c