arch/loongarch/include/uapi/asm/kvm_para.h

Source file repositories/reference/linux-study-clean/arch/loongarch/include/uapi/asm/kvm_para.h

File Facts

System
Linux kernel
Corpus path
arch/loongarch/include/uapi/asm/kvm_para.h
Extension
.h
Size
701 bytes
Lines
24
Domain
Architecture Layer
Bucket
arch/loongarch
Inferred role
Architecture Layer: implementation source
Status
source 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

#ifndef _UAPI_ASM_KVM_PARA_H
#define _UAPI_ASM_KVM_PARA_H

#include <linux/types.h>

/*
 * CPUCFG index area: 0x40000000 -- 0x400000ff
 * SW emulation for KVM hypervirsor
 */
#define CPUCFG_KVM_BASE			0x40000000
#define CPUCFG_KVM_SIZE			0x100
#define CPUCFG_KVM_SIG			(CPUCFG_KVM_BASE + 0)
#define  KVM_SIGNATURE			"KVM\0"
#define CPUCFG_KVM_FEATURE		(CPUCFG_KVM_BASE + 4)
#define  KVM_FEATURE_IPI		1
#define  KVM_FEATURE_STEAL_TIME		2
#define  KVM_FEATURE_PREEMPT		3
/* BIT 24 - 31 are features configurable by user space vmm */
#define  KVM_FEATURE_VIRT_EXTIOI	24
#define  KVM_FEATURE_USER_HCALL		25

#endif /* _UAPI_ASM_KVM_PARA_H */

Annotation

Implementation Notes