From: Peter Maydell <peter.maydell@linaro.org>
To: "QEMU Developers" <qemu-devel@nongnu.org>,
"Andreas Färber" <afaerber@suse.de>
Subject: Re: [Qemu-devel] ARM cpu object, setting properties from board model
Date: Tue, 19 Nov 2013 20:12:32 +0000 [thread overview]
Message-ID: <CAFEAcA_mqo-e5eivXrxMA8C9N+t0_Qp-2cLS16niG2gEydD77A@mail.gmail.com> (raw)
In-Reply-To: <CAFEAcA9jtYusaB1dWt_1T28cJdMDOmL4860iT9C3c7ZSii59=A@mail.gmail.com>
On 19 November 2013 20:01, Peter Maydell <peter.maydell@linaro.org> wrote:
> I find myself with a use case where I would like to set
> a CPU object property from the board model init function
> (specifically, I'd like the board model to be able to say
> "this CPU will boot via PSCI so if you're KVM then start
> it appropriately").
>
> I could just reach in and fiddle with the ARMCPU field
> the way hw/arm/highback.c does with reset_cbar (and in fact
> that's what I'm likely to do for the moment).
In fact it turns out that I can't do it like this, because
kvm_arch_init_vcpu() gets called as part of realize, so
I really do have to set the field/property after init
but before realize. So much for expediency :-)
-- PMM
next prev parent reply other threads:[~2013-11-19 20:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-19 20:01 [Qemu-devel] ARM cpu object, setting properties from board model Peter Maydell
2013-11-19 20:12 ` Peter Maydell [this message]
2013-11-19 20:16 ` Igor Mammedov
2013-11-20 15:19 ` Andreas Färber
2013-11-20 15:36 ` Peter Maydell
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=CAFEAcA_mqo-e5eivXrxMA8C9N+t0_Qp-2cLS16niG2gEydD77A@mail.gmail.com \
--to=peter.maydell@linaro.org \
--cc=afaerber@suse.de \
--cc=qemu-devel@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).