|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT PATCHv3 15/25] plat/kvm: Force align the stack pointer for Arm64 EL1 exceptions
Hello Wei Chen, Please find the comments inline: Thanks & Regards Sharan On 12/13/18 10:15 AM, Wei Chen wrote: If we enable the SCTLR_ELx.SA, Arm64 stack pointer must be aligned to 16-byte before being used as base address. But some valid EL1 exceptions don't guarantee that SP_EL1 was aligned when entering the exceptions. Signed-off-by: Wei Chen <wei.chen@xxxxxxx> --- plat/kvm/arm/exceptions.S | 65 ++++++++++++++++++++++++++++++++------- 1 file changed, 54 insertions(+), 11 deletions(-) diff --git a/plat/kvm/arm/exceptions.S b/plat/kvm/arm/exceptions.S index e4a5c74..3fafb40 100644 --- a/plat/kvm/arm/exceptions.S +++ b/plat/kvm/arm/exceptions.S @@ -29,9 +29,51 @@ #include <uk/arch/lcpu.h> #include <uk/asm.h>+.macro EXCHANGE_SP_WITH_X0 We are restoring the x18 register and overwriting it sp_el0 or sp.Is this the expected behavior? Probably we can restore the x18, x19 after this operation.
_______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |