Open xiaoran33 opened 1 month ago
@Bonjourz 请问官方的同学,目前问题定位到了吗?
有官方的同学解答一下吗?
@xiaoran33 iommu
在海光cpu里应该是amd_iommu
Hi @xiaoran33 ,
to determine what happens on you platform, could you provide the following information for us:
$ uname -r
in your bash;$ cat /proc/cmdline
in your bash;[ 449.191350] HE: parse_ivrs: 47. HE_ERROR. IVRS acpi_table AE_NOT_FOUND
so you need to provide the kernel log (which can be gotten by $dmesg
in your bash after reboot).
好的
root@test:~# uname -r
5.4.0-196-generic
root@test:~# cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-5.4.0-196-generic root=UUID=57af455c-7808-4a17-b758-3cd51901d43b ro memmap=128G$0x100000000 iommu=off no5lvl
issue貌似上传不了文件,我把日志输出文件了,下面是在日志搜索到的iommu 内容,(或者你需要日志文件我可以通过钉钉传给你)
dmesg kernel log:
[ 1.692840] iommu: Default domain type: Translated
Hi @xiaoran33 , just drag the "dmesg" file here.
Hi @xiaoran33 ,
Please make sure AMD I/O Virtualization Technology (IOMMU) is enabled in the BIOS.
我在跑readme文档示例hello_c的时候,occlum run /bin/hello_world卡住了, occlum build正常执行,打印的信息如下:
root@test:~/occlum/demos/hello_c/occlum_instance# occlum build
Enclave sign-tool: /opt/occlum/sgxsdk-tools/bin/x64/sgx_sign_hyper
Enclave sign-key: /opt/occlum/etc/template/Enclave.pem
SGX mode: HYPER
rm -rf /root/occlum/demos/hello_c/occlum_instance/build
Building the initfs...
[+] Home dir is /root
[+] Open token file success!
[+] Token file valid!
[+] Init Enclave Successful 1769526525954!
Generate the SEFS image successfully
Building new image...
[+] Home dir is /root
[+] Open token file success!
[+] Token file valid!
[+] Init Enclave Successful 1791001362434!
Generate the SEFS image successfully
Building libOS...
Signing the enclave...
<EnclaveConfiguration>
<ProdID>0</ProdID>
<ISVSVN>0</ISVSVN>
<StackMaxSize>1048576</StackMaxSize>
<StackMinSize>1048576</StackMinSize>
<HeapInitSize>33554432</HeapInitSize>
<HeapMaxSize>1073741824</HeapMaxSize>
<HeapMinSize>33554432</HeapMinSize>
<TCSNum>32</TCSNum>
<TCSMaxNum>4096</TCSMaxNum>
<TCSMinPool>32</TCSMinPool>
<TCSPolicy>1</TCSPolicy>
<DisableDebug>0</DisableDebug>
<MiscSelect>1</MiscSelect>
<MiscMask>0x0</MiscMask>
<ReservedMemMaxSize>314572800</ReservedMemMaxSize>
<ReservedMemMinSize>314572800</ReservedMemMinSize>
<ReservedMemInitSize>314572800</ReservedMemInitSize>
<ReservedMemExecutable>1</ReservedMemExecutable>
<MarshalBufferSize>1048576</MarshalBufferSize>
<EnableKSS>0</EnableKSS>
<ISVEXTPRODID_H>0</ISVEXTPRODID_H>
<ISVEXTPRODID_L>0</ISVEXTPRODID_L>
<ISVFAMILYID_H>0</ISVFAMILYID_H>
<ISVFAMILYID_L>0</ISVFAMILYID_L>
</EnclaveConfiguration>
tcs_num 32, tcs_max_num 4096, tcs_min_pool 32
The required memory is 386457600B.
The required memory is 0x1708e000, 377400 KB.
Succeed.
Built the Occlum image and enclave successfully
occlum run /bin/hello_world卡住了,进程一直不结束,也没打印Hello World,如下:
root@test:~/occlum/demos/hello_c/occlum_instance# occlum run /bin/hello_world
Hi @xiaoran33 ,
Have you resolved the issue you mentioned before? It seems that you have successfully built and installed HyperEnclave on your platform. How do you solve these problems you mentioned before? Could you please share it with us and the community?
If the problem "Regarding the issue of building and installing HyperEnclave" is solved, could you close this issue?
For the new problems: "occlum run /bin/hello_world
hangs", could you open another issue so we can discuss it there.
你好,咨询一个问题:目前在hygon服务器上编译注册hyperenclave报错,报错如下:
GRUB_CMDLINE_LINUX的配置:
memmap=128G\\\$0x100000000 iommu=off no5lvl
lscpu信息如下: