Fix TCB size for SMP + benchmark config#1563
Conversation
|
I only ran into this on AArch64, but I only was building this kind of configuration of the kernel in AArch64 and RISC-V 64-bit. |
lsf37
left a comment
There was a problem hiding this comment.
I assume you found this because the compile_assert for the TCB size failed?
|
Yes, but I'm wondering if I need a |
|
I can reproduce this without MCS: |
|
But actually, only when |
70efa69 to
00b741a
Compare
In the definition of tcb_t, there's extra fields if there's SMP or BENCHMARK_TRACK_UTILISATION or ARM_HYPERIVSOR_SUPPORT. It looks like the combination of all three (which Microkit uses) is not enough for 11 bits. Signed-off-by: Ivan Velickovic <[email protected]>
00b741a to
68590d3
Compare
|
Thanks for checking. It sounds like we can merge this when the tests have passed. |
Yep, it looks like hypervisor support being on as well is what triggers it. I think we've got the right combination of config options now. |
In the definition of tcb_t, there's extra fields if there's SMP or BENCHMARK_TRACK_UTILISATION, looks like having both on is not enough for 11 bits.