arch/loongarch/kvm/main.c

Source file repositories/reference/linux-study-clean/arch/loongarch/kvm/main.c

File Facts

System
Linux kernel
Corpus path
arch/loongarch/kvm/main.c
Extension
.c
Size
13265 bytes
Lines
449
Domain
Architecture Layer
Bucket
arch/loongarch
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.

Dependency Surface

Detected Declarations

Annotated Snippet

module_init(kvm_loongarch_init);
module_exit(kvm_loongarch_exit);

#ifdef MODULE
static const struct cpu_feature kvm_feature[] = {
	{ .feature = cpu_feature(LOONGARCH_LVZ) },
	{},
};
MODULE_DEVICE_TABLE(cpu, kvm_feature);
#endif

Annotation

Implementation Notes