diff options
author | Corey Bryant <coreyb@linux.vnet.ibm.com> | 2012-08-14 16:43:43 -0400 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-08-15 10:48:57 +0200 |
commit | ba1c048a8f9c4a62812a8735ebd4fde0cfd086e8 (patch) | |
tree | 81763c5e59a44cfa5fe003747afd52b72738f651 /default-configs | |
parent | 06138651f3347a4ad7527d48b1ccbeae89f9e7f6 (diff) | |
download | hqemu-ba1c048a8f9c4a62812a8735ebd4fde0cfd086e8.zip hqemu-ba1c048a8f9c4a62812a8735ebd4fde0cfd086e8.tar.gz |
qapi: Introduce add-fd, remove-fd, query-fdsets
This patch adds support that enables passing of file descriptors
to the QEMU monitor where they will be stored in specified file
descriptor sets.
A file descriptor set can be used by a client like libvirt to
store file descriptors for the same file. This allows the
client to open a file with different access modes (O_RDWR,
O_WRONLY, O_RDONLY) and add/remove the passed fds to/from an fd
set as needed. This will allow QEMU to (in a later patch in this
series) "open" and "reopen" the same file by dup()ing the fd in
the fd set that corresponds to the file, where the fd has the
matching access mode flag that QEMU requests.
The new QMP commands are:
add-fd: Add a file descriptor to an fd set
remove-fd: Remove a file descriptor from an fd set
query-fdsets: Return information describing all fd sets
Note: These commands are not compatible with the existing getfd
and closefd QMP commands.
Signed-off-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'default-configs')
0 files changed, 0 insertions, 0 deletions