qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>, qemu-devel@nongnu.org
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>
Subject: Re: [PATCH v2] configure: simplify vhost condition with Kconfig
Date: Thu, 12 Dec 2019 17:33:20 +0100	[thread overview]
Message-ID: <cb20e1f1-dee9-ab7b-8844-7b8940895e85@redhat.com> (raw)
In-Reply-To: <1576110624-33604-1-git-send-email-pbonzini@redhat.com>

On 12/12/19 1:30 AM, Paolo Bonzini wrote:
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
> 
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>

> ---
>   Kconfig.host            | 5 +++++
>   Makefile                | 1 +
>   hw/virtio/Kconfig       | 3 +++
>   hw/virtio/Makefile.objs | 4 ++--
>   4 files changed, 11 insertions(+), 2 deletions(-)
> 
> diff --git a/Kconfig.host b/Kconfig.host
> index bb6e116..55136e0 100644
> --- a/Kconfig.host
> +++ b/Kconfig.host
> @@ -25,6 +25,11 @@ config TPM
>   
>   config VHOST_USER
>       bool
> +    select VHOST
> +
> +config VHOST_KERNEL
> +    bool
> +    select VHOST
>   
>   config XEN
>       bool
> diff --git a/Makefile b/Makefile
> index 96e69dd..a74c2f2 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -382,6 +382,7 @@ MINIKCONF_ARGS = \
>       CONFIG_OPENGL=$(CONFIG_OPENGL) \
>       CONFIG_X11=$(CONFIG_X11) \
>       CONFIG_VHOST_USER=$(CONFIG_VHOST_USER) \
> +    CONFIG_VHOST_KERNEL=$(CONFIG_VHOST_KERNEL) \
>       CONFIG_VIRTFS=$(CONFIG_VIRTFS) \
>       CONFIG_LINUX=$(CONFIG_LINUX) \
>       CONFIG_PVRDMA=$(CONFIG_PVRDMA)
> diff --git a/hw/virtio/Kconfig b/hw/virtio/Kconfig
> index 3724ff8..f87def2 100644
> --- a/hw/virtio/Kconfig
> +++ b/hw/virtio/Kconfig
> @@ -1,3 +1,6 @@
> +config VHOST
> +    bool
> +
>   config VIRTIO
>       bool
>   
> diff --git a/hw/virtio/Makefile.objs b/hw/virtio/Makefile.objs
> index e2f70fb..de0f5fc 100644
> --- a/hw/virtio/Makefile.objs
> +++ b/hw/virtio/Makefile.objs
> @@ -2,8 +2,8 @@ ifeq ($(CONFIG_VIRTIO),y)
>   common-obj-y += virtio-bus.o
>   obj-y += virtio.o
>   
> -obj-$(call lor,$(CONFIG_VHOST_USER),$(CONFIG_VHOST_KERNEL)) += vhost.o vhost-backend.o
> -common-obj-$(call lnot,$(call lor,$(CONFIG_VHOST_USER),$(CONFIG_VHOST_KERNEL))) += vhost-stub.o
> +obj-$(CONFIG_VHOST) += vhost.o vhost-backend.o
> +common-obj-$(call lnot,$(CONFIG_VHOST)) += vhost-stub.o
>   obj-$(CONFIG_VHOST_USER) += vhost-user.o
>   
>   common-obj-$(CONFIG_VIRTIO_RNG) += virtio-rng.o
> 



      parent reply	other threads:[~2019-12-12 16:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-12  0:30 [PATCH v2] configure: simplify vhost condition with Kconfig Paolo Bonzini
2019-12-12  7:10 ` Thomas Huth
2019-12-12 16:33 ` Philippe Mathieu-Daudé [this message]

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=cb20e1f1-dee9-ab7b-8844-7b8940895e85@redhat.com \
    --to=philmd@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=pbonzini@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).