mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Signed-off-by: Aravindh Puthiyaparambil <aravindh.puthiyaparambil@unisys.com>
44 lines
1007 B
C
44 lines
1007 B
C
/******************************************************************************
|
|
* hypervisor.h
|
|
*
|
|
* Hypervisor handling.
|
|
*
|
|
*
|
|
* Copyright (c) 2002, K A Fraser
|
|
* Copyright (c) 2005, Grzegorz Milos
|
|
* Updates: Aravindh Puthiyaparambil <aravindh.puthiyaparambil@unisys.com>
|
|
*/
|
|
|
|
#ifndef _HYPERVISOR_H_
|
|
#define _HYPERVISOR_H_
|
|
|
|
#include <types.h>
|
|
#include <xen/xen.h>
|
|
#include <xen/dom0_ops.h>
|
|
#if defined(__i386__)
|
|
#include <hypercall-x86_32.h>
|
|
#elif defined(__x86_64__)
|
|
#include <hypercall-x86_64.h>
|
|
#else
|
|
#error "Unsupported architecture"
|
|
#endif
|
|
|
|
/*
|
|
* 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 do_hypervisor_callback(struct pt_regs *regs);
|
|
void mask_evtchn(u32 port);
|
|
void unmask_evtchn(u32 port);
|
|
void clear_evtchn(u32 port);
|
|
|
|
#endif /* __HYPERVISOR_H__ */
|