arch/powerpc/kvm/book3s.c
Source file repositories/reference/linux-study-clean/arch/powerpc/kvm/book3s.c
File Facts
- System
- Linux kernel
- Corpus path
arch/powerpc/kvm/book3s.c- Extension
.c- Size
- 28954 bytes
- Lines
- 1106
- Domain
- Architecture Layer
- Bucket
- arch/powerpc
- 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.hlinux/err.hlinux/export.hlinux/slab.hlinux/module.hlinux/miscdevice.hlinux/gfp.hlinux/sched.hlinux/vmalloc.hlinux/highmem.hasm/reg.hasm/cputable.hasm/cacheflush.hlinux/uaccess.hasm/io.hasm/kvm_ppc.hasm/kvm_book3s.hasm/mmu_context.hasm/page.hasm/xive.hbook3s.htrace.h
Detected Declarations
function kvmppc_update_int_pendingfunction kvmppc_critical_sectionfunction kvmppc_inject_interruptfunction kvmppc_book3s_vec2irqpriofunction kvmppc_book3s_dequeue_irqpriofunction kvmppc_book3s_queue_irqpriofunction kvmppc_core_queue_machine_checkfunction kvmppc_core_queue_syscallfunction kvmppc_core_queue_programfunction kvmppc_core_queue_fpunavailfunction kvmppc_core_queue_vec_unavailfunction kvmppc_core_queue_vsx_unavailfunction kvmppc_core_queue_decfunction kvmppc_core_pending_decfunction kvmppc_core_dequeue_decfunction kvmppc_core_queue_externalfunction kvmppc_core_dequeue_externalfunction kvmppc_core_queue_data_storagefunction kvmppc_core_queue_inst_storagefunction kvmppc_book3s_irqprio_deliverfunction clear_irqpriofunction KVM_INTERRUPT_SETfunction kvmppc_core_prepare_to_enterfunction kvmppc_gpa_to_pfnfunction kvmppc_xlatefunction kvmppc_load_last_instfunction kvmppc_subarch_vcpu_initfunction kvmppc_subarch_vcpu_uninitfunction kvm_arch_vcpu_ioctl_set_sregsfunction kvm_arch_vcpu_ioctl_get_regsfunction kvm_arch_vcpu_ioctl_set_regsfunction kvm_arch_vcpu_ioctl_get_fpufunction kvm_arch_vcpu_ioctl_set_fpufunction kvmppc_get_one_regfunction kvmppc_set_one_regfunction kvmppc_core_vcpu_loadfunction kvmppc_core_vcpu_putfunction kvmppc_set_msrfunction kvmppc_vcpu_runfunction kvm_arch_vcpu_ioctl_translatefunction kvm_arch_vcpu_ioctl_set_guest_debugfunction kvmppc_decrementer_funcfunction kvmppc_core_vcpu_createfunction kvmppc_core_vcpu_freefunction kvmppc_core_check_requestsfunction kvm_arch_sync_dirty_logfunction kvmppc_core_free_memslotfunction kvmppc_core_flush_memslot
Annotated Snippet
module_init(kvmppc_book3s_init);
module_exit(kvmppc_book3s_exit);
/* On 32bit this is our one and only kernel module */
#ifdef CONFIG_KVM_BOOK3S_32_HANDLER
MODULE_ALIAS_MISCDEV(KVM_MINOR);
MODULE_ALIAS("devname:kvm");
#endif
Annotation
- Immediate include surface: `linux/kvm_host.h`, `linux/err.h`, `linux/export.h`, `linux/slab.h`, `linux/module.h`, `linux/miscdevice.h`, `linux/gfp.h`, `linux/sched.h`.
- Detected declarations: `function kvmppc_update_int_pending`, `function kvmppc_critical_section`, `function kvmppc_inject_interrupt`, `function kvmppc_book3s_vec2irqprio`, `function kvmppc_book3s_dequeue_irqprio`, `function kvmppc_book3s_queue_irqprio`, `function kvmppc_core_queue_machine_check`, `function kvmppc_core_queue_syscall`, `function kvmppc_core_queue_program`, `function kvmppc_core_queue_fpunavail`.
- Atlas domain: Architecture Layer / arch/powerpc.
- 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.