On 23/11/2023 04:33, '张平' via Jailhouse wrote:
 >On 22/11/2023 06:53, '张平' via Jailhouse wrote:
 >> I am trying to transplant jailhouse on the A55 core, but now I have
 >> encountered some problems. After I execute the following command, the
 >> system will freeze.
 >> $ jailhouse enable renesas-r9a07g044l2.cell
 >
 >No error log? Is the debug console configured correctly?

I think there is no problem with the debug console configuration I set up.
Please refer to:
.debug_console = {
      .address = 0x1004b800,
      .size = 0x400,
      .type = JAILHOUSE_CON_TYPE_SCIFA,
      .flags = JAILHOUSE_CON_ACCESS_MMIO |
              JAILHOUSE_CON_REGDIST_4,
},

 >
 >>
 >> What are the possible consequences?
 >>
 >> I made sure I did the following:
 >> 1.Linux kernel version 5.10
 >> 2.Linux starts in EL2
 >> 3. Turn on KVM
 >
 >Do not use KVM in combination with Jailhouse. Disable KVM in your kernel.
 >
I turned off KVM as you said but the problem still exists.
root@smarc-rzg2l:~# dmesg | grep -r kvm
root@smarc-rzg2l:~# insmod jailhouse.ko
[123.760797] jailhouse: loading out-of-tree module taints kernel.
root@smarc-rzg2l:~# jailhouse enable renesas-r9a07g044l2.cell


 >Ralf
 >
 >> 4. Turn off kernel CONFIG_ARM64_VHE

I would also like to add:
I refer to this post and added mov and ret modifications to entry.S to output jailhouse is opening. However, when using the command jailhouse cell list later, I also encountered the problem of the serial port being stuck. Reference post: https://groups.google.com/g/jailhouse-dev/c/zwY9bpxq8mg/m/VF44nEC2AwAJ
log:
root@smarc-rzg2l:~# insmod jailhouse.ko
[79.631308] jailhouse: loading out-of-tree module taints kernel.
root@smarc-rzg2l:~# jailhouse enable renesas-r9a07g044l2.cell
[85.716867] pci-host-generic e0000000.pci: host bridge /pci@0 ranges:
[85.723692] pci-host-generic e0000000.pci: MEM 0x00e0100000..0x00e0103fff -> 0x00e0100000 [85.733615] pci-host-generic e0000000.pci: ECAM at [mem 0xe0000000-0xe00fffff] for [bus 00]
[85.742977] pci-host-generic e0000000.pci: PCI host bridge to bus 0001:00
[85.749828] pci_bus 0001:00: root bus resource [bus 00]
[85.755130] pci_bus 0001:00: root bus resource [mem 0xe0100000-0xe0103fff]
[85.763626] pci 0001:00:1f.0: [0ff0:c000] type 0f class 0xc0000f
[85.769669] pci 0001:00:1f.0: unknown header type 0f, ignoring device
[85.776475] The Jailhouse is opening.
root@smarc-rzg2l:~# jailhouse cell list
ID Name

So is this way of modifying entry.S the correct way?

I can not comment on that, I'm not into that issue. If it works for you for the moment to do further evaluation - great! You can of course contact the original authors of the workaround.

Thanks,
  Ralf


--
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] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/2be7b167-688f-4b75-971f-57242f8b443fn%40googlegroups.com <https://groups.google.com/d/msgid/jailhouse-dev/2be7b167-688f-4b75-971f-57242f8b443fn%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
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/42e9e931-b628-40a5-8375-cc2a495eff41%40oth-regensburg.de.

Reply via email to