Module linux

Source

ModulesΒ§

cmdline
config
device_helpers πŸ”’
ext2 πŸ”’
Provides a function to lanunches a process of creating ext2 filesystem on memory region asynchronously for pmem-ext2 device.
gpu πŸ”’
GPU related things depends on β€œgpu” feature
jail_warden πŸ”’
Manages minijails creation after VM starts. Minijail is created during a device hotplug.
pci_hotplug_helpers πŸ”’
Helper functions for PCI hotplug.
pci_hotplug_manager πŸ”’
A high-level manager for hotplug PCI devices.
vcpu πŸ”’

StructsΒ§

AddressedProtoTube πŸ”’
ControlLoopState πŸ”’
HotPlugStub πŸ”’
Collection of devices related to PCI hotplug.
VmRequestResult πŸ”’

EnumsΒ§

ExitState
IrqHandlerToken πŸ”’
PvClockAction πŸ”’
The action requested by the pvclock device to perform on the main thread.
VmMemoryHandlerRequest
Commands to control the VM Memory handler thread.

ConstantsΒ§

KVM_PATH πŸ”’

FunctionsΒ§

add_hotplug_device πŸ”’
add_hotplug_net πŸ”’
create_devices πŸ”’
create_guest_memory πŸ”’
create_mmio_file_backed_mappings πŸ”’
create_pure_virtual_pcie_root_port πŸ”’
Creates PCIE root port with only virtual devices.
create_virtio_devices πŸ”’
find_registered_tube πŸ”’
get_default_hypervisor πŸ”’
Choose a default hypervisor if no --hypervisor option was specified.
get_hp_bus πŸ”’
get_representative_pcpu πŸ”’
For vcpu_id, return the pcpu that it’s affined to. It’s considered the β€œrepresentative” pcpu since there could be multiple pcpu’s affined to a single vcpu, so arbitrarily return the first pcpu we see. This β€œshouldn’t” be an issue since ideally all the affined pcpu’s have the same capacity, frequency, etc.
handle_hotplug_command πŸ”’
handle_hotplug_net_add πŸ”’
handle_hotplug_net_command πŸ”’
handle_hotplug_net_remove πŸ”’
handle_irq_tube_request πŸ”’
irq_handler_thread πŸ”’
Handles IRQs and requests from devices to add additional IRQ lines.
jail_and_start_vu_device πŸ”’
Start and jail a vhost-user device according to its configuration and a vhost listener string.
make_addr_tube_from_maybe_existing πŸ”’
map_vcpu_capacity πŸ”’
Given vcpu_affinity (vcpu->pcpu mapping) and host_capacity (pcpu->pcpu capacity mapping), return a mapping of vcpu->pcpu’s capacity.
map_vcpu_clusters πŸ”’
Given vcpu_affinity (vcpu->pcpu mapping) and host_clusters (cluster->pcpu mapping), return a mapping of cluster->vcpu mapping.
process_vhost_user_control_request πŸ”’
process_vm_control_event πŸ”’
process_vm_request πŸ”’
punch_holes_in_guest_mem_layout_for_mappings πŸ”’
remove_hotplug_bridge πŸ”’
remove_hotplug_device πŸ”’
remove_hungup_and_drained_tubes πŸ”’
When control tubes hang up, we want to make sure that we’ve fully drained the underlying socket before removing it. This function also handles removing closed sockets in such a way that avoids phantom events.
run_config
run_control πŸ”’
run_kvm πŸ”’
run_vm πŸ”’
send_pvclock_cmd πŸ”’
setup_emulator_crash_reporting
Setup crash reporting for a process. Each process MUST provide a unique product_type to avoid making crash reports incomprehensible.
setup_vm_components πŸ”’
start_devices
start_pci_root_worker πŸ”’
start_vhost_user_control_server πŸ”’
trigger_vm_suspend_and_wait_for_entry
vm_memory_handler_thread πŸ”’