/****************************************************************************** * hypervisor.h * * Hypervisor handling. * * * Copyright (c) 2002, K A Fraser * Copyright (c) 2005, Grzegorz Milos * Updates: Aravindh Puthiyaparambil */ #ifndef _HYPERVISOR_H_ #define _HYPERVISOR_H_ #include #include #if defined(__i386__) #include #elif defined(__x86_64__) #include #else #error "Unsupported architecture" #endif #include /* * a placeholder for the start of day information passed up from the hypervisor */ union start_info_union { start_info_t start_info; char padding[512]; }; extern union start_info_union start_info_union; #define start_info (start_info_union.start_info) /* hypervisor.c */ void force_evtchn_callback(void); void do_hypervisor_callback(struct pt_regs *regs); void mask_evtchn(uint32_t port); void unmask_evtchn(uint32_t port); void clear_evtchn(uint32_t port); extern int in_callback; #endif /* __HYPERVISOR_H__ */