diff options
| author | Gleb Natapov <gleb@redhat.com> | 2010-12-08 13:35:05 +0200 |
|---|---|---|
| committer | Blue Swirl <blauwirbel@gmail.com> | 2010-12-11 21:32:46 +0000 |
| commit | 1ca4d09ae0bcc2fdd6aeef0fdc11f82394f7e757 (patch) | |
| tree | 6ce3a2ba2b2f643935d12ca9765ec6e4847ca4a4 /hw/scsi-disk.c | |
| parent | db07c0f84ba2bedea4b8201ccb62602fd5e64c28 (diff) | |
| download | focaccia-qemu-1ca4d09ae0bcc2fdd6aeef0fdc11f82394f7e757.tar.gz focaccia-qemu-1ca4d09ae0bcc2fdd6aeef0fdc11f82394f7e757.zip | |
Add bootindex parameter to net/block/fd device
If bootindex is specified on command line a string that describes device in firmware readable way is added into sorted list. Later this list will be passed into firmware to control boot order. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/scsi-disk.c')
| -rw-r--r-- | hw/scsi-disk.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index 851046fd55..87f9e8677e 100644 --- a/hw/scsi-disk.c +++ b/hw/scsi-disk.c @@ -1225,6 +1225,7 @@ static int scsi_disk_initfn(SCSIDevice *dev) s->qdev.type = TYPE_DISK; qemu_add_vm_change_state_handler(scsi_dma_restart_cb, s); bdrv_set_removable(s->bs, is_cd); + add_boot_device_path(s->qdev.conf.bootindex, &dev->qdev, ",0"); return 0; } |