mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 10:03:48 +03:00
node_memory: Support get/set memory parameters for drivers
Including QEMU, LXC, UML, XEN drivers.
This commit is contained in:
parent
aaa8ab3e01
commit
8268a24548
@ -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 = {
|
||||
|
@ -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 */
|
||||
};
|
||||
|
||||
|
||||
|
@ -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 = {
|
||||
|
@ -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 */
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user