arch/arm64/kvm/arm.c
Source file repositories/reference/linux-study-clean/arch/arm64/kvm/arm.c
File Facts
- System
- Linux kernel
- Corpus path
arch/arm64/kvm/arm.c- Extension
.c- Size
- 77549 bytes
- Lines
- 3167
- Domain
- Architecture Layer
- Bucket
- arch/arm64
- Inferred role
- Architecture Layer: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Touches user memory; correctness depends on fault-safe copying and privilege boundary handling.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/arm-smccc.hlinux/bug.hlinux/cpu_pm.hlinux/errno.hlinux/err.hlinux/kvm_host.hlinux/list.hlinux/module.hlinux/vmalloc.hlinux/fs.hlinux/mman.hlinux/sched.hlinux/kvm.hlinux/kvm_irqfd.hlinux/irqbypass.hlinux/sched/stat.hlinux/psci.htrace/events/kvm.htrace_arm.hhyp_trace.hlinux/uaccess.hasm/ptrace.hasm/mman.hasm/tlbflush.hasm/cacheflush.hasm/cpufeature.hasm/virt.hasm/kvm_arm.hasm/kvm_asm.hasm/kvm_emulate.hasm/kvm_hyp.hasm/kvm_mmu.h
Detected Declarations
struct kvm_ioctl_cap_mapenum kvm_wfx_trap_policyfunction kvm_get_cap_for_kvm_ioctlfunction is_kvm_arm_initialisedfunction kvm_arch_vcpu_should_kickfunction kvm_vm_ioctl_enable_capfunction kvm_arm_default_max_vcpusfunction kvm_arch_init_vmfunction kvm_arch_vcpu_faultfunction kvm_arch_create_vm_debugfsfunction kvm_destroy_mpidr_datafunction kvm_arch_destroy_vmfunction kvm_has_full_ptr_authfunction kvm_vm_ioctl_check_extensionfunction kvm_arch_dev_ioctlfunction kvm_arch_vcpu_precreatefunction kvm_arch_vcpu_createfunction kvm_arch_vcpu_postcreatefunction kvm_arch_vcpu_blockingfunction kvm_vcpu_should_clear_twifunction kvm_vcpu_should_clear_twefunction kvm_arch_vcpu_loadfunction kvm_arch_vcpu_putfunction __kvm_arm_vcpu_power_offfunction kvm_arm_vcpu_power_offfunction kvm_arm_vcpu_stoppedfunction kvm_arm_vcpu_suspendfunction kvm_arm_vcpu_suspendedfunction kvm_arch_vcpu_ioctl_get_mpstatefunction kvm_arch_vcpu_ioctl_set_mpstatefunction kvm_arch_vcpu_runnablefunction kvm_arch_vcpu_in_kernelfunction kvm_arch_vcpu_get_ipfunction kvm_init_mpidr_datafunction kvm_for_each_vcpufunction kvm_for_each_vcpufunction kvm_arch_vcpu_run_pid_changefunction kvm_arch_intc_initializedfunction kvm_arm_halt_guestfunction kvm_arm_resume_guestfunction kvm_for_each_vcpufunction kvm_vcpu_sleepfunction kvm_vcpu_wfifunction kvm_vcpu_suspendfunction check_vcpu_requestsfunction vcpu_mode_is_bad_32bitfunction kvm_irq_update_runfunction kvm_vcpu_exit_request
Annotated Snippet
module_init(kvm_arm_init);
Annotation
- Immediate include surface: `linux/arm-smccc.h`, `linux/bug.h`, `linux/cpu_pm.h`, `linux/errno.h`, `linux/err.h`, `linux/kvm_host.h`, `linux/list.h`, `linux/module.h`.
- Detected declarations: `struct kvm_ioctl_cap_map`, `enum kvm_wfx_trap_policy`, `function kvm_get_cap_for_kvm_ioctl`, `function is_kvm_arm_initialised`, `function kvm_arch_vcpu_should_kick`, `function kvm_vm_ioctl_enable_cap`, `function kvm_arm_default_max_vcpus`, `function kvm_arch_init_vm`, `function kvm_arch_vcpu_fault`, `function kvm_arch_create_vm_debugfs`.
- Atlas domain: Architecture Layer / arch/arm64.
- Implementation status: integration implementation candidate.
- This snippet crosses the user/kernel memory boundary; validate fault handling and access checks before translating the pattern.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.