arch/x86/kvm/svm/svm.c
Source file repositories/reference/linux-study-clean/arch/x86/kvm/svm/svm.c
File Facts
- System
- Linux kernel
- Corpus path
arch/x86/kvm/svm/svm.c- Extension
.c- Size
- 168259 bytes
- Lines
- 5822
- Domain
- Architecture Layer
- Bucket
- arch/x86
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- 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/kvm_host.hirq.hmmu.hregs.hx86.hsmm.hcpuid.hpmu.hlinux/module.hlinux/mod_devicetable.hlinux/kernel.hlinux/vmalloc.hlinux/highmem.hlinux/amd-iommu.hlinux/sched.hlinux/trace_events.hlinux/slab.hlinux/hashtable.hlinux/objtool.hlinux/psp-sev.hlinux/file.hlinux/pagemap.hlinux/swap.hlinux/rwsem.hlinux/cc_platform.hlinux/smp.hlinux/string_choices.hlinux/mutex.hasm/apic.hasm/msr.hasm/perf_event.hasm/tlbflush.h
Detected Declarations
function get_npt_levelfunction svm_set_eferfunction svm_get_interrupt_shadowfunction svm_set_interrupt_shadowfunction __svm_skip_emulated_instructionfunction svm_skip_emulated_instructionfunction svm_update_soft_interrupt_ripfunction svm_inject_exceptionfunction svm_init_erratum_383function svm_init_osvwfunction svm_init_os_visible_workaroundsfunction __kvm_is_svm_supportedfunction kvm_is_svm_supportedfunction svm_check_processor_compatfunction __svm_write_tsc_multiplierfunction svm_emergency_disable_virtualization_cpufunction svm_disable_virtualization_cpufunction svm_enable_virtualization_cpufunction svm_cpu_uninitfunction svm_cpu_initfunction set_dr_interceptsfunction clr_dr_interceptsfunction msr_write_interceptedfunction svm_set_intercept_for_msrfunction svm_recalc_lbr_msr_interceptsfunction svm_vcpu_free_msrpmfunction svm_recalc_pmu_msr_interceptsfunction svm_recalc_msr_interceptsfunction __svm_enable_lbrvfunction svm_enable_lbrvfunction __svm_disable_lbrvfunction svm_update_lbrvfunction disable_nmi_singlestepfunction grow_ple_windowfunction shrink_ple_windowfunction svm_hardware_unsetupfunction init_segfunction init_sys_segfunction svm_get_l2_tsc_offsetfunction svm_get_l2_tsc_multiplierfunction svm_write_tsc_offsetfunction svm_write_tsc_multiplierfunction svm_has_pending_gif_eventfunction svm_recalc_instruction_interceptsfunction clearedfunction svm_recalc_interceptsfunction init_vmcbfunction __svm_vcpu_reset
Annotated Snippet
module_init(svm_init)
module_exit(svm_exit)
Annotation
- Immediate include surface: `linux/kvm_host.h`, `irq.h`, `mmu.h`, `regs.h`, `x86.h`, `smm.h`, `cpuid.h`, `pmu.h`.
- Detected declarations: `function get_npt_level`, `function svm_set_efer`, `function svm_get_interrupt_shadow`, `function svm_set_interrupt_shadow`, `function __svm_skip_emulated_instruction`, `function svm_skip_emulated_instruction`, `function svm_update_soft_interrupt_rip`, `function svm_inject_exception`, `function svm_init_erratum_383`, `function svm_init_osvw`.
- Atlas domain: Architecture Layer / arch/x86.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.