[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] boot: fix path pattern of scsi device
From: |
Amos Kong |
Subject: |
[Qemu-devel] [PATCH] boot: fix path pattern of scsi device |
Date: |
Tue, 28 May 2013 15:40:06 +0800 |
bootindex parameter of scsi device doesn't work, it causes
by wrong pattern in seabios.
qemu passes the following firmware dev_path to seabios:
/address@hidden/address@hidden/virtio-scsi-device/address@hidden/address@hidden,0
Signed-off-by: Amos Kong <address@hidden>
---
src/boot.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/boot.c b/src/boot.c
index c308602..cd9d784 100644
--- a/src/boot.c
+++ b/src/boot.c
@@ -138,10 +138,11 @@ int bootprio_find_scsi_device(struct pci_device *pci, int
target, int lun)
if (!pci)
// support only pci machine for now
return -1;
- // Find scsi drive - for example:
/address@hidden/address@hidden/address@hidden/address@hidden,0
+ /* Find scsi drive - for example:
+
/address@hidden/address@hidden/virtio-scsi-device/address@hidden/address@hidden,0
*/
char desc[256], *p;
p = build_pci_path(desc, sizeof(desc), "*", pci);
- snprintf(p, desc+sizeof(desc)-p, "/address@hidden/address@hidden,%d",
target, lun);
+ snprintf(p, desc+sizeof(desc)-p, "/*/address@hidden/address@hidden,%d",
target, lun);
return find_prio(desc);
}
--
1.8.1.4
- [Qemu-devel] [PATCH] boot: fix path pattern of scsi device,
Amos Kong <=