All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] ARM cpu object, setting properties from board model
@ 2013-11-19 20:01 Peter Maydell
  2013-11-19 20:12 ` Peter Maydell
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Peter Maydell @ 2013-11-19 20:01 UTC (permalink / raw)
  To: QEMU Developers, Andreas Färber

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). However it
seems like it would be nicer for it to be an official
QOM property. This is alas not currently possible because
cpu_arm_init() does both 'init' and 'realize', and once
you've called it it's too late to set properties.

Andreas -- did you have any thoughts/plans/code in this area?
Splitting the realize part out of cpu_arm_init(), or
providing a cpu_arm_init_dont_realize() [ugh], would be
easy to code but is it going in the right direction?

thanks
-- PMM

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-11-20 15:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-19 20:01 [Qemu-devel] ARM cpu object, setting properties from board model Peter Maydell
2013-11-19 20:12 ` Peter Maydell
2013-11-19 20:16 ` Igor Mammedov
2013-11-20 15:19 ` Andreas Färber
2013-11-20 15:36   ` Peter Maydell

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.