From: David Gibson <david@gibson.dropbear.id.au>
To: Eduardo Habkost <ehabkost@redhat.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
Anthony Green <green@moxielogic.com>,
qemu-devel@nongnu.org, Alexander Graf <agraf@suse.de>,
Max Filippov <jcmvbkbc@gmail.com>,
Greg Ungerer <gerg@uclinux.org>,
Guan Xuetao <gxt@mprc.pku.edu.cn>, Jia Liu <proljc@gmail.com>,
Markus Armbruster <armbru@redhat.com>,
Bharata B Rao <bharata@linux.vnet.ibm.com>,
Artyom Tarasenko <atar4qemu@gmail.com>,
Laurent Vivier <lvivier@redhat.com>,
Chen Gang <gang.chen.5i5j@gmail.com>, Greg Kurz <groug@kaod.org>,
qemu-arm@nongnu.org, Igor Mammedov <imammedo@redhat.com>,
Richard Henderson <rth@twiddle.net>,
Matthew Rosato <mjrosato@linux.vnet.ibm.com>,
Bastian Koppelmann <kbastian@mail.uni-paderborn.de>,
Michael Walle <michael@walle.cc>,
qemu-ppc@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>,
Aurelien Jarno <aurelien@aurel32.net>
Subject: Re: [Qemu-arm] [PATCH v3 0/3] Split cpu_exec_init() into an init and a realize part
Date: Tue, 18 Oct 2016 09:50:05 +1100 [thread overview]
Message-ID: <20161017225005.GW25390@umbus.fritz.box> (raw)
In-Reply-To: <20161017184734.GZ3275@thinpad.lan.raisama.net>
[-- Attachment #1: Type: text/plain, Size: 1860 bytes --]
On Mon, Oct 17, 2016 at 04:47:34PM -0200, Eduardo Habkost wrote:
> On Mon, Oct 17, 2016 at 02:44:04PM +1100, David Gibson wrote:
> > On Sat, Oct 15, 2016 at 12:52:46AM +0200, Laurent Vivier wrote:
> > > Since commit 42ecaba ("target-i386: Call cpu_exec_init() on realize"),
> > > , commit 6dd0f83 ("target-ppc: Move cpu_exec_init() call to realize function"),
> > > and commit c6644fc ("s390x/cpu: Get rid of side effects when creating a vcpu"),
> > > cpu_exec_init() has been moved to realize function for some architectures
> > > to implement CPU htoplug. This allows any failures from cpu_exec_init() to be
> > > handled appropriately.
> > >
> > > This series tries to do the same work for all the other CPUs.
> > >
> > > But as the ARM Virtual Machine ("virt") needs the "memory" property of the CPU
> > > in the machine init function (the "memory" property is created in
> > > cpu_exec_init() we want to move to the realize part), split cpu_exec_init() in
> > > two parts: a realize part (cpu_exec_realizefn(), adding the CPU in the
> > > environment) and an init part (cpu_exec_initfn(), initializing the CPU, like
> > > adding the "memory" property). To mirror the realize part, add an unrealize
> > > part, and remove the cpu_exec_exit() call from the finalize part.
> > >
> > > This also allows to remove all the "cannot_destroy_with_object_finalize_yet"
> > > properties from the CPU device class.
> >
> > This is looking good to me - the v3 re-org has made it quite a bit
> > easier to follow.
> >
> > Whose tree should this go via?
>
> I can merge it through the machine tree, if others agree.
Fine my me, fwiw.
--
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: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: David Gibson <david@gibson.dropbear.id.au>
To: Eduardo Habkost <ehabkost@redhat.com>
Cc: Laurent Vivier <lvivier@redhat.com>,
Igor Mammedov <imammedo@redhat.com>,
Bharata B Rao <bharata@linux.vnet.ibm.com>,
Peter Maydell <peter.maydell@linaro.org>,
Paolo Bonzini <pbonzini@redhat.com>,
Alexander Graf <agraf@suse.de>,
Matthew Rosato <mjrosato@linux.vnet.ibm.com>,
qemu-devel@nongnu.org, Richard Henderson <rth@twiddle.net>,
qemu-arm@nongnu.org, Greg Ungerer <gerg@uclinux.org>,
Guan Xuetao <gxt@mprc.pku.edu.cn>, Jia Liu <proljc@gmail.com>,
Markus Armbruster <armbru@redhat.com>,
Artyom Tarasenko <atar4qemu@gmail.com>,
"Edgar E . Iglesias" <edgar.iglesias@gmail.com>,
Michael Walle <michael@walle.cc>,
Chen Gang <gang.chen.5i5j@gmail.com>,
Aurelien Jarno <aurelien@aurel32.net>,
Anthony Green <green@moxielogic.com>,
qemu-ppc@nongnu.org,
Bastian Koppelmann <kbastian@mail.uni-paderborn.de>,
Greg Kurz <groug@kaod.org>, Max Filippov <jcmvbkbc@gmail.com>
Subject: Re: [Qemu-devel] [PATCH v3 0/3] Split cpu_exec_init() into an init and a realize part
Date: Tue, 18 Oct 2016 09:50:05 +1100 [thread overview]
Message-ID: <20161017225005.GW25390@umbus.fritz.box> (raw)
In-Reply-To: <20161017184734.GZ3275@thinpad.lan.raisama.net>
[-- Attachment #1: Type: text/plain, Size: 1860 bytes --]
On Mon, Oct 17, 2016 at 04:47:34PM -0200, Eduardo Habkost wrote:
> On Mon, Oct 17, 2016 at 02:44:04PM +1100, David Gibson wrote:
> > On Sat, Oct 15, 2016 at 12:52:46AM +0200, Laurent Vivier wrote:
> > > Since commit 42ecaba ("target-i386: Call cpu_exec_init() on realize"),
> > > , commit 6dd0f83 ("target-ppc: Move cpu_exec_init() call to realize function"),
> > > and commit c6644fc ("s390x/cpu: Get rid of side effects when creating a vcpu"),
> > > cpu_exec_init() has been moved to realize function for some architectures
> > > to implement CPU htoplug. This allows any failures from cpu_exec_init() to be
> > > handled appropriately.
> > >
> > > This series tries to do the same work for all the other CPUs.
> > >
> > > But as the ARM Virtual Machine ("virt") needs the "memory" property of the CPU
> > > in the machine init function (the "memory" property is created in
> > > cpu_exec_init() we want to move to the realize part), split cpu_exec_init() in
> > > two parts: a realize part (cpu_exec_realizefn(), adding the CPU in the
> > > environment) and an init part (cpu_exec_initfn(), initializing the CPU, like
> > > adding the "memory" property). To mirror the realize part, add an unrealize
> > > part, and remove the cpu_exec_exit() call from the finalize part.
> > >
> > > This also allows to remove all the "cannot_destroy_with_object_finalize_yet"
> > > properties from the CPU device class.
> >
> > This is looking good to me - the v3 re-org has made it quite a bit
> > easier to follow.
> >
> > Whose tree should this go via?
>
> I can merge it through the machine tree, if others agree.
Fine my me, fwiw.
--
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: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2016-10-17 23:03 UTC|newest]
Thread overview: 78+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-14 22:52 [Qemu-arm] [PATCH v3 0/3] Split cpu_exec_init() into an init and a realize part Laurent Vivier
2016-10-14 22:52 ` [Qemu-devel] " Laurent Vivier
2016-10-14 22:52 ` [Qemu-arm] [PATCH v3 1/3] exec: split cpu_exec_init() Laurent Vivier
2016-10-14 22:52 ` [Qemu-devel] " Laurent Vivier
2016-10-17 3:43 ` [Qemu-arm] " David Gibson
2016-10-17 3:43 ` [Qemu-devel] " David Gibson
2016-10-17 11:15 ` [Qemu-arm] " Igor Mammedov
2016-10-17 11:15 ` [Qemu-devel] " Igor Mammedov
2016-10-17 18:46 ` [Qemu-arm] " Eduardo Habkost
2016-10-17 18:46 ` [Qemu-devel] " Eduardo Habkost
2016-10-14 22:52 ` [Qemu-arm] [PATCH v3 2/3] exec: rename cpu_exec_init() as cpu_exec_realizefn() Laurent Vivier
2016-10-14 22:52 ` [Qemu-devel] " Laurent Vivier
2016-10-17 3:43 ` David Gibson
2016-10-17 3:43 ` David Gibson
2016-10-17 11:20 ` [Qemu-arm] " Igor Mammedov
2016-10-17 11:20 ` [Qemu-devel] " Igor Mammedov
2016-10-17 14:03 ` [Qemu-arm] " Eduardo Habkost
2016-10-17 14:03 ` [Qemu-devel] " Eduardo Habkost
2016-10-17 14:25 ` [Qemu-arm] " Laurent Vivier
2016-10-17 14:25 ` [Qemu-devel] " Laurent Vivier
2016-10-17 19:20 ` [Qemu-arm] " Eduardo Habkost
2016-10-17 19:20 ` [Qemu-devel] " Eduardo Habkost
2016-10-18 10:48 ` [Qemu-arm] " Igor Mammedov
2016-10-18 10:48 ` [Qemu-devel] " Igor Mammedov
2016-10-18 13:00 ` [Qemu-arm] " Andrew Jones
2016-10-18 13:00 ` Andrew Jones
2016-10-18 13:18 ` [Qemu-arm] " Eduardo Habkost
2016-10-18 13:18 ` Eduardo Habkost
2016-10-18 14:22 ` Andrew Jones
2016-10-18 14:22 ` Andrew Jones
2016-10-18 15:22 ` [Qemu-arm] " Eduardo Habkost
2016-10-18 15:22 ` Eduardo Habkost
2016-10-18 16:22 ` Andrew Jones
2016-10-18 16:22 ` Andrew Jones
2016-10-18 16:57 ` [Qemu-arm] " Laurent Vivier
2016-10-18 16:57 ` Laurent Vivier
2016-10-18 17:07 ` [Qemu-arm] " Peter Maydell
2016-10-18 17:07 ` Peter Maydell
2016-10-18 17:57 ` [Qemu-arm] " Andrew Jones
2016-10-18 17:57 ` Andrew Jones
2016-10-18 18:12 ` [Qemu-arm] " Peter Maydell
2016-10-18 18:12 ` Peter Maydell
2016-10-18 18:45 ` [Qemu-arm] QOM properties vs C functions/fields (was Re: [Qemu-devel] [PATCH v3 2/3] exec: rename cpu_exec_init() as cpu_exec_realizefn()) Eduardo Habkost
2016-10-18 18:45 ` [Qemu-devel] QOM properties vs C functions/fields (was " Eduardo Habkost
2016-10-18 18:45 ` Eduardo Habkost
2016-10-18 20:30 ` [Qemu-arm] QOM properties vs C functions/fields (was Re: [Qemu-devel] " Peter Maydell
2016-10-18 20:30 ` [Qemu-devel] QOM properties vs C functions/fields (was " Peter Maydell
2016-10-18 20:30 ` Peter Maydell
2016-10-18 20:49 ` [Qemu-arm] QOM properties vs C functions/fields (was Re: [Qemu-devel] " Eduardo Habkost
2016-10-18 20:49 ` [Qemu-devel] QOM properties vs C functions/fields (was " Eduardo Habkost
2016-10-18 20:49 ` Eduardo Habkost
2016-10-18 21:08 ` Peter Maydell
2016-10-18 21:08 ` Peter Maydell
2016-10-18 21:08 ` [Qemu-arm] QOM properties vs C functions/fields (was Re: [Qemu-devel] " Peter Maydell
2016-10-19 11:11 ` Eduardo Habkost
2016-10-19 11:11 ` [Qemu-devel] QOM properties vs C functions/fields (was " Eduardo Habkost
2016-10-19 11:11 ` Eduardo Habkost
2016-10-19 11:22 ` [Qemu-arm] QOM properties vs C functions/fields (was Re: [Qemu-devel] " Peter Maydell
2016-10-19 11:22 ` [Qemu-devel] QOM properties vs C functions/fields (was " Peter Maydell
2016-10-19 11:22 ` Peter Maydell
2016-10-21 18:26 ` [Qemu-arm] " Markus Armbruster
2016-10-21 18:26 ` Markus Armbruster
2016-10-22 9:31 ` [Qemu-arm] " Peter Maydell
2016-10-22 9:31 ` Peter Maydell
2016-10-24 7:24 ` [Qemu-arm] " Markus Armbruster
2016-10-24 7:24 ` Markus Armbruster
2016-10-14 22:52 ` [Qemu-arm] [PATCH v3 3/3] exec: call cpu_exec_exit() from a CPU unrealize common function Laurent Vivier
2016-10-14 22:52 ` [Qemu-devel] " Laurent Vivier
2016-10-17 3:43 ` David Gibson
2016-10-17 3:43 ` David Gibson
2016-10-17 11:30 ` Igor Mammedov
2016-10-17 11:30 ` Igor Mammedov
2016-10-17 3:44 ` [Qemu-arm] [PATCH v3 0/3] Split cpu_exec_init() into an init and a realize part David Gibson
2016-10-17 3:44 ` [Qemu-devel] " David Gibson
2016-10-17 18:47 ` [Qemu-arm] " Eduardo Habkost
2016-10-17 18:47 ` [Qemu-devel] " Eduardo Habkost
2016-10-17 22:50 ` David Gibson [this message]
2016-10-17 22:50 ` 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=20161017225005.GW25390@umbus.fritz.box \
--to=david@gibson.dropbear.id.au \
--cc=agraf@suse.de \
--cc=armbru@redhat.com \
--cc=atar4qemu@gmail.com \
--cc=aurelien@aurel32.net \
--cc=bharata@linux.vnet.ibm.com \
--cc=ehabkost@redhat.com \
--cc=gang.chen.5i5j@gmail.com \
--cc=gerg@uclinux.org \
--cc=green@moxielogic.com \
--cc=groug@kaod.org \
--cc=gxt@mprc.pku.edu.cn \
--cc=imammedo@redhat.com \
--cc=jcmvbkbc@gmail.com \
--cc=kbastian@mail.uni-paderborn.de \
--cc=lvivier@redhat.com \
--cc=michael@walle.cc \
--cc=mjrosato@linux.vnet.ibm.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=proljc@gmail.com \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=rth@twiddle.net \
/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.