Usb-hotplug » История » Версия 4
Андрей Волков, 2021-09-07 08:53
1 | 1 | Андрей Волков | h1. Usb-hotplug |
---|---|---|---|
2 | |||
3 | QMP-shell |
||
4 | |||
5 | *qmp-shell -H /run/qemu/qemu805.control.sock* |
||
6 | |||
7 | <pre> |
||
8 | drive_add auto file=/path/to/image.img,if=none,id=usb-flash |
||
9 | device_add nec-usb-xhci,id=xhci,bus=root |
||
10 | 2 | Андрей Волков | device_add usb-storage,bus=xhci.0,drive=usb-flash,id=usb-flash1 |
11 | 1 | Андрей Волков | </pre> |
12 | 3 | Андрей Волков | |
13 | <pre> |
||
14 | info qtree |
||
15 | 4 | Андрей Волков | info block |
16 | 3 | Андрей Волков | device_del usb-flash1 |
17 | 4 | Андрей Волков | |
18 | info block |
||
19 | info qtree |
||
20 | 3 | Андрей Волков | </pre> |