|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2] xen/arm : emulation of arm's PSCI v0.2 standard
Hi Parth, On 27/06/14 06:18, Parth Dixit wrote: On 26 June 2014 21:31, Julien Grall <julien.grall@xxxxxxxxxx <mailto:julien.grall@xxxxxxxxxx>> wrote: > + return do_psci_cpu_off(power_state); > +} > + > +int do_psci_0_2_cpu_on(register_t target_cpu, register_t entry_point, > + register_t context_id) This function is 95% the same code. I would merge as much as possible with do_psci_cpu_on to avoid code duplication. Ok, i will try to merge the functions together (AI Parth) FWIW, KVM is using the same PSCI on function on V0.1 and V0.2. I'm wondering if we can assume the same thing here. Of course, you will have to add the few improvement in the function (checking if the VCPU is already online...). Ok... I still don't understand why you can't add the new return value here.BTW, IIRC there was a copyright int the PSCI header from Linux. I think you have to retain it here. Ok Can't you define 2 table in traps.c: one for PSCI v0.1 and one for PSCI v0.2? This would avoid stupid issue later when we will implement a new function for 0.1. Regards, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |