|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH 1/2] xen/arm: Add imx8q{m,x} platform glue
Hi, On 31/01/2024 11:50, John Ernberg wrote: When using Linux for dom0 there are a bunch of drivers that need to do SMC SIP calls into the PSCI provider to enable certain hardware bits like the watchdog. Do you know which protocol this is under the hood. Is this SCMI? Provide a basic platform glue that implements the needed SMC forwarding. Signed-off-by: John Ernberg <john.ernberg@xxxxxxxx> --- NOTE: This is based on code found in NXP Xen tree located here: https://github.com/nxp-imx/imx-xen/blob/lf-5.10.y_4.13/xen/arch/arm/platforms/imx8qm.c Anything after --- will be removed while applied to the three. I think this NOTE should be written down in the commit message. You also possibly want a signed-off-by from Peng as this is his code. Your implementation below will not only forward SMC for dom0 but also for any non-trusted domains. Have you investigated that all the SIP calls are safe to be called by anyone? But even if we restrict to dom0, have you checked that none of the SMCs use buffers? Rather than providing a blanket forward, to me it sounds more like you want to provide an allowlist of the SMCs. This is more futureproof and avoid the risk to expose unsafe SMCs to any domain. For an example, you can have a look at the EEMI mediator for Xilinx. Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |