2005-12-07 18:10:51 +00:00
|
|
|
/*
|
|
|
|
* xen_internal.h: internal API for direct access to Xen hypervisor level
|
|
|
|
*
|
|
|
|
* Copyright (C) 2005 Red Hat, Inc.
|
|
|
|
*
|
|
|
|
* See COPYING.LIB for the License of this software
|
|
|
|
*
|
|
|
|
* Daniel Veillard <veillard@redhat.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __VIR_XEN_INTERNAL_H__
|
|
|
|
#define __VIR_XEN_INTERNAL_H__
|
|
|
|
|
2006-03-23 15:42:10 +00:00
|
|
|
/* required for dom0_getdomaininfo_t and DOM0_INTERFACE_VERSION */
|
2005-12-07 18:10:51 +00:00
|
|
|
#include <xen/dom0_ops.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2006-03-27 15:24:36 +00:00
|
|
|
void xenHypervisorRegister (void);
|
2006-03-20 17:49:28 +00:00
|
|
|
int xenHypervisorOpen (virConnectPtr conn,
|
|
|
|
const char *name,
|
|
|
|
int flags);
|
|
|
|
int xenHypervisorClose (virConnectPtr conn);
|
|
|
|
int xenHypervisorGetVersion (virConnectPtr conn,
|
|
|
|
unsigned long *hvVer);
|
2006-06-29 22:12:47 +00:00
|
|
|
unsigned long
|
|
|
|
xenHypervisorGetDomMaxMemory (virConnectPtr conn,
|
|
|
|
int id);
|
2006-04-24 18:21:29 +00:00
|
|
|
int xenHypervisorNumOfDomains (virConnectPtr conn);
|
|
|
|
int xenHypervisorListDomains (virConnectPtr conn,
|
|
|
|
int *ids,
|
|
|
|
int maxids);
|
2006-03-20 17:49:28 +00:00
|
|
|
int xenHypervisorDestroyDomain (virDomainPtr domain);
|
|
|
|
int xenHypervisorResumeDomain (virDomainPtr domain);
|
|
|
|
int xenHypervisorPauseDomain (virDomainPtr domain);
|
|
|
|
int xenHypervisorGetDomainInfo (virDomainPtr domain,
|
|
|
|
virDomainInfoPtr info);
|
|
|
|
int xenHypervisorSetMaxMemory (virDomainPtr domain,
|
|
|
|
unsigned long memory);
|
2006-06-16 15:28:26 +00:00
|
|
|
int xenHypervisorCheckID (virConnectPtr conn,
|
|
|
|
int id);
|
2005-12-07 18:10:51 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2006-03-15 12:13:25 +00:00
|
|
|
#endif /* __VIR_XEN_INTERNAL_H__ */
|