Add getfd and closefd monitor commands
authorMark McLoughlin <markmc@redhat.com>
Wed, 22 Jul 2009 08:11:40 +0000 (09:11 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 27 Jul 2009 13:39:28 +0000 (08:39 -0500)
commitf07918fdff76ace82b1ca3e53bbcddef069eb314
tree3328e81b61bb0e1cc4144d840bf179a205af7733
parent7d1740590b6550b2b8ab4901e4f0b704d9733383
Add getfd and closefd monitor commands

Add monitor commands to support passing file descriptors via
SCM_RIGHTS.

getfd assigns the passed file descriptor a name for use with other
monitor commands.

closefd allows passed file descriptors to be closed. If a monitor
command actually uses a named file descriptor, closefd will not be
required.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
monitor.c
qemu-monitor.hx