⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module kvm

Module kvm 

Source
Expand description

KVM-compatible virtualization API

Implements a KVM-like interface for creating and managing virtual machines, vCPUs, memory regions, and interrupt controllers. Provides VMLAUNCH/VMRESUME cycle with VM exit reason decoding.

Sprints W5-S1 (core API), W5-S2 (vCPU management), W5-S3 (PIT emulation).

Structs§

KvmIoExit
Information about an I/O port VM exit
KvmMemoryRegion
A user memory region mapping guest physical to host virtual
KvmMmioExit
Information about an MMIO VM exit
KvmRegs
x86_64 general-purpose register set
KvmRunPage
Shared run page between kernel and userspace
KvmSegment
x86 segment register descriptor
KvmSregs
x86_64 system register set (segment + control registers)
KvmVcpu
Virtual CPU state
KvmVm
Virtual Machine instance
MsrEntry
Model-Specific Register entry
PitChannel
State for a single PIT counter channel
VirtualPit
8254/8253-compatible Programmable Interval Timer

Enums§

IoDirection
Direction of I/O port access
KvmCapability
KVM capability identifiers
KvmExitReason
VM exit reason from KVM run
KvmRunState
Run state for the shared KVM run page
PitMode
PIT counter operating mode

Constants§

KVM_API_VERSION
KVM API version (matches Linux KVM_API_VERSION)