On 13.05.22 18:28, Lad, Prabhakar wrote:
> Hi Jan,
> 
> On Fri, May 13, 2022 at 4:33 PM Jan Kiszka <[email protected]> wrote:
>>
>> On 13.05.22 17:20, Lad, Prabhakar wrote:
>>> On Fri, May 13, 2022 at 1:18 PM Jan Kiszka <[email protected]> wrote:
>>>>
>>>> On 13.05.22 13:32, Lad, Prabhakar wrote:
>>>>>> Could it be that arm_dcaches_flush was a red herring? Maybe we are
>>>>>> actually crashing on hvc in arch_entry, and that because of Linux not
>>>>>> starting in HVC mode, thus no hypervisor take-over stub being installed.
>>>>>>
>>>>>> Could you share the boot log of the kernel?
>>>>>>
>>>>> Attached is the complete log.
>>>>>
>>>>
>>>> "CPU: All CPU(s) started at EL1"
>>>>
>>>> As suspected. Must be EL2 or HYP. Reconfigure your firmware to enable that.
>>>>
>>> Argh my bad, I've now enabled it to start in EL2 mode (attached are
>>> the complete logs). Now I see the below panic,
>>>
>>> [   33.920507] jailhouse: loading out-of-tree module taints kernel.
>>> Reading configuration set:
>>>   Root cell:     Renesas RZ/V2L SMARC (renesas-r9a07g054l2.cell)
>>> Overlapping memory regions inside cell: None
>>> Overlapping memory regions with hypervisor: None
>>> Missing resource interceptions for architecture arm64: None
>>> [   34.741847] Bad mode in Synchronous Abort handler detected on CPU0,
>>> code 0x5a000000 -- HVC (AArch64)

"HVC instruction execution in AArch64 state, when HVC is not disabled",
origin: EL2 (hypervisor mode).

Is KVM off again when you start Jailhouse here? Does the CPU support VHE
(Virtualization Host Extension)? Is CONFIG_ARM64_VHE enabled? Try to
turn that off.

If that is the reason, we need to improve documentation, also along the
different kernel version because the config vanished later on - not sure
if things still work then after 5.13 on such hardware.

Jan

-- 
Siemens AG, Technology
Competence Center Embedded Linux

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/8e895901-cd60-9696-935a-293245586a77%40siemens.com.

Reply via email to