arch/loongarch/include/asm/kvm_ipi.h

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

File Facts

System
Linux kernel
Corpus path
arch/loongarch/include/asm/kvm_ipi.h
Extension
.h
Size
876 bytes
Lines
46
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

struct loongarch_ipi {
	spinlock_t lock;
	struct kvm *kvm;
	struct kvm_io_device device;
};

struct ipi_state {
	spinlock_t lock;
	uint32_t status;
	uint32_t en;
	uint32_t set;
	uint32_t clear;
	uint64_t buf[4];
};

#define IOCSR_IPI_BASE		0x1000
#define IOCSR_IPI_SIZE		0x160

#define IOCSR_IPI_STATUS	0x000
#define IOCSR_IPI_EN		0x004
#define IOCSR_IPI_SET		0x008
#define IOCSR_IPI_CLEAR		0x00c
#define IOCSR_IPI_BUF_20	0x020
#define IOCSR_IPI_BUF_28	0x028
#define IOCSR_IPI_BUF_30	0x030
#define IOCSR_IPI_BUF_38	0x038
#define IOCSR_IPI_SEND		0x040
#define IOCSR_MAIL_SEND		0x048
#define IOCSR_ANY_SEND		0x158

int kvm_loongarch_register_ipi_device(void);

#endif

Annotation

Implementation Notes