Re: [Xen-devel] [PATCH v7 08/11] arm: traps: handle PSCI calls inside `vsmc.c`

2017-10-06 Thread Julien Grall
Hi Volodymyr, On 04/10/17 22:00, Volodymyr Babchuk wrote: +/* helper function for checking arm mode 32/64 bit */ +static inline int psci_mode_check(struct domain *d, uint32_t fid) +{ +return !( is_64bit_domain(d)^( (fid & PSCI_0_2_64BIT) >> 30 ) ); +} + +/* PSCI 0.2 interface and other Stand

[Xen-devel] [PATCH v7 08/11] arm: traps: handle PSCI calls inside `vsmc.c`

2017-10-04 Thread Volodymyr Babchuk
PSCI is part of HVC/SMC interface, so it should be handled in appropriate place: `vsmc.c`. This patch moves PSCI handler calls from `traps.c` to `vsmc.c`. Also it corrects coding style of the PSCI handler functions. Older PSCI 0.1 uses SMC function identifiers in range that is reserved for existin