summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonglei2015-08-26 03:52:51 +0200
committerPaolo Bonzini2015-09-09 15:34:55 +0200
commitf42bf6a262ab5923a1a3bc8f731b830396937c47 (patch)
tree61d92589ddbaccce08c0fc71a7e5256f35d2423d
parentcheckpatch: remove tests that are not relevant outside the kernel (diff)
downloadqemu-f42bf6a262ab5923a1a3bc8f731b830396937c47.tar.gz
qemu-f42bf6a262ab5923a1a3bc8f731b830396937c47.tar.xz
qemu-f42bf6a262ab5923a1a3bc8f731b830396937c47.zip
vhost-scsi: fix wrong vhost-scsi firmware path
vhost-scsi bootindex does't work because Qemu passes wrong fireware path to seabios. before: /pci@i0cf8/scsi@7channel@0/vhost-scsi@0,0 after applying the patch: /pci@i0cf8/scsi@7/channel@0/vhost-scsi@0,0 Reported-by: Subo <subo7@huawei.com> Signed-off-by: Gonglei <arei.gonglei@huawei.com> Message-Id: <1440553971-11108-1-git-send-email-arei.gonglei@huawei.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--hw/scsi/vhost-scsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/scsi/vhost-scsi.c b/hw/scsi/vhost-scsi.c
index 7eacca9dc5..bac9ddb1d9 100644
--- a/hw/scsi/vhost-scsi.c
+++ b/hw/scsi/vhost-scsi.c
@@ -292,7 +292,7 @@ static char *vhost_scsi_get_fw_dev_path(FWPathProvider *p, BusState *bus,
{
VHostSCSI *s = VHOST_SCSI(dev);
/* format: channel@channel/vhost-scsi@target,lun */
- return g_strdup_printf("channel@%x/%s@%x,%x", s->channel,
+ return g_strdup_printf("/channel@%x/%s@%x,%x", s->channel,
qdev_fw_name(dev), s->target, s->lun);
}