qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: Markus Armbruster <armbru@redhat.com>
Cc: QEMU Developers <qemu-devel@nongnu.org>,
	Kamil Rytarowski <n54@gmx.com>,
	"patches@linaro.org" <patches@linaro.org>
Subject: Re: [Qemu-devel] [PATCH 1/3] configure: Rename CONFIG_IVSHMEM to CONFIG_IVSHMEM_DEVICE
Date: Thu, 20 Jul 2017 12:54:53 +0100	[thread overview]
Message-ID: <CAFEAcA8Yhke2xipJjHB_rDNcMsZgCktJH+CpPBpH79VvhgMZRg@mail.gmail.com> (raw)
In-Reply-To: <874lu74ask.fsf@dusky.pond.sub.org>

On 20 July 2017 at 12:17, Markus Armbruster <armbru@redhat.com> wrote:
> Peter Maydell <peter.maydell@linaro.org> writes:
>
>> The current CONFIG_IVSHMEM is confusing, because it looks like it's a
>> flag for "do we have ivshmem support?", but actually it's a flag for
>> "is the ivshmem PCI device being compiled?" (and implicitly "do we
>> have ivshmem support?" is tested with CONFIG_EVENTFD).
>>
>> Rename it to CONFIG_IVSHMEM_DEVICE to clear this confusion up;
>> shortly we will add a new CONFIG_IVSHMEM which really does indicate
>> whether the host can support ivshmem.
>>
>> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
>
> I don't really care how we name this macro, but I can't help to
> wonder...  We have many CONFIG_<dev>.  The pci.mak context even shows
> some.  Why is <dev> = IVSHMEM confusing?  Why is <dev> = EDU *not*
> confusing?

Well, this did confuse the people involved in trying to fix
this bug first time round, because we tried to add
an "ifdef CONFIG_IVSHMEM" guard to the Makefile lines that
defnie the rules for ivshmem-client and ivshmem-server,
and it it fails in obscure and confusing ways because
CONFIG_IVSHMEM doesn't mean "ivshmem OK", it means only
"this particular foo-softmmu build has the ivshmem device in it".

Basically, it looks like a global config flag but it isn't
(because ivshmem has globally built parts, ie the tools,
as well as the device itself, and configure tests that control
whether it can be built or not) whereas nobody thinks CONFIG_EDU
is something that should control global parts of the build
because the device is only the device and the host config
doesn't matter.

thanks
-- PMM

  reply	other threads:[~2017-07-20 11:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-14  8:33 [Qemu-devel] [PATCH 0/3] Fix NetBSD build (don't build ivshmem tools) Peter Maydell
2017-07-14  8:33 ` [Qemu-devel] [PATCH 1/3] configure: Rename CONFIG_IVSHMEM to CONFIG_IVSHMEM_DEVICE Peter Maydell
2017-07-20 11:17   ` Markus Armbruster
2017-07-20 11:54     ` Peter Maydell [this message]
2017-07-14  8:33 ` [Qemu-devel] [PATCH 2/3] configure: Use an explicit CONFIG_IVSHMEM rather than CONFIG_EVENTFD Peter Maydell
2017-07-14  8:33 ` [Qemu-devel] [PATCH 3/3] configure: Don't build ivshmem tools unless CONFIG_IVSHMEM is set Peter Maydell
2017-07-20  9:43 ` [Qemu-devel] [PATCH 0/3] Fix NetBSD build (don't build ivshmem tools) Peter Maydell
2017-07-20 11:20 ` Markus Armbruster
2017-07-20 15:35   ` Peter Maydell
2017-07-20 16:59     ` Kamil Rytarowski

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=CAFEAcA8Yhke2xipJjHB_rDNcMsZgCktJH+CpPBpH79VvhgMZRg@mail.gmail.com \
    --to=peter.maydell@linaro.org \
    --cc=armbru@redhat.com \
    --cc=n54@gmx.com \
    --cc=patches@linaro.org \
    --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).