arch/riscv/include/asm/kvm_vcpu_sbi_fwft.h

Source file repositories/reference/linux-study-clean/arch/riscv/include/asm/kvm_vcpu_sbi_fwft.h

File Facts

System
Linux kernel
Corpus path
arch/riscv/include/asm/kvm_vcpu_sbi_fwft.h
Extension
.h
Size
663 bytes
Lines
35
Domain
Architecture Layer
Bucket
arch/riscv
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 kvm_sbi_fwft_config {
	const struct kvm_sbi_fwft_feature *feature;
	bool supported;
	bool enabled;
	unsigned long flags;
};

/* FWFT data structure per vcpu */
struct kvm_sbi_fwft {
	struct kvm_sbi_fwft_config *configs;
#ifndef CONFIG_32BIT
	bool have_vs_pmlen_7;
	bool have_vs_pmlen_16;
#endif
};

#define vcpu_to_fwft(vcpu) (&(vcpu)->arch.fwft_context)

#endif /* !__KVM_VCPU_RISCV_FWFT_H */

Annotation

Implementation Notes