All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Weil <sw@weilnetz.de>
To: Marcel Apfelbaum <marcel.a@redhat.com>,
	"Michael S. Tsirkin" <mst@redhat.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
	Anthony Liguori <aliguori@amazon.com>,
	qemu-devel@nongnu.org, Stefan Hajnoczi <stefanha@redhat.com>,
	Paolo Bonzini <pbonzini@redhat.com>,
	Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-devel] [PATCH] configure: make it possible to disable IASL
Date: Mon, 25 Nov 2013 18:27:21 +0100	[thread overview]
Message-ID: <52938879.1020102@weilnetz.de> (raw)
In-Reply-To: <1385387699.4001.7.camel@localhost.localdomain>

Am 25.11.2013 14:54, schrieb Marcel Apfelbaum:
> On Mon, 2013-11-25 at 13:26 +0200, Michael S. Tsirkin wrote:
>> On Sun, Nov 24, 2013 at 09:58:34PM +0100, Stefan Weil wrote:
>>>>>> --iasl=false works without further modifications (because test "false
>>>>>> -h" works and returns false). It also looks more natural than --iasl=.
>>>>>>
>>>>>> Cheers, Stefan
>>>>> It seems that some people try --iasl= as the more natural way
>>>>> to do this. It's not documented that a failing iasl will
>>>>> cause a fall-back and I'd rather document an explicit option
>>>>> than making it fail.
>>>> I'm also curious why would you say =false is natural:
>>>> it's a string option not a boolean one.
>>>>
>>> 'false' is a string here, namely the name of the executable which is
>>> normally found at /bin/false.
>>> It takes any number of parameters and always returns 1 (which is boolean
>>> false
>>> in shell conventions).
>>>
>>> You could also write --iasl=/bin/false.
>>>
>>> I suggest this kind of patch:
>>>
>>>  echo "  --iasl=IASL              use ACPI compiler IASL [$iasl]"
>>> +echo "                           iasl=false disables the ACPI compiler"
>> It's still not a natural interface.
>>
>> It works by chance because we run iasl and test the return code,
>> but we don't have to.
>> For example, a reasonable implementation might produce
>> an error if the user-specified iasl fails, breaking this hack.
>>
>> Interfaces should not follow implementation.
>> If you don't want iasl a reasonable syntax is '' or
>> --disable-iasl.
> +1 on --disable-iasl
>
> Marcel

I also prefer --disable-iasl because that's the usual QEMU way how to
disable features.

Cheers,
Stefan

      reply	other threads:[~2013-11-25 17:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-24  9:52 [Qemu-devel] [PATCH] configure: make it possible to disable IASL Michael S. Tsirkin
2013-11-24 13:04 ` Marcel Apfelbaum
2013-11-24 13:42   ` Michael S. Tsirkin
2013-11-24 13:54     ` Stefan Weil
2013-11-24 15:39       ` Michael S. Tsirkin
2013-11-24 16:48         ` Michael S. Tsirkin
2013-11-24 20:58           ` Stefan Weil
2013-11-25 11:26             ` Michael S. Tsirkin
2013-11-25 13:54               ` Marcel Apfelbaum
2013-11-25 17:27                 ` Stefan Weil [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=52938879.1020102@weilnetz.de \
    --to=sw@weilnetz.de \
    --cc=aliguori@amazon.com \
    --cc=marcel.a@redhat.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    --cc=stefanha@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.