mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-02 11:21:12 +00:00
0ff5cea597
and fix the indentation daniel
108 lines
4.7 KiB
C
108 lines
4.7 KiB
C
/*
|
|
* 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__
|
|
|
|
#include <libxml/uri.h>
|
|
|
|
#include "internal.h"
|
|
#include "capabilities.h"
|
|
#include "driver.h"
|
|
|
|
extern struct xenUnifiedDriver xenHypervisorDriver;
|
|
int xenHypervisorInit (void);
|
|
|
|
virCapsPtr xenHypervisorMakeCapabilities (virConnectPtr conn);
|
|
|
|
/* The following calls are made directly by the Xen proxy: */
|
|
|
|
virDomainPtr
|
|
xenHypervisorLookupDomainByID (virConnectPtr conn,
|
|
int id);
|
|
virDomainPtr
|
|
xenHypervisorLookupDomainByUUID (virConnectPtr conn,
|
|
const unsigned char *uuid);
|
|
char *
|
|
xenHypervisorDomainGetOSType (virDomainPtr dom);
|
|
|
|
virDrvOpenStatus
|
|
xenHypervisorOpen (virConnectPtr conn,
|
|
virConnectAuthPtr auth,
|
|
int flags);
|
|
int xenHypervisorClose (virConnectPtr conn);
|
|
int xenHypervisorGetVersion (virConnectPtr conn,
|
|
unsigned long *hvVer);
|
|
virCapsPtr
|
|
xenHypervisorMakeCapabilitiesInternal(virConnectPtr conn,
|
|
const char *hostmachine,
|
|
FILE *cpuinfo,
|
|
FILE *capabilities);
|
|
char *
|
|
xenHypervisorGetCapabilities (virConnectPtr conn);
|
|
unsigned long
|
|
xenHypervisorGetDomMaxMemory (virConnectPtr conn,
|
|
int id);
|
|
int xenHypervisorNumOfDomains (virConnectPtr conn);
|
|
int xenHypervisorListDomains (virConnectPtr conn,
|
|
int *ids,
|
|
int maxids);
|
|
int xenHypervisorGetMaxVcpus (virConnectPtr conn,
|
|
const char *type);
|
|
int xenHypervisorDestroyDomain (virDomainPtr domain);
|
|
int xenHypervisorResumeDomain (virDomainPtr domain);
|
|
int xenHypervisorPauseDomain (virDomainPtr domain);
|
|
int xenHypervisorGetDomainInfo (virDomainPtr domain,
|
|
virDomainInfoPtr info);
|
|
int xenHypervisorGetDomInfo (virConnectPtr conn,
|
|
int id,
|
|
virDomainInfoPtr info);
|
|
int xenHypervisorSetMaxMemory (virDomainPtr domain,
|
|
unsigned long memory);
|
|
int xenHypervisorCheckID (virConnectPtr conn,
|
|
int id);
|
|
int xenHypervisorSetVcpus (virDomainPtr domain,
|
|
unsigned int nvcpus);
|
|
int xenHypervisorPinVcpu (virDomainPtr domain,
|
|
unsigned int vcpu,
|
|
unsigned char *cpumap,
|
|
int maplen);
|
|
int xenHypervisorGetVcpus (virDomainPtr domain,
|
|
virVcpuInfoPtr info,
|
|
int maxinfo,
|
|
unsigned char *cpumaps,
|
|
int maplen);
|
|
int xenHypervisorGetVcpuMax (virDomainPtr domain);
|
|
|
|
char * xenHypervisorGetSchedulerType (virDomainPtr domain,
|
|
int *nparams);
|
|
|
|
int xenHypervisorGetSchedulerParameters(virDomainPtr domain,
|
|
virSchedParameterPtr params,
|
|
int *nparams);
|
|
|
|
int xenHypervisorSetSchedulerParameters(virDomainPtr domain,
|
|
virSchedParameterPtr params,
|
|
int nparams);
|
|
|
|
int xenHypervisorDomainBlockStats (virDomainPtr domain,
|
|
const char *path,
|
|
struct _virDomainBlockStats *stats);
|
|
int xenHypervisorDomainInterfaceStats (virDomainPtr domain,
|
|
const char *path,
|
|
struct _virDomainInterfaceStats *stats);
|
|
|
|
int xenHypervisorNodeGetCellsFreeMemory(virConnectPtr conn,
|
|
unsigned long long *freeMems,
|
|
int startCell,
|
|
int maxCells);
|
|
|
|
#endif /* __VIR_XEN_INTERNAL_H__ */
|