From: "Dr. David Alan Gilbert (git)" <dgilbert@redhat.com>
To: qemu-devel@nongnu.org, armbru@redhat.com, thuth@redhat.com,
quintela@redhat.com
Subject: [PATCH 0/2] monitor openfd commands
Date: Thu, 11 Jun 2020 12:17:01 +0100 [thread overview]
Message-ID: <20200611111703.159590-1-dgilbert@redhat.com> (raw)
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
The monitors currently have a 'getfd' command that lets you pass an fd
via the monitor socket. 'openfd' is a new command that opens a file
and puts the fd in the same fd pool. The file is opened RW and created
if it doesn't exist.
It makes it easy to test migration to and from a file.
Dr. David Alan Gilbert (2):
qmp: Add 'openfd' command
hmp: Add 'openfd' command
hmp-commands.hx | 16 +++++++++++++-
include/monitor/hmp.h | 1 +
monitor/hmp-cmds.c | 10 +++++++++
monitor/misc.c | 48 +++++++++++++++++++++++++++++++++---------
qapi/misc.json | 23 +++++++++++++++++++-
tests/qtest/test-hmp.c | 2 ++
6 files changed, 88 insertions(+), 12 deletions(-)
--
2.26.2
next reply other threads:[~2020-06-11 11:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-11 11:17 Dr. David Alan Gilbert (git) [this message]
2020-06-11 11:17 ` [PATCH 1/2] qmp: Add 'openfd' command Dr. David Alan Gilbert (git)
2020-06-11 14:34 ` Eric Blake
2020-06-11 11:17 ` [PATCH 2/2] hmp: " Dr. David Alan Gilbert (git)
2020-06-11 14:31 ` [PATCH 0/2] monitor openfd commands Eric Blake
2020-06-11 16:45 ` Dr. David Alan Gilbert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200611111703.159590-1-dgilbert@redhat.com \
--to=dgilbert@redhat.com \
--cc=armbru@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).