From: Cornelia Huck <cohuck@redhat.com>
To: Igor Mammedov <imammedo@redhat.com>
Cc: David Hildenbrand <david@redhat.com>,
thuth@redhat.com,
Richard Henderson <richard.henderson@linaro.org>,
qemu-devel@nongnu.org, Alexander Graf <agraf@suse.de>,
borntraeger@de.ibm.com, Aurelien Jarno <aurelien@aurel32.net>
Subject: Re: [Qemu-devel] [PATCH v1 06/11] target/s390x: cleanup cpu number/address handling
Date: Thu, 31 Aug 2017 18:08:50 +0200 [thread overview]
Message-ID: <20170831180850.3b00fdcc.cohuck@redhat.com> (raw)
In-Reply-To: <20170831180352.7d6e1ecf@nial.brq.redhat.com>
On Thu, 31 Aug 2017 18:03:52 +0200
Igor Mammedov <imammedo@redhat.com> wrote:
> On Thu, 31 Aug 2017 16:35:13 +0200
> Cornelia Huck <cohuck@redhat.com> wrote:
>
> > On Wed, 30 Aug 2017 19:05:56 +0200
> > David Hildenbrand <david@redhat.com> wrote:
> >
> > > Some time ago we discussed that using "id" as property name is not the
> > > right thing to do, as it is a reserved property for other devices.
> > >
> > > Switch to the term "addr" instead, which matches the definition in the
> > > PoP called "CPU address". There is no such thing as cpu number, so
> > > rename env.cpu_num to env.cpu_addr.
> > >
> > > We can get rid of cpu->id now. Keep cpu->index and env->cpu_addr in sync.
> > > cpu->index was already implicitly used by e.g. cpu_exists(), so keeping
> > > both in sync seems to be the right thing to do.
> > >
> > > cpu->index will now no longer automatically get set via
> > > cpu_exec_realizefn(). For now, we were lucky that both implicitly stayed
> > > in sync.
> > >
> > > Our new cpu property "addr" can be a static property. Range checks can
> > > be avoided by using the correct type and the "setting after realized"
> > > check is done implicitly.
> > >
> > > AFAIK, s390x only supports cpu_add and not device_add for cpus. So we
> > > should be able to safely rename that property (no the "id" property
> > > could properly be used for device_add, which needs an artificial id for
> > > identification purposes).
> this patch seems to somewhat conflicting with
> https://lists.gnu.org/archive/html/qemu-devel/2017-08/msg06505.html
> that were supposed to go via machine tree and which I've respinned today
> to fix conflicts due just merged pull req.
>
> Cornelia,
>
> Could you put/merge it via s390x tree so that David and I work won't clash again?
I can do that, sure. I can put your patch on top of David's.
next prev parent reply other threads:[~2017-08-31 16:09 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-30 17:05 [Qemu-devel] [PATCH v1 00/11] next round of s390x cleanups David Hildenbrand
2017-08-30 17:05 ` [Qemu-devel] [PATCH v1 01/11] exec, dump: don't include exec/exec-all.h explicitly David Hildenbrand
2017-08-30 18:55 ` Thomas Huth
2017-08-31 13:06 ` David Hildenbrand
2017-08-31 14:21 ` Cornelia Huck
2017-09-01 15:18 ` David Hildenbrand
2017-08-30 17:05 ` [Qemu-devel] [PATCH v1 02/11] cpu: drop old comments describing members David Hildenbrand
2017-08-31 14:23 ` Cornelia Huck
2017-08-30 17:05 ` [Qemu-devel] [PATCH v1 03/11] s390x: store cpu states inside machine state David Hildenbrand
2017-08-30 20:58 ` Thomas Huth
2017-08-31 13:11 ` David Hildenbrand
2017-08-31 14:29 ` Cornelia Huck
2017-08-31 14:30 ` David Hildenbrand
2017-08-31 14:38 ` Cornelia Huck
2017-08-31 14:39 ` David Hildenbrand
2017-08-31 14:23 ` David Hildenbrand
2017-08-31 14:31 ` Thomas Huth
2017-08-31 14:36 ` David Hildenbrand
2017-08-31 14:45 ` Thomas Huth
2017-08-30 17:05 ` [Qemu-devel] [PATCH v1 04/11] s390x: get rid of s390-virtio.c David Hildenbrand
2017-08-31 9:13 ` Thomas Huth
2017-08-31 13:14 ` David Hildenbrand
2017-08-31 11:47 ` Christian Borntraeger
2017-08-31 13:13 ` David Hildenbrand
2017-08-30 17:05 ` [Qemu-devel] [PATCH v1 05/11] s390x: rename s390-virtio.h to s390-virtio-hcall.h David Hildenbrand
2017-08-31 9:29 ` Thomas Huth
2017-08-31 13:18 ` David Hildenbrand
2017-08-31 13:20 ` Thomas Huth
2017-08-30 17:05 ` [Qemu-devel] [PATCH v1 06/11] target/s390x: cleanup cpu number/address handling David Hildenbrand
2017-08-31 14:35 ` Cornelia Huck
2017-08-31 14:41 ` David Hildenbrand
2017-08-31 14:49 ` Cornelia Huck
2017-08-31 16:03 ` Igor Mammedov
2017-08-31 16:08 ` Cornelia Huck [this message]
2017-08-30 17:05 ` [Qemu-devel] [PATCH v1 07/11] target/s390x: rename next_cpu_id to next_cpu_addr David Hildenbrand
2017-08-30 17:05 ` [Qemu-devel] [PATCH v1 08/11] s390x: allow only 1 CPU with TCG David Hildenbrand
2017-08-30 19:06 ` Thomas Huth
2017-08-31 6:42 ` Cornelia Huck
2017-08-31 13:24 ` David Hildenbrand
2017-08-31 14:41 ` Cornelia Huck
2017-08-31 15:03 ` David Hildenbrand
2017-08-31 15:07 ` Cornelia Huck
2017-08-31 15:33 ` David Hildenbrand
2017-08-31 16:06 ` Cornelia Huck
2017-08-30 17:05 ` [Qemu-devel] [PATCH v1 09/11] target/s390x: tcg_s390_program_interrupt() will never return David Hildenbrand
2017-08-30 20:45 ` Thomas Huth
2017-08-31 12:14 ` David Hildenbrand
2017-08-30 17:06 ` [Qemu-devel] [PATCH v1 10/11] target/s390x: use trigger_pgm_exception() in s390_cpu_handle_mmu_fault() David Hildenbrand
2017-08-30 19:11 ` Thomas Huth
2017-08-31 13:34 ` David Hildenbrand
2017-08-30 17:06 ` [Qemu-devel] [PATCH v1 11/11] target/s390x: use program_interrupt() in per_check_exception() David Hildenbrand
2017-08-31 9:37 ` Thomas Huth
2017-08-31 14:45 ` [Qemu-devel] [PATCH v1 00/11] next round of s390x cleanups Cornelia Huck
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=20170831180850.3b00fdcc.cohuck@redhat.com \
--to=cohuck@redhat.com \
--cc=agraf@suse.de \
--cc=aurelien@aurel32.net \
--cc=borntraeger@de.ibm.com \
--cc=david@redhat.com \
--cc=imammedo@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=thuth@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 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).