xen_internal.h 1.1 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
/*
 * 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__

14
/* required for uint8_t, uint32_t, etc ... */
15
#include <stdint.h>
16

17
/* required for dom0_getdomaininfo_t */
18 19 20 21 22 23
#include <xen/dom0_ops.h>

#ifdef __cplusplus
extern "C" {
#endif

24 25 26 27 28 29 30 31 32 33 34
    int xenHypervisorOpen(int quiet);
    int xenHypervisorClose(int handle);
    unsigned long xenHypervisorGetVersion(int handle);
    int xenHypervisorDestroyDomain(int handle, int domain);
    int xenHypervisorResumeDomain(int handle, int domain);
    int xenHypervisorPauseDomain(int handle, int domain);
    int xenHypervisorGetDomainInfo(int handle,
                                   int domain,
                                   dom0_getdomaininfo_t * info);
    int xenHypervisorSetMaxMemory(int handle,
                                  int domain, unsigned long memory);
35 36 37 38

#ifdef __cplusplus
}
#endif
39
#endif                          /* __VIR_XEN_INTERNAL_H__ */