Re: [PATCH 4/6] node_memory: Support get/set memory parameters for drivers

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

 



On Fri, Sep 14, 2012 at 02:42:18PM +0800, Osier Yang wrote:
> Including QEMU, LXC, UML, XEN drivers.
> ---
>  src/lxc/lxc_driver.c   |    2 ++
>  src/qemu/qemu_driver.c |    2 ++
>  src/uml/uml_driver.c   |    2 ++
>  src/xen/xen_driver.c   |    3 +++
>  4 files changed, 9 insertions(+), 0 deletions(-)
> 
> diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c
> index ff11c2c..62c36e6 100644
> --- a/src/lxc/lxc_driver.c
> +++ b/src/lxc/lxc_driver.c
> @@ -2748,6 +2748,8 @@ static virDriver lxcDriver = {
>      .domainOpenConsole = lxcDomainOpenConsole, /* 0.8.6 */
>      .isAlive = lxcIsAlive, /* 0.9.8 */
>      .nodeSuspendForDuration = nodeSuspendForDuration, /* 0.9.8 */
> +    .nodeGetMemoryParameters = nodeGetMemoryParameters, /* 0.10.2 */
> +    .nodeSetMemoryParameters = nodeSetMemoryParameters, /* 0.10.2 */
>  };
>  
>  static virStateDriver lxcStateDriver = {
> diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
> index d952c9c..8313612 100644
> --- a/src/qemu/qemu_driver.c
> +++ b/src/qemu/qemu_driver.c
> @@ -14112,6 +14112,8 @@ static virDriver qemuDriver = {
>      .domainPMSuspendForDuration = qemuDomainPMSuspendForDuration, /* 0.9.11 */
>      .domainPMWakeup = qemuDomainPMWakeup, /* 0.9.11 */
>      .domainGetCPUStats = qemuDomainGetCPUStats, /* 0.9.11 */
> +    .nodeGetMemoryParameters = nodeGetMemoryParameters, /* 0.10.2 */
> +    .nodeSetMemoryParameters = nodeSetMemoryParameters, /* 0.10.2 */
>  };
>  
>  
> diff --git a/src/uml/uml_driver.c b/src/uml/uml_driver.c
> index 26877eb..72d1b0e 100644
> --- a/src/uml/uml_driver.c
> +++ b/src/uml/uml_driver.c
> @@ -2623,6 +2623,8 @@ static virDriver umlDriver = {
>      .domainOpenConsole = umlDomainOpenConsole, /* 0.8.6 */
>      .isAlive = umlIsAlive, /* 0.9.8 */
>      .nodeSuspendForDuration = nodeSuspendForDuration, /* 0.9.8 */
> +    .nodeGetMemoryParameters = nodeGetMemoryParameters, /* 0.10.2 */
> +    .nodeSetMemoryParameters = nodeSetMemoryParameters, /* 0.10.2 */
>  };
>  
>  static virStateDriver umlStateDriver = {
> diff --git a/src/xen/xen_driver.c b/src/xen/xen_driver.c
> index d33737e..3a14d12 100644
> --- a/src/xen/xen_driver.c
> +++ b/src/xen/xen_driver.c
> @@ -64,6 +64,7 @@
>  #include "viruri.h"
>  #include "command.h"
>  #include "virnodesuspend.h"
> +#include "nodeinfo.h"
>  
>  #define VIR_FROM_THIS VIR_FROM_XEN
>  
> @@ -2269,6 +2270,8 @@ static virDriver xenUnifiedDriver = {
>      .domainOpenConsole = xenUnifiedDomainOpenConsole, /* 0.8.6 */
>      .isAlive = xenUnifiedIsAlive, /* 0.9.8 */
>      .nodeSuspendForDuration = nodeSuspendForDuration, /* 0.9.8 */
> +    .nodeGetMemoryParameters = nodeGetMemoryParameters, /* 0.10.2 */
> +    .nodeSetMemoryParameters = nodeSetMemoryParameters, /* 0.10.2 */
>  };

  ACK, once patch 3 is okay :-)

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]