Hi all!I tried running Linux of ARM architecture by GEM5 v21.2.1.1 with feature FEAT_VHE
and VIRTUALIZATION
enabled, but it stalled in paging_init
. The Linux is compiled from https://gem5.googlesource.com/arm/linux, branch gem5/v4.14
; and the bootloader is boot.arm64
downloaded from http://dist.gem5.org/dist/v21-2/arm/aarch-system-20210904.tar.bz2.
This problem is quite similar to https://gem5.atlassian.net/browse/GEM5-901.
I noticed that in GEM v20.1.0.3, a parameter have_vhe
was added, in commit https://gem5-review.googlesource.com/c/public/gem5/+/39695. This parameter was removed in a later commit https://gem5-review.googlesource.com/c/public/gem5/+/51010.
Can GEM5 running Linux using Arm ISA with FEAT_VHE support?
Best Regards,
Yifan Tan
Hi Yifan,
I believe Linux boot with FEAT_VHE enabled is not supported in gem5 yet.
The VIRTUALIZATION feature is supported, but there were some problem edge cases so it was not enabled by default in gem5-21.2 and earlier. We expect it will be enabled by default in the next stable version of gem5.
The have_vhe
parameter was removed because it was replaced by the ArmExtension.FEAT_VHE
enum in ArmSystem.py. However FEAT_VHE support remains disabled by default.
Best regards,
Richard.
From: 谭一凡 yftan18@fudan.edu.cn
Sent: 16 June 2022 05:47
To: gem5-users@gem5.org
Subject: [gem5-users] Can GEM5 running Linux using Arm ISA with FEAT_VHE support?
Hi all!
I tried running Linux of ARM architecture by GEM5 v21.2.1.1 with feature FEAT_VHE
and VIRTUALIZATION
enabled, but it stalled in paging_init
. The Linux is compiled from https://gem5.googlesource.com/arm/linux, branch gem5/v4.14
; and the bootloader is boot.arm64
downloaded from http://dist.gem5.org/dist/v21-2/arm/aarch-system-20210904.tar.bz2.
This problem is quite similar to https://gem5.atlassian.net/browse/GEM5-901.
I noticed that in GEM v20.1.0.3, a parameter have_vhe
was added, in commit https://gem5-review.googlesource.com/c/public/gem5/+/39695. This parameter was removed in a later commit https://gem5-review.googlesource.com/c/public/gem5/+/51010.
Can GEM5 running Linux using Arm ISA with FEAT_VHE support?
Best Regards,
Yifan Tan
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Hi Yifan,
VHE support in gem5 had some bugs and therefore we decided to disable it by default, until all problems were fixed.
I have investigated those issues, and I am finally able to boot Linux at EL2 (with VHE enabled).
I will soon post some patches to the develop branch and we can think about backporting them to gem5 v22 once they get merged
Kind Regards
Giacomo
From: 谭一凡 yftan18@fudan.edu.cn
Date: Thursday, 16 June 2022 at 05:49
To: gem5-users@gem5.org gem5-users@gem5.org
Subject: [gem5-users] Can GEM5 running Linux using Arm ISA with FEAT_VHE support?
Hi all!
I tried running Linux of ARM architecture by GEM5 v21.2.1.1 with feature FEAT_VHE
and VIRTUALIZATION
enabled, but it stalled in paging_init
. The Linux is compiled from https://gem5.googlesource.com/arm/linux, branch gem5/v4.14
; and the bootloader is boot.arm64
downloaded from http://dist.gem5.org/dist/v21-2/arm/aarch-system-20210904.tar.bz2.
This problem is quite similar to https://gem5.atlassian.net/browse/GEM5-901.
I noticed that in GEM v20.1.0.3, a parameter have_vhe
was added, in commit https://gem5-review.googlesource.com/c/public/gem5/+/39695. This parameter was removed in a later commit https://gem5-review.googlesource.com/c/public/gem5/+/51010.
Can GEM5 running Linux using Arm ISA with FEAT_VHE support?
Best Regards,
Yifan Tan
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.