On 2015/1/21 18:52, Paolo Bonzini wrote:
>
>
> On 21/01/2015 03:14, Gonglei wrote:
>> On 2015/1/21 0:10, Paolo Bonzini wrote:
>>
>>>
>>>
>>> On 19/01/2015 14:23, arei.gong...@huawei.com wrote:
@@ -780,6 +788,12 @@ static int qdev_get_fw_dev_path_helper(DeviceState
*dev, char *p, int s
On 21/01/2015 03:14, Gonglei wrote:
> On 2015/1/21 0:10, Paolo Bonzini wrote:
>
>>
>>
>> On 19/01/2015 14:23, arei.gong...@huawei.com wrote:
>>> @@ -780,6 +788,12 @@ static int qdev_get_fw_dev_path_helper(DeviceState
>>> *dev, char *p, int size)
>>> d = bus_get_fw_dev_path(dev->par
On 2015/1/21 0:10, Paolo Bonzini wrote:
>
>
> On 19/01/2015 14:23, arei.gong...@huawei.com wrote:
>> @@ -780,6 +788,12 @@ static int qdev_get_fw_dev_path_helper(DeviceState
>> *dev, char *p, int size)
>> d = bus_get_fw_dev_path(dev->parent_bus, dev);
>> }
>> if (d
On 19/01/2015 14:23, arei.gong...@huawei.com wrote:
> @@ -780,6 +788,12 @@ static int qdev_get_fw_dev_path_helper(DeviceState *dev,
> char *p, int size)
> d = bus_get_fw_dev_path(dev->parent_bus, dev);
> }
> if (d) {
> +l += snprintf(p + l, size - l, "%
From: Gonglei
commit 6b1566c (qdev: Introduce FWPathProvider interface) did a
good job for supproting to get firmware path on some different
architectures.
Moreover further more, we can use the interface to get firmware
path name for a device which isn't attached a specific bus,
such as virtio-b