From: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
To: "snabb-devel@googlegroups.com" <snabb-devel@googlegroups.com>
Cc: VirtualOpenSystems Technical Team <tech@virtualopensystems.com>,
qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [snabb-devel] Re: [PATCH 1/6] configure: add new config define CONFIG_VHOST_NET_USED
Date: Thu, 19 Jun 2014 18:38:06 +0300 [thread overview]
Message-ID: <CADDJ2=PXy64TQeyGBgAR_jqA8dnax_gs5eoAvyth08LOiy9F_w@mail.gmail.com> (raw)
In-Reply-To: <20140619153543.GB10724@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 2377 bytes --]
On Thu, Jun 19, 2014 at 6:35 PM, Michael S. Tsirkin <mst@redhat.com> wrote:
> On Thu, Jun 19, 2014 at 06:07:15PM +0300, Nikolay Nikolaev wrote:
> > This will be used in net.c (for now) to enable vhos-user netdev backend.
> >
> > Signed-off-by: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
>
> Did you test this with mingw?
>
No, I didn't manage to setup mingw under linux. But this "vhost_net" should
be enabled only for linux in configure. So if I understand it properly,
mingw should be safe.
regards,
Nikolay Nikolaev
>
> > ---
> > configure | 3 +++
> > net/net.c | 4 ++--
> > 2 files changed, 5 insertions(+), 2 deletions(-)
> >
> > diff --git a/configure b/configure
> > index 9f4ba45..fb3c856 100755
> > --- a/configure
> > +++ b/configure
> > @@ -4543,6 +4543,9 @@ fi
> > if test "$vhost_scsi" = "yes" ; then
> > echo "CONFIG_VHOST_SCSI=y" >> $config_host_mak
> > fi
> > +if test "$vhost_net" = "yes" ; then
> > + echo "CONFIG_VHOST_NET_USED=y" >> $config_host_mak
> > +fi
> > if test "$blobs" = "yes" ; then
> > echo "INSTALL_BLOBS=yes" >> $config_host_mak
> > fi
> > diff --git a/net/net.c b/net/net.c
> > index 0c30414..3dac29b 100644
> > --- a/net/net.c
> > +++ b/net/net.c
> > @@ -803,7 +803,7 @@ 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
> > +#ifdef CONFIG_VHOST_NET_USED
> > [NET_CLIENT_OPTIONS_KIND_VHOST_USER] = net_init_vhost_user,
> > #endif
> > };
> > @@ -839,7 +839,7 @@ 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
> > +#ifdef CONFIG_VHOST_NET_USED
> > case NET_CLIENT_OPTIONS_KIND_VHOST_USER:
> > #endif
> > break;
>
> --
> You received this message because you are subscribed to the Google Groups
> "Snabb Switch development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to snabb-devel+unsubscribe@googlegroups.com.
> To post to this group, send an email to snabb-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/snabb-devel.
>
[-- Attachment #2: Type: text/html, Size: 3709 bytes --]
next prev parent reply other threads:[~2014-06-19 15:38 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-19 15:06 [Qemu-devel] [PATCH 0/6] vhost-user qtest fixes Nikolay Nikolaev
2014-06-19 15:07 ` [Qemu-devel] [PATCH 1/6] configure: add new config define CONFIG_VHOST_NET_USED Nikolay Nikolaev
2014-06-19 15:35 ` Michael S. Tsirkin
2014-06-19 15:38 ` Nikolay Nikolaev [this message]
2014-06-19 15:07 ` [Qemu-devel] [PATCH 2/6] libqemustub: add more stubs for qemu-char Nikolay Nikolaev
2014-06-19 16:06 ` Andrew Jones
2014-06-19 15:07 ` [Qemu-devel] [PATCH 3/6] qtest: fix qtest for vhost-user Nikolay Nikolaev
2014-06-19 15:08 ` [Qemu-devel] [PATCH 4/6] qtest: fix vhost-user-test unbalanced mutex locks Nikolay Nikolaev
2014-06-19 15:08 ` [Qemu-devel] [PATCH 5/6] vhost: fix migration_blocker initialization Nikolay Nikolaev
2014-06-19 15:09 ` [Qemu-devel] [PATCH 6/6] qtest: enable vhost-user-test Nikolay Nikolaev
2014-06-19 15:41 ` Michael S. Tsirkin
2014-06-19 17:18 ` Paolo Bonzini
2014-06-19 15:48 ` [Qemu-devel] [PATCH 0/6] vhost-user qtest fixes Michael S. Tsirkin
2014-06-19 15:55 ` [Qemu-devel] [snabb-devel] " Nikolay Nikolaev
2014-06-19 16:20 ` Nikolay Nikolaev
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='CADDJ2=PXy64TQeyGBgAR_jqA8dnax_gs5eoAvyth08LOiy9F_w@mail.gmail.com' \
--to=n.nikolaev@virtualopensystems.com \
--cc=qemu-devel@nongnu.org \
--cc=snabb-devel@googlegroups.com \
--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).