RFC Add support for a fake, para-virtualised machine
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest0 of 2 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 2 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC PATCH 0/2] Add support for a fake, para-virtualised machine
Hi Nicolas,
Quoted 20 lines · Nicolas Pitre
Quoted 9 lines · Rob Herring
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.
Quoted 6 lines
[ 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.
Quoted 6 lines
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