arch/s390/kvm/kvm-s390.c
Source file repositories/reference/linux-study-clean/arch/s390/kvm/kvm-s390.c
File Facts
- System
- Linux kernel
- Corpus path
arch/s390/kvm/kvm-s390.c- Extension
.c- Size
- 166402 bytes
- Lines
- 5956
- Domain
- Architecture Layer
- Bucket
- arch/s390
- 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.
- 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/compiler.hlinux/entry-virt.hlinux/export.hlinux/err.hlinux/fs.hlinux/hrtimer.hlinux/init.hlinux/kvm.hlinux/kvm_host.hlinux/mman.hlinux/module.hlinux/moduleparam.hlinux/cpufeature.hlinux/random.hlinux/slab.hlinux/timer.hlinux/vmalloc.hlinux/bitmap.hlinux/sched/signal.hlinux/string.hlinux/pgtable.hlinux/mmu_notifier.hasm/access-regs.hasm/asm-offsets.hasm/lowcore.hasm/machine.hasm/stp.hasm/gmap_helpers.hasm/nmi.hasm/isc.hasm/sclp.hasm/cpacf.h
Detected Declarations
function kvm_clock_sync_scbfunction stop_machinefunction list_for_each_entryfunction allow_cpu_featfunction plo_test_bitfunction pfcr_queryfunction __sortl_queryfunction __dfltcc_queryfunction kvm_s390_cpu_feat_initfunction __kvm_s390_initfunction __kvm_s390_exitfunction kvm_s390_keyopfunction kvm_arch_dev_ioctlfunction kvm_vm_ioctl_check_extensionfunction kvm_arch_sync_dirty_logfunction Getfunction icpt_operexc_on_all_vcpusfunction kvm_for_each_vcpufunction kvm_vm_ioctl_enable_capfunction kvm_s390_get_mem_controlfunction kvm_s390_set_mem_controlfunction scoped_guardfunction kvm_s390_vcpu_crypto_reset_allfunction kvm_for_each_vcpufunction kvm_s390_vm_set_cryptofunction kvm_s390_vcpu_pci_setupfunction kvm_s390_vcpu_pci_enable_interpfunction kvm_for_each_vcpufunction kvm_s390_sync_request_broadcastfunction kvm_s390_vm_start_migrationfunction kvm_s390_vm_stop_migrationfunction kvm_s390_vm_set_migrationfunction kvm_s390_vm_get_migrationfunction kvm_s390_set_tod_extfunction kvm_s390_set_tod_highfunction kvm_s390_set_tod_lowfunction kvm_s390_set_todfunction kvm_s390_get_tod_clockfunction kvm_s390_get_tod_extfunction kvm_s390_get_tod_highfunction kvm_s390_get_tod_lowfunction kvm_s390_get_todfunction kvm_s390_set_processorfunction kvm_s390_set_processor_featfunction kvm_s390_set_processor_subfuncfunction kvm_s390_set_uv_featfunction kvm_s390_set_cpu_modelfunction kvm_s390_get_processor
Annotated Snippet
module_init(kvm_s390_init);
module_exit(kvm_s390_exit);
/*
* Enable autoloading of the kvm module.
* Note that we add the module alias here instead of virt/kvm/kvm_main.c
* since x86 takes a different approach.
*/
#include <linux/miscdevice.h>
MODULE_ALIAS_MISCDEV(KVM_MINOR);
MODULE_ALIAS("devname:kvm");
Annotation
- Immediate include surface: `linux/compiler.h`, `linux/entry-virt.h`, `linux/export.h`, `linux/err.h`, `linux/fs.h`, `linux/hrtimer.h`, `linux/init.h`, `linux/kvm.h`.
- Detected declarations: `function kvm_clock_sync_scb`, `function stop_machine`, `function list_for_each_entry`, `function allow_cpu_feat`, `function plo_test_bit`, `function pfcr_query`, `function __sortl_query`, `function __dfltcc_query`, `function kvm_s390_cpu_feat_init`, `function __kvm_s390_init`.
- Atlas domain: Architecture Layer / arch/s390.
- 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.
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.