Thread (34 messages) 34 messages, 4 authors, 2020-10-28

Re: [PATCH 01/11] KVM: arm64: Don't adjust PC on SError during SMC trap

From: Marc Zyngier <maz@kernel.org>
Date: 2020-10-26 14:09:55
Also in: kvm, kvmarm

On 2020-10-26 13:53, Mark Rutland wrote:
On Mon, Oct 26, 2020 at 01:34:40PM +0000, Marc Zyngier wrote:
quoted
On SMC trap, the prefered return address is set to that of the SMC
instruction itself. It is thus wrong to tyr and roll it back when
Typo: s/tyr/try/
quoted
an SError occurs while trapping on SMC. It is still necessary on
HVC though, as HVC doesn't cause a trap, and sets ELR to returning
*after* the HVC.

It also became apparent that the is 16bit encoding for an AArch32
I guess s/that the is/that there is no/ ?
Something along these lines, yes! ;-)
quoted
HVC instruction, meaning that the displacement is always 4 bytes,
no matter what the ISA is. Take this opportunity to simplify it.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Assuming that there is no 16-bit HVC:
It is actually impossible to have a 16bit encoding for HVC, as
it always convey a 16bit immediate, and you need some space
to encode the instruction itself!
Acked-by: Mark Rutland <mark.rutland@arm.com>
Thanks,

         M.
-- 
Jazz is not dead. It just smells funny...

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help