arch/x86/include/asm/mshyperv.h
Source file repositories/reference/linux-study-clean/arch/x86/include/asm/mshyperv.h
File Facts
- System
- Linux kernel
- Corpus path
arch/x86/include/asm/mshyperv.h- Extension
.h- Size
- 9355 bytes
- Lines
- 319
- 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/types.hlinux/nmi.hlinux/msi.hlinux/io.hlinux/static_call.hasm/nospec-branch.hasm/msr.hhyperv/hvhdk.hasm/fpu/types.hasm-generic/mshyperv.h
Detected Declarations
struct mshv_vtl_cpu_contextfunction hv_get_nmi_reasonfunction hv_do_hypercallfunction _hv_do_fast_hypercall8function hv_do_fast_hypercall8function _hv_do_fast_hypercall16function hv_do_fast_hypercall16function hv_apic_initfunction hv_ghcb_negotiate_protocolfunction hv_ghcb_terminatefunction hv_vtom_initfunction hv_is_sint_msrfunction hv_raw_get_msrfunction hv_root_crash_initfunction hyperv_flush_guest_mappingfunction hyperv_flush_guest_mapping_rangefunction hv_set_msrfunction hv_set_non_nested_msrfunction hv_apicid_to_vp_indexfunction hv_vtl_init_platformfunction mshv_vtl_return_call
Annotated Snippet
struct mshv_vtl_cpu_context {
union {
struct {
u64 rax;
u64 rcx;
u64 rdx;
u64 rbx;
u64 cr2;
u64 rbp;
u64 rsi;
u64 rdi;
u64 r8;
u64 r9;
u64 r10;
u64 r11;
u64 r12;
u64 r13;
u64 r14;
u64 r15;
};
u64 gp_regs[16];
};
struct fxregs_state fx_state;
};
#ifdef CONFIG_HYPERV_VTL_MODE
void __init hv_vtl_init_platform(void);
int __init hv_vtl_early_init(void);
void mshv_vtl_return_call(struct mshv_vtl_cpu_context *vtl0);
void mshv_vtl_return_call_init(u64 vtl_return_offset);
void mshv_vtl_return_hypercall(void);
void __mshv_vtl_return_call(struct mshv_vtl_cpu_context *vtl0);
#else
static inline void __init hv_vtl_init_platform(void) {}
static inline int __init hv_vtl_early_init(void) { return 0; }
static inline void mshv_vtl_return_call(struct mshv_vtl_cpu_context *vtl0) {}
static inline void mshv_vtl_return_call_init(u64 vtl_return_offset) {}
static inline void mshv_vtl_return_hypercall(void) {}
static inline void __mshv_vtl_return_call(struct mshv_vtl_cpu_context *vtl0) {}
#endif
#include <asm-generic/mshyperv.h>
#endif
Annotation
- Immediate include surface: `linux/types.h`, `linux/nmi.h`, `linux/msi.h`, `linux/io.h`, `linux/static_call.h`, `asm/nospec-branch.h`, `asm/msr.h`, `hyperv/hvhdk.h`.
- Detected declarations: `struct mshv_vtl_cpu_context`, `function hv_get_nmi_reason`, `function hv_do_hypercall`, `function _hv_do_fast_hypercall8`, `function hv_do_fast_hypercall8`, `function _hv_do_fast_hypercall16`, `function hv_do_fast_hypercall16`, `function hv_apic_init`, `function hv_ghcb_negotiate_protocol`, `function hv_ghcb_terminate`.
- 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.