From: Cornelia Huck <cohuck@redhat.com>
To: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>,
qemu-devel@nongnu.org, qemu-s390x@nongnu.org,
David Hildenbrand <david@redhat.com>,
Eric Blake <eblake@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] S390: Expose s390-specific CPU info
Date: Thu, 8 Feb 2018 11:37:48 +0100 [thread overview]
Message-ID: <20180208113748.195f7483.cohuck@redhat.com> (raw)
In-Reply-To: <ef7d8fbd-42b0-2d28-c3c2-ab96a8e52e5f@de.ibm.com>
On Thu, 8 Feb 2018 11:24:48 +0100
Christian Borntraeger <borntraeger@de.ibm.com> wrote:
> On 02/08/2018 11:16 AM, Cornelia Huck wrote:
> > On Thu, 8 Feb 2018 10:48:08 +0100
> > Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com> wrote:
> >> diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c
> >> index 3807dcb..3e6360e 100644
> >> --- a/hw/s390x/s390-virtio-ccw.c
> >> +++ b/hw/s390x/s390-virtio-ccw.c
> >> @@ -373,7 +373,7 @@ static void s390_machine_reset(void)
> >>
> >> /* all cpus are stopped - configure and start the ipl cpu only */
> >> s390_ipl_prepare_cpu(ipl_cpu);
> >> - s390_cpu_set_state(CPU_STATE_OPERATING, ipl_cpu);
> >> + s390_cpu_set_state(CPU_INFOS390_STATE_OPERATING, ipl_cpu);
> >
> > Exposing the state as a QAPI enum has the unfortunate side effect of
> > that new name. It feels slightly awkward to me, as it is a state for
> > real decisions and not just for info statements...
>
> I asked Viktor to use the qapi enum instead of having two sets of defines that
> we need to keep in sync. (in fact 3, as the kernel kvm mpstate definition is also
> there).
Agreed, using the QAPI enum makes sense.
>
> But yes, the INFO in that name is somewhat strange. No good idea though.
Can we call the enum CpuS390State instead of CpuInfoS390State (while
keeping the CpuInfoS390 name)? Or does that violate any QAPI rules?
next prev parent reply other threads:[~2018-02-08 10:38 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-08 9:48 [Qemu-devel] [PATCH] S390: Expose s390-specific CPU info Viktor Mihajlovski
2018-02-08 10:16 ` Cornelia Huck
2018-02-08 10:24 ` Christian Borntraeger
2018-02-08 10:37 ` Cornelia Huck [this message]
2018-02-08 15:25 ` Eric Blake
2018-02-08 14:09 ` Luiz Capitulino
2018-02-08 15:21 ` Cornelia Huck
2018-02-08 15:30 ` Luiz Capitulino
2018-02-08 15:52 ` Viktor Mihajlovski
2018-02-08 16:22 ` Luiz Capitulino
2018-02-08 17:02 ` Viktor Mihajlovski
2018-02-08 17:37 ` Luiz Capitulino
2018-02-08 15:19 ` Eric Blake
2018-02-08 15:30 ` Viktor Mihajlovski
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=20180208113748.195f7483.cohuck@redhat.com \
--to=cohuck@redhat.com \
--cc=borntraeger@de.ibm.com \
--cc=david@redhat.com \
--cc=eblake@redhat.com \
--cc=mihajlov@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-s390x@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).