mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Provide mini-os url and revision in Config.mk
Make stubdom targets depend on mini-os-dir target. Make
subtree-force-update{,-all} depend on mini-os-dir-force-update.
Also make mktarball script generate mini-os archive.
Original mini-os directory is renamed to mini-os-intree to help reduce
patch length. That directory will be deleted in a separate patch.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
---
Changes in v3:
1. Put mini-os targets in main Makefile.
2. Stubdom clean and distclean don't depend on mini-os-dir.
Changes in v2:
1. Use hash in Config.mk.
49 lines
1.1 KiB
C
49 lines
1.1 KiB
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 <mini-os/types.h>
|
|
#include <xen/xen.h>
|
|
#if defined(__i386__)
|
|
#include <hypercall-x86_32.h>
|
|
#elif defined(__x86_64__)
|
|
#include <hypercall-x86_64.h>
|
|
#elif defined(__arm__) || defined(__aarch64__)
|
|
#include <hypercall-arm.h>
|
|
#else
|
|
#error "Unsupported architecture"
|
|
#endif
|
|
#include <mini-os/traps.h>
|
|
|
|
/*
|
|
* 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__ */
|