From: "Michael S. Tsirkin" <mst@redhat.com>
To: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
Cc: VirtualOpenSystems Technical Team <tech@virtualopensystems.com>,
qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] net: fix vhost-user mingw compilation
Date: Thu, 19 Jun 2014 17:24:46 +0300 [thread overview]
Message-ID: <20140619142446.GD4544@redhat.com> (raw)
In-Reply-To: <CADDJ2=Ov_rGuw+LvuDT20_yvPmjMtfbas3hTxbscW0=g3R_J0w@mail.gmail.com>
On Thu, Jun 19, 2014 at 05:16:44PM +0300, Nikolay Nikolaev wrote:
> Hello,
>
>
> On Wed, Jun 18, 2014 at 11:45 PM, Nikolay Nikolaev <
> n.nikolaev@virtualopensystems.com> wrote:
>
> Make net.o linkage expect net_init_vhost_user only when
> CONFIG_VHOST_NET is defined.
>
> Signed-off-by: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
> ---
> net/net.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/net/net.c b/net/net.c
> index de76e30..0c30414 100644
> --- a/net/net.c
> +++ b/net/net.c
> @@ -803,7 +803,9 @@ static int (* const net_client_init_fun
> [NET_CLIENT_OPTIONS_KIND_MAX])(
> [NET_CLIENT_OPTIONS_KIND_BRIDGE] = net_init_bridge,
> #endif
> [NET_CLIENT_OPTIONS_KIND_HUBPORT] = net_init_hubport,
> +#ifdef CONFIG_VHOST_NET
> [NET_CLIENT_OPTIONS_KIND_VHOST_USER] = net_init_vhost_user,
> +#endif
> };
>
>
> @@ -837,7 +839,9 @@ static int net_client_init1(const void *object, int
> is_netdev, Error **errp)
> case NET_CLIENT_OPTIONS_KIND_BRIDGE:
> #endif
> case NET_CLIENT_OPTIONS_KIND_HUBPORT:
> +#ifdef CONFIG_VHOST_NET
> case NET_CLIENT_OPTIONS_KIND_VHOST_USER:
> +#endif
> break;
>
> default:
>
>
>
> It turns out that configure puts CONFIG_VHOST_NET in the "wrong" place -
> config-target.h
>
> echo "CONFIG_VHOST_NET=y" >> $config_target_mak
>
> while for example:
>
> echo "CONFIG_VHOST_SCSI=y" >> $config_host_mak
>
> And net.c includes config-host.h, so we end up with vhost-user never enabled in
> net.c.
Not good.
> Will it be a problem if CONFIG_VHOST_NET is added to config_host_mak instead?
>
>
> regards,
> Nikolay Nikolaev
Try it :)
It likely won't work for linux-user, right?
--
MST
next prev parent reply other threads:[~2014-06-19 14:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-18 20:45 [Qemu-devel] [PATCH] net: fix vhost-user mingw compilation Nikolay Nikolaev
2014-06-19 14:16 ` Nikolay Nikolaev
2014-06-19 14:24 ` Michael S. Tsirkin [this message]
2014-06-19 14:33 ` Nikolay Nikolaev
2014-06-19 14:47 ` Michael S. Tsirkin
2014-06-19 14:54 ` Michael S. Tsirkin
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=20140619142446.GD4544@redhat.com \
--to=mst@redhat.com \
--cc=n.nikolaev@virtualopensystems.com \
--cc=qemu-devel@nongnu.org \
--cc=tech@virtualopensystems.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).