hmp: Request permissions in qemu-io
The HMP command 'qemu-io' is a bit tricky because it wants to work on the original BlockBackend, but additional permissions could be required. The details are explained in a comment in the code, but in summary, just request whatever permissions the current qemu-io command needs. Signed-off-by:Kevin Wolf <kwolf@redhat.com> Reviewed-by:
Max Reitz <mreitz@redhat.com> Acked-by:
Fam Zheng <famz@redhat.com>
Showing
- block/block-backend.c 6 additions, 0 deletionsblock/block-backend.c
- hmp.c 25 additions, 1 deletionhmp.c
- include/qemu-io.h 1 addition, 0 deletionsinclude/qemu-io.h
- include/sysemu/block-backend.h 1 addition, 0 deletionsinclude/sysemu/block-backend.h
- qemu-io-cmds.c 28 additions, 0 deletionsqemu-io-cmds.c
Loading
Please register or sign in to comment