qmp_command: add qmp 'node-name' expect value for blockdev
The disk device qemu command line has two configurations:
1). blockdev config, eg:
-blockdev node-name=file_image1,driver=file,filename=/var/**.qcow2
-blockdev node-name=drive_image1,driver=qcow2,file=file_image1
2). disk drive config, eg:
-drive id=drive_image1,if=none,format=qcow2,file=/var/***.qcow2
If disk drive config, the expect value should be:
{'device': 'drive_image1', 'qdev': 'image1', 'format': 'qcow2'}
If blockdev config, the expect value should be:
{'node-name': 'drive_image1', 'qdev': 'image1', 'format': 'qcow2'}
Signed-off-by: NChen Qun <kuhn.chenqun@huawei.com>
Showing
想要评论请 注册 或 登录