Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable SMP on qemu-arm-virt #202

Closed
wants to merge 1 commit into from
Closed

Conversation

andybui01
Copy link

@andybui01 andybui01 commented Jun 25, 2024

We always use the EL2 qemu implementation, this allows the
elfloader to boot secondary cores using SMC (the only method it
supports). Note this is fine even if CONFIG_ARM_HYPERVISOR_SUPPORT is
not set as the elfloader will drop from EL2 to EL1 before entering the
seL4 kernel.

We also set the -smp flag to KernelMaxNumNodes, to launch the
necessary CPUs.

Signed-off-by: Andy Bui <[email protected]>
Comment on lines -147 to +150
if(KernelArmHypervisorSupport)
if(Kernel32)
set(sim_machine "virt,virtualization=on,highmem=off,secure=off")
else()
set(sim_machine "virt")
set(sim_machine "virt,virtualization=on,highmem=on,secure=off")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to the seL4 PR, I don't quite understand why would always switch on virtualisation. We do want to test simulated kernels on platforms that don't support virtualisation, so I don't think we should do that.

@Indanz
Copy link

Indanz commented Jun 26, 2024

Feel free to re-open if adapting Elfloader doesn't work.

@Indanz Indanz closed this Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants