[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCHv4 2/6] virNodeGetCPUTimeParameters: Define internal driver API



virNodeGetCPUTimeParameters: Define internal driver API

Signed-off-by: Minoru Usui <usui mxm nes nec co jp>
---
 src/driver.h               |    8 ++++++++
 src/esx/esx_driver.c       |    1 +
 src/libxl/libxl_driver.c   |    1 +
 src/lxc/lxc_driver.c       |    1 +
 src/openvz/openvz_driver.c |    1 +
 src/phyp/phyp_driver.c     |    1 +
 src/qemu/qemu_driver.c     |    1 +
 src/remote/remote_driver.c |    1 +
 src/test/test_driver.c     |    1 +
 src/uml/uml_driver.c       |    1 +
 src/vbox/vbox_tmpl.c       |    1 +
 src/vmware/vmware_driver.c |    1 +
 src/xen/xen_driver.c       |    1 +
 src/xenapi/xenapi_driver.c |    1 +
 14 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/src/driver.h b/src/driver.h
index b800f35..2bdcdbc 100644
--- a/src/driver.h
+++ b/src/driver.h
@@ -352,6 +352,13 @@ typedef struct _virDriver virDriver;
 typedef virDriver *virDriverPtr;
 
 typedef int
+    (*virDrvNodeGetCPUTimeParameters)
+                    (virConnectPtr conn,
+                     virCPUTimeParameterPtr params,
+                     int *nparams,
+                     unsigned int flags);
+
+typedef int
     (*virDrvNodeGetCellsFreeMemory)
                     (virConnectPtr conn,
                      unsigned long long *freeMems,
@@ -611,6 +618,7 @@ struct _virDriver {
     virDrvDomainBlockPeek	domainBlockPeek;
     virDrvDomainMemoryPeek      domainMemoryPeek;
     virDrvDomainGetBlockInfo    domainGetBlockInfo;
+    virDrvNodeGetCPUTimeParameters nodeGetCPUTimeParameters;
     virDrvNodeGetCellsFreeMemory	nodeGetCellsFreeMemory;
     virDrvNodeGetFreeMemory		getFreeMemory;
     virDrvDomainEventRegister         domainEventRegister;
diff --git a/src/esx/esx_driver.c b/src/esx/esx_driver.c
index ef7838a..233ba16 100644
--- a/src/esx/esx_driver.c
+++ b/src/esx/esx_driver.c
@@ -4663,6 +4663,7 @@ static virDriver esxDriver = {
     NULL,                            /* domainBlockPeek */
     NULL,                            /* domainMemoryPeek */
     NULL,                            /* domainGetBlockInfo */
+    NULL,                            /* nodeGetCPUTimeParameters */
     NULL,                            /* nodeGetCellsFreeMemory */
     esxNodeGetFreeMemory,            /* nodeGetFreeMemory */
     NULL,                            /* domainEventRegister */
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
index 60557fc..997fe33 100644
--- a/src/libxl/libxl_driver.c
+++ b/src/libxl/libxl_driver.c
@@ -2719,6 +2719,7 @@ static virDriver libxlDriver = {
     NULL,                       /* domainBlockPeek */
     NULL,                       /* domainMemoryPeek */
     NULL,                       /* domainGetBlockInfo */
+    NULL,                       /* nodeGetCPUTimeParameters */
     NULL,                       /* nodeGetCellsFreeMemory */
     libxlNodeGetFreeMemory,     /* getFreeMemory */
     libxlDomainEventRegister,   /* domainEventRegister */
diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c
index 68824e4..246cada 100644
--- a/src/lxc/lxc_driver.c
+++ b/src/lxc/lxc_driver.c
@@ -2748,6 +2748,7 @@ static virDriver lxcDriver = {
     NULL, /* domainBlockPeek */
     NULL, /* domainMemoryPeek */
     NULL, /* domainGetBlockInfo */
+    nodeGetCPUTimeParameters, /* nodeGetCPUTimeParameters */
     nodeGetCellsFreeMemory, /* nodeGetCellsFreeMemory */
     nodeGetFreeMemory,  /* getFreeMemory */
     lxcDomainEventRegister, /* domainEventRegister */
diff --git a/src/openvz/openvz_driver.c b/src/openvz/openvz_driver.c
index 3e1952f..7df6473 100644
--- a/src/openvz/openvz_driver.c
+++ b/src/openvz/openvz_driver.c
@@ -1617,6 +1617,7 @@ static virDriver openvzDriver = {
     NULL, /* domainBlockPeek */
     NULL, /* domainMemoryPeek */
     NULL, /* domainGetBlockInfo */
+    NULL, /* nodeGetCPUTimeParameters */
     NULL, /* nodeGetCellsFreeMemory */
     NULL, /* getFreeMemory */
     NULL, /* domainEventRegister */
diff --git a/src/phyp/phyp_driver.c b/src/phyp/phyp_driver.c
index 8b6fa69..2343d7b 100644
--- a/src/phyp/phyp_driver.c
+++ b/src/phyp/phyp_driver.c
@@ -3797,6 +3797,7 @@ static virDriver phypDriver = {
     NULL,                       /* domainBlockPeek */
     NULL,                       /* domainMemoryPeek */
     NULL,                       /* domainGetBlockInfo */
+    NULL,                       /* nodeGetCPUTimeParameters */
     NULL,                       /* nodeGetCellsFreeMemory */
     NULL,                       /* getFreeMemory */
     NULL,                       /* domainEventRegister */
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index fff41e0..b267c35 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -7286,6 +7286,7 @@ static virDriver qemuDriver = {
     qemudDomainBlockPeek, /* domainBlockPeek */
     qemudDomainMemoryPeek, /* domainMemoryPeek */
     qemuDomainGetBlockInfo, /* domainGetBlockInfo */
+    nodeGetCPUTimeParameters, /* nodeGetCPUTimeParameters */
     nodeGetCellsFreeMemory, /* nodeGetCellsFreeMemory */
     nodeGetFreeMemory,  /* getFreeMemory */
     qemuDomainEventRegister, /* domainEventRegister */
diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index 1847577..f61afdc 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -6438,6 +6438,7 @@ static virDriver remote_driver = {
     remoteDomainBlockPeek, /* domainBlockPeek */
     remoteDomainMemoryPeek, /* domainMemoryPeek */
     remoteDomainGetBlockInfo, /* domainGetBlockInfo */
+    remoteNodeGetCPUTimeParameters, /* nodeGetCPUTimeParameters */
     remoteNodeGetCellsFreeMemory, /* nodeGetCellsFreeMemory */
     remoteNodeGetFreeMemory, /* getFreeMemory */
     remoteDomainEventRegister, /* domainEventRegister */
diff --git a/src/test/test_driver.c b/src/test/test_driver.c
index 36d8c12..a2c63ed 100644
--- a/src/test/test_driver.c
+++ b/src/test/test_driver.c
@@ -5350,6 +5350,7 @@ static virDriver testDriver = {
     NULL, /* domainBlockPeek */
     NULL, /* domainMemoryPeek */
     NULL, /* domainGetBlockInfo */
+    NULL, /* nodeGetCPUTimeParameters */
     testNodeGetCellsFreeMemory, /* nodeGetCellsFreeMemory */
     NULL, /* getFreeMemory */
     testDomainEventRegister, /* domainEventRegister */
diff --git a/src/uml/uml_driver.c b/src/uml/uml_driver.c
index e7cd77a..11bc9c9 100644
--- a/src/uml/uml_driver.c
+++ b/src/uml/uml_driver.c
@@ -2218,6 +2218,7 @@ static virDriver umlDriver = {
     umlDomainBlockPeek, /* domainBlockPeek */
     NULL, /* domainMemoryPeek */
     NULL, /* domainGetBlockInfo */
+    nodeGetCPUTimeParameters, /* nodeGetCPUTimeParameters */
     nodeGetCellsFreeMemory, /* nodeGetCellsFreeMemory */
     nodeGetFreeMemory,  /* getFreeMemory */
     NULL, /* domainEventRegister */
diff --git a/src/vbox/vbox_tmpl.c b/src/vbox/vbox_tmpl.c
index 41b6795..568223c 100644
--- a/src/vbox/vbox_tmpl.c
+++ b/src/vbox/vbox_tmpl.c
@@ -8739,6 +8739,7 @@ virDriver NAME(Driver) = {
     NULL, /* domainBlockPeek */
     NULL, /* domainMemoryPeek */
     NULL, /* domainGetBlockInfo */
+    NULL, /* nodeGetCPUTimeParameters */
     nodeGetCellsFreeMemory, /* nodeGetCellsFreeMemory */
     nodeGetFreeMemory,  /* getFreeMemory */
 #if VBOX_API_VERSION == 2002 || VBOX_API_VERSION == 4000
diff --git a/src/vmware/vmware_driver.c b/src/vmware/vmware_driver.c
index b920f79..b7373e0 100644
--- a/src/vmware/vmware_driver.c
+++ b/src/vmware/vmware_driver.c
@@ -971,6 +971,7 @@ static virDriver vmwareDriver = {
     NULL,                       /* domainBlockPeek */
     NULL,                       /* domainMemoryPeek */
     NULL,                       /* domainGetBlockInfo */
+    NULL,                       /* nodeGetCPUTimeParameters */
     NULL,                       /* nodeGetCellsFreeMemory */
     NULL,                       /* getFreeMemory */
     NULL,                       /* domainEventRegister */
diff --git a/src/xen/xen_driver.c b/src/xen/xen_driver.c
index 5bafb73..5c2aab3 100644
--- a/src/xen/xen_driver.c
+++ b/src/xen/xen_driver.c
@@ -2173,6 +2173,7 @@ static virDriver xenUnifiedDriver = {
     xenUnifiedDomainBlockPeek, /* domainBlockPeek */
     NULL, /* domainMemoryPeek */
     NULL, /* domainGetBlockInfo */
+    NULL, /* nodeGetCPUTimeParameters */
     xenUnifiedNodeGetCellsFreeMemory, /* nodeGetCellsFreeMemory */
     xenUnifiedNodeGetFreeMemory, /* getFreeMemory */
     xenUnifiedDomainEventRegister, /* domainEventRegister */
diff --git a/src/xenapi/xenapi_driver.c b/src/xenapi/xenapi_driver.c
index 136356d..8d81ebb 100644
--- a/src/xenapi/xenapi_driver.c
+++ b/src/xenapi/xenapi_driver.c
@@ -1853,6 +1853,7 @@ static virDriver xenapiDriver = {
     NULL, /* domainBlockPeek */
     NULL, /* domainMemoryPeek */
     NULL, /* domainGetBlockInfo */
+    NULL, /* nodeGetCPUTimeParameters */
     xenapiNodeGetCellsFreeMemory, /* nodeGetCellsFreeMemory */
     xenapiNodeGetFreeMemory, /* getFreeMemory */
     NULL, /* domainEventRegister */
-- 
1.7.1
-- 
Minoru Usui <usui mxm nes nec co jp>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]