summaryrefslogtreecommitdiff
path: root/include/qemu-io.h
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2017-02-10 16:24:56 +0100
committerKevin Wolf <kwolf@redhat.com>2017-02-28 20:47:50 +0100
commit887354bd13ecb7ff68ec26892806c97512b77877 (patch)
treeb6c36a3eeaaed92bf92e60ed601ec3e8648401f5 /include/qemu-io.h
parent0db832f42e445398b2815cd740e9cd915e7dd644 (diff)
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>
Diffstat (limited to 'include/qemu-io.h')
-rw-r--r--include/qemu-io.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/qemu-io.h b/include/qemu-io.h
index 4d402b9b01..196fde0f3a 100644
--- a/include/qemu-io.h
+++ b/include/qemu-io.h
@@ -36,6 +36,7 @@ typedef struct cmdinfo {
const char *args;
const char *oneline;
helpfunc_t help;
+ uint64_t perm;
} cmdinfo_t;
extern bool qemuio_misalign;