Message ID | 1328902266-25308-3-git-send-email-lcapitulino@redhat.com |
---|---|
State | New |
Headers | show |
Luiz Capitulino <lcapitulino@redhat.com> wrote: > Get the file-descriptor from 'cur_mon', will be used by the QAPI > converted migration command. > > Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> > Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com>
diff --git a/monitor.c b/monitor.c index aadbdcb..11639b1 100644 --- a/monitor.c +++ b/monitor.c @@ -2250,6 +2250,11 @@ static void do_loadvm(Monitor *mon, const QDict *qdict) } } +int qemu_get_fd(const char *fdname) +{ + return monitor_get_fd(cur_mon, fdname); +} + int monitor_get_fd(Monitor *mon, const char *fdname) { mon_fd_t *monfd; diff --git a/monitor.h b/monitor.h index b72ea07..58109af 100644 --- a/monitor.h +++ b/monitor.h @@ -56,6 +56,7 @@ int monitor_read_block_device_key(Monitor *mon, const char *device, BlockDriverCompletionFunc *completion_cb, void *opaque); +int qemu_get_fd(const char *fdname); int monitor_get_fd(Monitor *mon, const char *fdname); void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap)