[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] we allow passing -machine type=foo more than once but a

From: Thomas Huth
Subject: Re: [Qemu-devel] we allow passing -machine type=foo more than once but are confused about which to use...
Date: Wed, 1 Nov 2017 07:22:16 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

On 31.10.2017 19:33, Peter Maydell wrote:
> (cc Markus because I know how much he likes weirdnesses in our
> command line parsing :-))
> https://stackoverflow.com/questions/46955244/qemu-run-arm-ubuntu-unsupported-machine-type/47042282
> has a user who's run into a confusing error message, because
> we allow the user to pass "-machine type=foo" more than once on
> the command line. When we decide which one to use, we go with the
> last one on the list. However if it's not valid, when we print the
> "don't recognize that machine type" message, the name we use in
> the message is the *first* one on the list :-)
> Maybe we should just not allow users to pass the argument
> more than once...?

I think we at least need that in some of our qtests - to override the
default "-M accel=qtest" with "-M accel=tcg". So if we disallow to use
the option more than once, we've got to find a different solution for
the qtests.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]