arch/x86/kvm/hyperv.h
Source file repositories/reference/linux-study-clean/arch/x86/kvm/hyperv.h
File Facts
- System
- Linux kernel
- Corpus path
arch/x86/kvm/hyperv.h- Extension
.h- Size
- 9853 bytes
- Lines
- 320
- Domain
- Architecture Layer
- Bucket
- arch/x86
- 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.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kvm_host.hx86.h
Detected Declarations
function Copyrightfunction kvm_hv_get_vpindexfunction kvm_hv_hypercall_enabledfunction kvm_hv_synic_has_vectorfunction kvm_hv_synic_auto_eoi_setfunction kvm_hv_has_stimer_pendingfunction kvm_hv_invtsc_suppressedfunction kvm_hv_vcpu_purge_flush_tlbfunction guest_hv_cpuid_has_l2_tlb_flushfunction kvm_hv_is_tlb_flush_hcallfunction kvm_hv_verify_vp_assistfunction kvm_hv_nested_transtion_tlb_flushfunction kvm_hv_setup_tsc_pagefunction kvm_hv_vcpu_uninitfunction kvm_hv_hypercallfunction kvm_hv_vcpu_purge_flush_tlbfunction kvm_hv_synic_auto_eoi_setfunction kvm_hv_synic_send_eoifunction kvm_hv_set_cpuidfunction kvm_hv_verify_vp_assistfunction kvm_hv_get_vpindexfunction kvm_hv_nested_transtion_tlb_flush
Annotated Snippet
static inline void kvm_hv_request_tsc_page_update(struct kvm *kvm) {}
static inline void kvm_hv_xsaves_xsavec_maybe_warn(struct kvm_vcpu *vcpu) {}
static inline void kvm_hv_init_vm(struct kvm *kvm) {}
static inline void kvm_hv_destroy_vm(struct kvm *kvm) {}
static inline int kvm_hv_vcpu_init(struct kvm_vcpu *vcpu)
{
return 0;
}
static inline void kvm_hv_vcpu_uninit(struct kvm_vcpu *vcpu) {}
static inline bool kvm_hv_hypercall_enabled(struct kvm_vcpu *vcpu)
{
return false;
}
static inline int kvm_hv_hypercall(struct kvm_vcpu *vcpu)
{
return HV_STATUS_ACCESS_DENIED;
}
static inline void kvm_hv_vcpu_purge_flush_tlb(struct kvm_vcpu *vcpu) {}
static inline bool kvm_hv_synic_has_vector(struct kvm_vcpu *vcpu, int vector)
{
return false;
}
static inline bool kvm_hv_synic_auto_eoi_set(struct kvm_vcpu *vcpu, int vector)
{
return false;
}
static inline void kvm_hv_synic_send_eoi(struct kvm_vcpu *vcpu, int vector) {}
static inline bool kvm_hv_invtsc_suppressed(struct kvm_vcpu *vcpu)
{
return false;
}
static inline void kvm_hv_set_cpuid(struct kvm_vcpu *vcpu, bool hyperv_enabled) {}
static inline bool kvm_hv_has_stimer_pending(struct kvm_vcpu *vcpu)
{
return false;
}
static inline int kvm_hv_verify_vp_assist(struct kvm_vcpu *vcpu)
{
return 0;
}
static inline u32 kvm_hv_get_vpindex(struct kvm_vcpu *vcpu)
{
return vcpu->vcpu_idx;
}
static inline void kvm_hv_nested_transtion_tlb_flush(struct kvm_vcpu *vcpu, bool tdp_enabled) {}
#endif /* CONFIG_KVM_HYPERV */
#endif /* __ARCH_X86_KVM_HYPERV_H__ */
Annotation
- Immediate include surface: `linux/kvm_host.h`, `x86.h`.
- Detected declarations: `function Copyright`, `function kvm_hv_get_vpindex`, `function kvm_hv_hypercall_enabled`, `function kvm_hv_synic_has_vector`, `function kvm_hv_synic_auto_eoi_set`, `function kvm_hv_has_stimer_pending`, `function kvm_hv_invtsc_suppressed`, `function kvm_hv_vcpu_purge_flush_tlb`, `function guest_hv_cpuid_has_l2_tlb_flush`, `function kvm_hv_is_tlb_flush_hcall`.
- Atlas domain: Architecture Layer / arch/x86.
- Implementation status: source implementation candidate.
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.