From: Paul Mackerras <paulus@samba.org>
To: Alexander Graf <agraf@suse.de>
Cc: "Nikunj A Dadhania" <nikunj@linux.vnet.ibm.com>,
"Alexey Kardashevskiy" <aik@ozlabs.ru>,
qemu-devel@nongnu.org, qemu-ppc@nongnu.org,
"Andreas Färber" <afaerber@suse.de>
Subject: Re: [Qemu-devel] [PATCH] spapr: add "compat" machine option
Date: Wed, 6 Nov 2013 16:48:18 +1100 [thread overview]
Message-ID: <20131106054818.GG14842@drongo> (raw)
In-Reply-To: <67325DB7-EF06-49CD-BA79-6B44BCC20140@suse.de>
On Mon, Sep 30, 2013 at 01:25:32PM +0200, Alexander Graf wrote:
>
> On 27.09.2013, at 10:06, Alexey Kardashevskiy wrote:
>
> > To be able to boot on newer hardware that the software support,
> > PowerISA defines a logical PVR, one per every PowerISA specification
> > version from 2.04.
[snip]
> > + case 205:
> > + spapr->arch_compat = CPU_POWERPC_LOGICAL_2_05;
> > + break;
> > + case 206:
> > + spapr->arch_compat = CPU_POWERPC_LOGICAL_2_06;
>
> Does it make sense to declare compat mode a number or would a string be easier for users? I can imagine that "-machine compat=power6" is easier to understand for a user than "-machine compat=205".
That's probably true. I don't mind either way.
> Also, we need to handle failure. If the kernel can not set the CPU to 2.05 mode for example (IIRC POWER8 doesn't allow you to) we should bail out here.
POWER8 does have 2.05 (POWER6) and 2.06 (POWER7) compatibility modes.
> > + /* Architecture compatibility mode */
> > + uint32_t arch_compat;
>
> Do we really need to carry this in the vcpu struct? Or can we just fire-and-forget about it? If we want to preserve anything, it should be the PCR register.
There are two relevant values here; the compatibility mode (if any)
that the user has requested via the command line, and the mode that
has been negotiated with the ibm,client-architecture-support (CAS)
call. CAS should select the latest mode supported by the guest that
is not later than the mode requested on the command line, and is
supported by QEMU, and is not later than the architecture of the
host. Both values should be sent across to the destination VM on
migration AFAICS.
On reset/reboot, the compatibility mode should not change. The device
tree that is supplied to the new SLOF instance should reflect the
current compatibility mode.
Regards,
Paul.
next prev parent reply other threads:[~2013-11-06 5:48 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-27 8:06 [Qemu-devel] [PATCH] spapr: add "compat" machine option Alexey Kardashevskiy
2013-09-30 11:25 ` Alexander Graf
2013-09-30 11:52 ` Paolo Bonzini
2013-09-30 12:57 ` Alexey Kardashevskiy
2013-11-05 9:06 ` Paolo Bonzini
2013-11-05 9:16 ` Alexander Graf
2013-11-05 9:52 ` Paolo Bonzini
2013-11-05 10:27 ` Alexander Graf
2013-11-05 10:33 ` Paolo Bonzini
2013-11-05 10:45 ` Alexey Kardashevskiy
2013-11-05 10:46 ` Paolo Bonzini
2013-11-05 13:53 ` Andreas Färber
2013-11-06 11:36 ` Igor Mammedov
2013-11-07 9:11 ` Alexey Kardashevskiy
2013-11-07 13:36 ` Igor Mammedov
2013-11-08 8:22 ` Alexey Kardashevskiy
2013-11-08 13:20 ` Andreas Färber
2013-11-08 14:57 ` Alexey Kardashevskiy
2013-11-08 15:07 ` Andreas Färber
2013-11-07 14:01 ` Andreas Färber
2013-11-08 8:22 ` [Qemu-devel] [PATCH v2 0/2] " Alexey Kardashevskiy
2013-11-08 8:22 ` [Qemu-devel] [PATCH v2 1/2] cpu: add suboptions support Alexey Kardashevskiy
2013-11-08 8:22 ` [Qemu-devel] [PATCH v2 2/2] target-ppc: add "compat" CPU option Alexey Kardashevskiy
2013-11-08 13:24 ` [Qemu-devel] [PATCH v2 0/2] spapr: add "compat" machine option Andreas Färber
2013-11-06 3:27 ` [Qemu-devel] [PATCH] " Paul Mackerras
2013-09-30 13:22 ` Alexey Kardashevskiy
2013-09-30 14:49 ` Alexander Graf
2013-11-05 2:19 ` Alexey Kardashevskiy
2013-11-05 9:23 ` Alexander Graf
2013-11-06 5:48 ` Paul Mackerras [this message]
2013-11-06 12:07 ` Alexander Graf
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=20131106054818.GG14842@drongo \
--to=paulus@samba.org \
--cc=afaerber@suse.de \
--cc=agraf@suse.de \
--cc=aik@ozlabs.ru \
--cc=nikunj@linux.vnet.ibm.com \
--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.