Re: [Qemu-devel] [PATCH 0/2] block: add blk_lookup() for getting device by node_name

2019-01-28 Thread Kevin Wolf
Am 28.01.2019 um 17:53 hat Anton Kuchin geschrieben: > On 28/01/2019 17:47, Kevin Wolf wrote: > > Am 28.01.2019 um 15:27 hat Anton Kuchin geschrieben: > > > Some HMP and QMP commands are targeting BlockBackend but > > > for hotplugged devices name of BB is deprecated, instead > > > name of root Blo

Re: [Qemu-devel] [PATCH 0/2] block: add blk_lookup() for getting device by node_name

2019-01-28 Thread Anton Kuchin
On 28/01/2019 17:47, Kevin Wolf wrote: Am 28.01.2019 um 15:27 hat Anton Kuchin geschrieben: Some HMP and QMP commands are targeting BlockBackend but for hotplugged devices name of BB is deprecated, instead name of root BlockDriverState is set. These patches add functions to search BB by attached

Re: [Qemu-devel] [PATCH 0/2] block: add blk_lookup() for getting device by node_name

2019-01-28 Thread Kevin Wolf
Am 28.01.2019 um 15:27 hat Anton Kuchin geschrieben: > Some HMP and QMP commands are targeting BlockBackend but > for hotplugged devices name of BB is deprecated, instead > name of root BlockDriverState is set. These patches add > functions to search BB by attached root BDS name. > > This approach

[Qemu-devel] [PATCH 0/2] block: add blk_lookup() for getting device by node_name

2019-01-28 Thread Anton Kuchin
Some HMP and QMP commands are targeting BlockBackend but for hotplugged devices name of BB is deprecated, instead name of root BlockDriverState is set. These patches add functions to search BB by attached root BDS name. This approach isn't perfect, but I couldn't invent a better one and I belive i