From: David Gibson <david@gibson.dropbear.id.au>
To: Alexey Kardashevskiy <aik@ozlabs.ru>
Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org,
Alexander Graf <agraf@suse.de>
Subject: Re: [Qemu-devel] [PATCH qemu v2] qemu-options: Add documentation about PPC64's "-cpu compat" option
Date: Wed, 29 Apr 2015 11:47:35 +1000 [thread overview]
Message-ID: <20150429014735.GA32589@voom.redhat.com> (raw)
In-Reply-To: <553F35F1.4010209@ozlabs.ru>
[-- Attachment #1: Type: text/plain, Size: 1628 bytes --]
On Tue, Apr 28, 2015 at 05:25:37PM +1000, Alexey Kardashevskiy wrote:
> On 04/10/2015 12:16 PM, David Gibson wrote:
> >On Wed, Apr 08, 2015 at 07:33:21PM +1000, Alexey Kardashevskiy wrote:
> >>Since 8dfa3a5e "target-ppc: Add "compat" CPU option" (which was a part of
> >>client-architecture-support patchset) there is a "compat" option
> >>of "-cpu". However it was not documented at all and this is what this
> >>patch is trying to do.
> >>
> >>Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
> >
> >I've updated the previous version in spapr-next.
>
> That was bad idea.
>
> First of all this patch is missing this:
>
> diff --git a/vl.c b/vl.c
> index 694deb4..12ffa1c 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -2876,6 +2876,7 @@ int main(int argc, char **argv, char **envp)
> break;
> }
> case QEMU_OPTION_cpu:
> + case QEMU_OPTION_cpu_ppc:
> /* hw initialization will check this */
> cpu_model = optarg;
> break;
>
>
> But even with it, "-cpu help" does not work as the "if (!(popt->arch_mask &
> arch_type))" fails at vl.c:2868 because QEMU_OPTION_cpu does not have
> PPC64bit set (in order to hide unwanted options on x86) and
> QEMU_OPTION_cpu_ppc is not "-cpu".
>
> We should use the original patch or none at all.
Ok, I've dropped this from spapr-next for the time being.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2015-04-29 1:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-02 6:26 [Qemu-devel] [PATCH qemu] qemu-options: Add documentation about PPC64's "-cpu compat" option Alexey Kardashevskiy
2015-04-07 20:43 ` Alexander Graf
2015-04-08 1:45 ` Alexey Kardashevskiy
2015-04-08 6:29 ` Alexander Graf
2015-04-08 7:41 ` Alexey Kardashevskiy
2015-04-08 7:46 ` Alexander Graf
2015-04-08 9:33 ` [Qemu-devel] [PATCH qemu v2] " Alexey Kardashevskiy
2015-04-10 2:16 ` David Gibson
2015-04-28 7:25 ` Alexey Kardashevskiy
2015-04-29 1:47 ` David Gibson [this message]
2015-04-08 2:49 ` [Qemu-devel] [PATCH qemu] " David Gibson
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=20150429014735.GA32589@voom.redhat.com \
--to=david@gibson.dropbear.id.au \
--cc=agraf@suse.de \
--cc=aik@ozlabs.ru \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@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 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.