Re: [PATCH kvm-unit-tests 3/6] lib/arm/smp: introduce smp_run

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 26/05/2017 13:47, Andrew Jones wrote:
> Thinking about this some more, I don't think we need to call main
> from smp_run() to be like x86, but rather we just need the two main
> API calls on_cpu() and on_cpu_async(). x86 doesn't have something like
> smp_run() yet (which would be on_cpus()) and smp_run() currently has the
> limitations that it can only be run once and only when secondaries haven't
> already been boot. I think I should change that. I propose the following
> 
> 1) introduce on_cpu() and on_cpu_async() to arm, using PSCI and sev/wfe
>    for the underling mechanisms.
> 2) change smp_run() to be built on on_cpu() and rename it to on_cpus()
> 
> How's that sound?
> 
> x86 might want an on_cpus() too. I see potentially 16 places it could
> be used
> 
>  $ git grep -B1 on_cpu | grep -c for
>  16

Both sound good, thanks!

Paolo



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux