mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
* src/driver.h src/xen_internal.c: just add a driver block for
the Xen hypervisor direct access module. Need to convert xend_internal.[ch] and make one for the Xenstore now ... Daniel
This commit is contained in:
parent
de5a1d1dd5
commit
c54ae3f023
@ -1,3 +1,9 @@
|
|||||||
|
Tue Mar 21 00:40:29 CET 2006 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
|
* src/driver.h src/xen_internal.c: just add a driver block for
|
||||||
|
the Xen hypervisor direct access module. Need to convert
|
||||||
|
xend_internal.[ch] and make one for the Xenstore now ...
|
||||||
|
|
||||||
Mon Mar 20 18:43:19 CET 2006 Daniel Veillard <veillard@redhat.com>
|
Mon Mar 20 18:43:19 CET 2006 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
* src/driver.h src/internal.h src/libvirt.c src/xen_internal.c
|
* src/driver.h src/internal.h src/libvirt.c src/xen_internal.c
|
||||||
|
@ -29,7 +29,7 @@ typedef int
|
|||||||
typedef const char *
|
typedef const char *
|
||||||
(*virDrvGetType) (virConnectPtr conn);
|
(*virDrvGetType) (virConnectPtr conn);
|
||||||
typedef int
|
typedef int
|
||||||
(*virDrvGetVersion) (void * conn,
|
(*virDrvGetVersion) (virConnectPtr conn,
|
||||||
unsigned long *hvVer);
|
unsigned long *hvVer);
|
||||||
typedef int
|
typedef int
|
||||||
(*virDrvListDomains) (virConnectPtr conn,
|
(*virDrvListDomains) (virConnectPtr conn,
|
||||||
|
@ -36,6 +36,35 @@ typedef struct hypercall_struct {
|
|||||||
|
|
||||||
#define XEN_HYPERVISOR_SOCKET "/proc/xen/privcmd"
|
#define XEN_HYPERVISOR_SOCKET "/proc/xen/privcmd"
|
||||||
|
|
||||||
|
static virDriver xenHypervisorDriver = {
|
||||||
|
"Xen",
|
||||||
|
NULL, /* init */
|
||||||
|
xenHypervisorOpen, /* open */
|
||||||
|
xenHypervisorClose, /* close */
|
||||||
|
NULL, /* type */
|
||||||
|
xenHypervisorGetVersion, /* version */
|
||||||
|
NULL, /* listDomains */
|
||||||
|
NULL, /* numOfDomains */
|
||||||
|
NULL, /* domainCreateLinux */
|
||||||
|
NULL, /* domainLookupByID */
|
||||||
|
NULL, /* domainLookupByUUID */
|
||||||
|
NULL, /* domainLookupByName */
|
||||||
|
xenHypervisorPauseDomain, /* domainSuspend */
|
||||||
|
xenHypervisorResumeDomain, /* domainResume */
|
||||||
|
NULL, /* domainShutdown */
|
||||||
|
xenHypervisorDestroyDomain, /* domainDestroy */
|
||||||
|
NULL, /* domainFree */
|
||||||
|
NULL, /* domainGetName */
|
||||||
|
NULL, /* domainGetID */
|
||||||
|
NULL, /* domainGetUUID */
|
||||||
|
NULL, /* domainGetOSType */
|
||||||
|
NULL, /* domainGetMaxMemory */
|
||||||
|
xenHypervisorSetMaxMemory, /* domainSetMaxMemory */
|
||||||
|
xenHypervisorGetDomainInfo, /* domainGetInfo */
|
||||||
|
NULL, /* domainSave */
|
||||||
|
NULL /* domainRestore */
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* virXenError:
|
* virXenError:
|
||||||
* @conn: the connection if available
|
* @conn: the connection if available
|
||||||
|
Loading…
Reference in New Issue
Block a user