[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XenARM] [RFC PATCH 0/2] Add support for a fake, para-virtualised machine
Hi Nicolas, On Tue, Dec 04, 2012 at 05:00:07PM +0000, Nicolas Pitre wrote: > On Tue, 4 Dec 2012, Rob Herring wrote: > > > That to me is highlighting where we need to do more work on DT driving > > the initialization. The platforms are still aware of what kind of timers > > and interrupt controllers are present. They should not be. There's work > > in progress for both of those. > > > > Lorenzo's DT MPIDR patches should trim down smp code some. The DT spin > > table code could probably be common. I think I could use it on highbank > > as well. If we decide the pen code stays, then it should be common > > rather than creating yet another copy. > > I don't want to rain on the "everything should be common" parade here. > However, for the best part of last year I've been working on kernel > support for big.LITTLE systems, and the handling of CPU hotplug > (including SMP secondary boot) is far from being a trivial task. > Managing the simple bringing up or down of a CPU in such an environment > required hundreds of new lines of code. That is far from a simple > holding pen or spinning table to say the least. > > [ For the curious, I'll post this code here soon for review. ] > > So my point of view is: if you do not need a holding pen because you can > hold individual CPUs in reset, then don't. Many platforms with support > in the kernel can do that, yet they copied the holding pen code just > because it is there. And that is total crap. Agreed, but it's also total crap forcing emulation of a made-up power controller on the host in the case of a virtual platform. > on the topic of a para-virtualised machine, I think that it should > simply implement the PSCI calls to bring up CPUs _without_ any holding > pen nor spinning tables. You issue the appropriate PSCI call with the > physical address for secondary_startup() as argument and you're done. > The host intercepts that call and free a new CPU instance in response. > That's all. I'd be happy to go with this suggestion if it wasn't for one thing: platforms that do not implement a secure mode. For these platforms, smc will be an undefined instruction at the exception level where it is executed and therefore cannot be trapped by the hypervisor. If that situation requires a pen, I see no benefit from having two boot schemes where one of them would work in every case. Will _______________________________________________ Xen-arm mailing list Xen-arm@xxxxxxxxxxxxx http://lists.xen.org/cgi-bin/mailman/listinfo/xen-arm
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |