From: Juan Quintela <quintela@redhat.com>
To: Peter Xu <peterx@redhat.com>
Cc: qemu-devel@nongnu.org, dgilbert@redhat.com, lvivier@redhat.com
Subject: Re: [Qemu-devel] [PATCH 3/9] migration: Export qemu-file-channel.c functions in its own file
Date: Thu, 18 May 2017 15:26:23 +0200 [thread overview]
Message-ID: <871srm9tz4.fsf@secure.mitica> (raw)
In-Reply-To: <20170518120710.GE24085@pxdev.xzpeter.org> (Peter Xu's message of "Thu, 18 May 2017 20:07:10 +0800")
Peter Xu <peterx@redhat.com> wrote:
> On Wed, May 17, 2017 at 05:47:50PM +0200, Juan Quintela wrote:
>> Signed-off-by: Juan Quintela <quintela@redhat.com>
>> ---
>> include/migration/migration.h | 1 +
>> include/migration/qemu-file.h | 4 ----
>> migration/channel.c | 1 +
>> migration/colo.c | 1 +
>> migration/migration.c | 1 +
>> migration/qemu-file-channel.c | 1 +
>> migration/qemu-file-channel.h | 21 +++++++++++++++++++++
>> migration/rdma.c | 1 +
>> migration/savevm.c | 1 +
>> tests/test-vmstate.c | 1 +
>> 10 files changed, 29 insertions(+), 4 deletions(-)
>> create mode 100644 migration/qemu-file-channel.h
>>
>> diff --git a/include/migration/migration.h b/include/migration/migration.h
>> index e831259..8280df1 100644
>> --- a/include/migration/migration.h
>> +++ b/include/migration/migration.h
>> @@ -19,6 +19,7 @@
>> #include "qemu/thread.h"
>> #include "qemu/notify.h"
>> #include "migration/vmstate.h"
>> +#include "io/channel.h"
>
> Could I ask why we add this line here? I thought one of the main goals
> of this series is removing things from migration.h...
I remove from include/migration/qemu-file.h
-#include "io/channel.h"
Because all the QIOChannel functions in qemu-file.h are moved to
qemu-file-channel.h.
Great!
But migration/vmstate.h includes qemu-file.h
And migration.h includes vmstate.h
And migration.h has this functions:
void qemu_start_incoming_migration(const char *uri, Error **errp);
QIOChannel *ioc,
Error **errp);
void migration_tls_channel_connect(MigrationState *s,
QIOChannel *ioc,
const char *hostname,
Error **errp);
And nothing else declares the QIOChannel.
So, the easy solution so far is to include this by now to maintain
compilation.
BTW, good catch.
So, I think that there is no other good solution to untangle the mess.
Later, Juan.
next prev parent reply other threads:[~2017-05-18 13:26 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-17 15:47 [Qemu-devel] [PATCH v4 0/9] Migration mini-cleanup Juan Quintela
2017-05-17 15:47 ` [Qemu-devel] [PATCH 1/9] migration: Create migration/xbzrle.h Juan Quintela
2017-05-18 11:58 ` Peter Xu
2017-05-17 15:47 ` [Qemu-devel] [PATCH 2/9] migration: Split migration/channel.c for channel operations Juan Quintela
2017-05-18 11:59 ` Peter Xu
2017-05-17 15:47 ` [Qemu-devel] [PATCH 3/9] migration: Export qemu-file-channel.c functions in its own file Juan Quintela
2017-05-18 12:07 ` Peter Xu
2017-05-18 13:26 ` Juan Quintela [this message]
2017-05-19 2:46 ` Peter Xu
2017-05-23 11:28 ` Juan Quintela
2017-05-18 15:44 ` Dr. David Alan Gilbert
2017-05-18 15:48 ` Daniel P. Berrange
2017-05-18 16:08 ` Juan Quintela
2017-05-17 15:47 ` [Qemu-devel] [PATCH 4/9] migration: Remove migration.h from colo.h Juan Quintela
2017-05-18 12:07 ` Peter Xu
2017-05-17 15:47 ` [Qemu-devel] [PATCH 5/9] migration: Move qjson.h to migration/ Juan Quintela
2017-05-17 16:05 ` Dr. David Alan Gilbert
2017-05-17 15:47 ` [Qemu-devel] [PATCH 6/9] migration: Split vmstate-types.c from vmstate.c Juan Quintela
2017-05-18 12:10 ` Peter Xu
2017-05-17 15:47 ` [Qemu-devel] [PATCH 7/9] migration: Remove qemu-file.h from vmstate.h Juan Quintela
2017-05-17 15:47 ` [Qemu-devel] [PATCH 8/9] migration: Remove vmstate.h from migration.h Juan Quintela
2017-05-17 15:47 ` [Qemu-devel] [PATCH 9/9] migration: migration.h was not needed Juan Quintela
2017-05-17 16:04 ` Dr. David Alan Gilbert
2017-05-17 16:05 ` Dr. David Alan Gilbert
2017-05-18 12:10 ` Peter Xu
-- strict thread matches above, loose matches on Subject: below --
2017-05-18 16:16 [Qemu-devel] [PATCH v5 0/9] Migration mini-cleanup Juan Quintela
2017-05-18 16:16 ` [Qemu-devel] [PATCH 3/9] migration: Export qemu-file-channel.c functions in its own file Juan Quintela
2017-05-18 17:08 ` Dr. David Alan Gilbert
2017-05-19 2:47 ` Peter Xu
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=871srm9tz4.fsf@secure.mitica \
--to=quintela@redhat.com \
--cc=dgilbert@redhat.com \
--cc=lvivier@redhat.com \
--cc=peterx@redhat.com \
--cc=qemu-devel@nongnu.org \
/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).