Expand description
Definitions for the sidecar kernel.
Structs§
- Command
Error - A string error.
- Command
Page - The sidecar command page, containing command requests and responses.
- Control
Page - The per-node control page, which is used to communicate between the sidecar kernel and the main kernel sidecar kernel driver.
- CpuContext
X64 - The CPU context for x86-64.
- CpuStatus
- The CPU status.
- GetSet
VpRegister Request - A request and response for
SidecarCommand::GET_VP_REGISTERSorSidecarCommand::SET_VP_REGISTERS. - PerCpu
State - Starting state for each CPU, supplied by
openhcl_boot. For various reasons,openhcl_bootmay have decided to instruct the linux kernel to start additional CPUs (notably, in the event that we know we’re about to spawn tasks on those CPUs right away to handle device interrupts). - RunVp
Response - A response for
SidecarCommand::RUN_VP. - Sidecar
Command - The sidecar command.
- Sidecar
Node Output - The per-node output of the sidecar kernel boot process.
- Sidecar
Node Params - Node-specific input parameters.
- Sidecar
Output - The output of the sidecar kernel boot process.
- Sidecar
Params - Sidecar start input parameters.
- Translate
GvaRequest - A request for
SidecarCommand::TRANSLATE_GVA. - Translate
GvaResponse - A response for
SidecarCommand::TRANSLATE_GVA.
Constants§
- MAX_
GET_ SET_ VP_ REGISTERS - The maximum number of registers that can be requested in a single
SidecarCommand::GET_VP_REGISTERSorSidecarCommand::SET_VP_REGISTERS. - MAX_
NODES - The maximum number of supported sidecar nodes.
- NUM_
CPUS_ SUPPORTED_ FOR_ PER_ CPU_ STATE - The maximum number of supported sidecar CPUs. Keep small to leave space on the SidecarParams page for future fields. VMs with more CPUs fall back to disabling sidecar on restore.
- PAGE_
SIZE - The page size for all sidecar objects.
- PER_
VP_ PAGES - The number of reserved pages required for each VP.
- PER_
VP_ SHMEM_ PAGES - The number of per-VP shared-memory pages.
- STACK_
PAGES - The number of pages in the per-VP stack.
Functions§
- required_
memory - The required memory (in bytes) for a node.