mshyperv.h 931 字节
Newer Older
1 2
#ifndef _ASM_X86_MSHYPER_H
#define _ASM_X86_MSHYPER_H
3

4
#include <linux/types.h>
5
#include <linux/interrupt.h>
6 7 8 9
#include <asm/hyperv.h>

struct ms_hyperv_info {
	u32 features;
10
	u32 misc_features;
11 12 13 14
	u32 hints;
};

extern struct ms_hyperv_info ms_hyperv;
15

16 17 18 19 20 21 22 23 24 25 26 27
/*
 * Declare the MSR used to setup pages used to communicate with the hypervisor.
 */
union hv_x64_msr_hypercall_contents {
	u64 as_uint64;
	struct {
		u64 enable:1;
		u64 reserved:11;
		u64 guest_physical_address:52;
	};
};

28
void hyperv_callback_vector(void);
29 30 31
#ifdef CONFIG_TRACING
#define trace_hyperv_callback_vector hyperv_callback_vector
#endif
32
void hyperv_vector_handler(struct pt_regs *regs);
33 34
void hv_setup_vmbus_irq(void (*handler)(void));
void hv_remove_vmbus_irq(void);
35

36 37
void hv_setup_kexec_handler(void (*handler)(void));
void hv_remove_kexec_handler(void);
38 39
void hv_setup_crash_handler(void (*handler)(struct pt_regs *regs));
void hv_remove_crash_handler(void);
40
#endif