Multicore support #21
dimakuv
started this conversation in
Background knowledge
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Work in progress.
Useful resources:
SMP booting
VM:
TDX:
In case of VM:
IA32_APIC_BASE
MSR, I am a BSP.In case of TDX:
TDCALL[TDG.VP.INFO]
and learn myVCPU_INDEX
.VCPU_INDEX == 0
, I am a BSP, continue with normal initialization flow (init page tables, interrupts, etc.)VCPU_INDEX == 1
, I am an AP, I spin usingmwait
orpause
instruction, waiting for a change in a well-defined "mailbox" physical memory address (which has zeros by default).CPU/NUMA topology
Must follow this document: https://cdrdv2-public.intel.com/759067/intel-64-architecture-processor-topology-enumeration.pdf
Additional resources:
Beta Was this translation helpful? Give feedback.
All reactions