]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blob - arch/x86/include/asm/mshyperv.h
Drivers: hv: vmbus: Move the definition of hv_x64_msr_hypercall_contents
[mirror_ubuntu-zesty-kernel.git] / arch / x86 / include / asm / mshyperv.h
1 #ifndef _ASM_X86_MSHYPER_H
2 #define _ASM_X86_MSHYPER_H
3
4 #include <linux/types.h>
5 #include <linux/interrupt.h>
6 #include <asm/hyperv.h>
7
8 struct ms_hyperv_info {
9 u32 features;
10 u32 misc_features;
11 u32 hints;
12 };
13
14 extern struct ms_hyperv_info ms_hyperv;
15
16 /*
17 * Declare the MSR used to setup pages used to communicate with the hypervisor.
18 */
19 union hv_x64_msr_hypercall_contents {
20 u64 as_uint64;
21 struct {
22 u64 enable:1;
23 u64 reserved:11;
24 u64 guest_physical_address:52;
25 };
26 };
27
28 void hyperv_callback_vector(void);
29 #ifdef CONFIG_TRACING
30 #define trace_hyperv_callback_vector hyperv_callback_vector
31 #endif
32 void hyperv_vector_handler(struct pt_regs *regs);
33 void hv_setup_vmbus_irq(void (*handler)(void));
34 void hv_remove_vmbus_irq(void);
35
36 void hv_setup_kexec_handler(void (*handler)(void));
37 void hv_remove_kexec_handler(void);
38 void hv_setup_crash_handler(void (*handler)(struct pt_regs *regs));
39 void hv_remove_crash_handler(void);
40 #endif