This patch implemetns the call back member for new API on each driver. Signed-off-by: Taku Izumi <izumi.taku@xxxxxxxxxxxxxx> --- src/driver.h | 5 +++++ src/esx/esx_driver.c | 1 + src/lxc/lxc_driver.c | 1 + src/opennebula/one_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/xen/xen_driver.c | 1 + src/xenapi/xenapi_driver.c | 1 + 13 files changed, 17 insertions(+) Index: libvirt-git/src/driver.h =================================================================== --- libvirt-git.orig/src/driver.h +++ libvirt-git/src/driver.h @@ -135,6 +135,10 @@ typedef int (*virDrvDomainSetMemory) (virDomainPtr domain, unsigned long memory); typedef int + (*virDrvDomainSetMemoryFlags) (virDomainPtr domain, + unsigned long memory, + unsigned int flags); +typedef int (*virDrvDomainSetMemoryParameters) (virDomainPtr domain, virMemoryParameterPtr params, @@ -537,6 +541,7 @@ struct _virDriver { virDrvDomainGetMaxMemory domainGetMaxMemory; virDrvDomainSetMaxMemory domainSetMaxMemory; virDrvDomainSetMemory domainSetMemory; + virDrvDomainSetMemoryFlags domainSetMemoryFlags; virDrvDomainGetInfo domainGetInfo; virDrvDomainSave domainSave; virDrvDomainRestore domainRestore; Index: libvirt-git/src/esx/esx_driver.c =================================================================== --- libvirt-git.orig/src/esx/esx_driver.c +++ libvirt-git/src/esx/esx_driver.c @@ -4577,6 +4577,7 @@ static virDriver esxDriver = { esxDomainGetMaxMemory, /* domainGetMaxMemory */ esxDomainSetMaxMemory, /* domainSetMaxMemory */ esxDomainSetMemory, /* domainSetMemory */ + NULL, /* domainSetMemoryFlags */ esxDomainGetInfo, /* domainGetInfo */ NULL, /* domainSave */ NULL, /* domainRestore */ Index: libvirt-git/src/lxc/lxc_driver.c =================================================================== --- libvirt-git.orig/src/lxc/lxc_driver.c +++ libvirt-git/src/lxc/lxc_driver.c @@ -2852,6 +2852,7 @@ static virDriver lxcDriver = { lxcDomainGetMaxMemory, /* domainGetMaxMemory */ lxcDomainSetMaxMemory, /* domainSetMaxMemory */ lxcDomainSetMemory, /* domainSetMemory */ + NULL, /* domainSetMemoryFlags */ lxcDomainGetInfo, /* domainGetInfo */ NULL, /* domainSave */ NULL, /* domainRestore */ Index: libvirt-git/src/opennebula/one_driver.c =================================================================== --- libvirt-git.orig/src/opennebula/one_driver.c +++ libvirt-git/src/opennebula/one_driver.c @@ -751,6 +751,7 @@ static virDriver oneDriver = { NULL, /* domainGetMaxMemory */ NULL, /* domainSetMaxMemory */ NULL, /* domainSetMemory */ + NULL, /* domainSetMemoryFlags */ oneDomainGetInfo, /* domainGetInfo */ NULL, /* domainSave */ NULL, /* domainRestore */ Index: libvirt-git/src/openvz/openvz_driver.c =================================================================== --- libvirt-git.orig/src/openvz/openvz_driver.c +++ libvirt-git/src/openvz/openvz_driver.c @@ -1591,6 +1591,7 @@ static virDriver openvzDriver = { NULL, /* domainGetMaxMemory */ NULL, /* domainSetMaxMemory */ NULL, /* domainSetMemory */ + NULL, /* domainSetMemoryFlags */ openvzDomainGetInfo, /* domainGetInfo */ NULL, /* domainSave */ NULL, /* domainRestore */ Index: libvirt-git/src/phyp/phyp_driver.c =================================================================== --- libvirt-git.orig/src/phyp/phyp_driver.c +++ libvirt-git/src/phyp/phyp_driver.c @@ -3973,6 +3973,7 @@ static virDriver phypDriver = { NULL, /* domainGetMaxMemory */ NULL, /* domainSetMaxMemory */ NULL, /* domainSetMemory */ + NULL, /* domainSetMemoryFlags */ phypDomainGetInfo, /* domainGetInfo */ NULL, /* domainSave */ NULL, /* domainRestore */ Index: libvirt-git/src/qemu/qemu_driver.c =================================================================== --- libvirt-git.orig/src/qemu/qemu_driver.c +++ libvirt-git/src/qemu/qemu_driver.c @@ -6789,6 +6789,7 @@ static virDriver qemuDriver = { qemudDomainGetMaxMemory, /* domainGetMaxMemory */ NULL, /* domainSetMaxMemory */ qemudDomainSetMemory, /* domainSetMemory */ + NULL, /* domainSetMemoryFlags */ qemudDomainGetInfo, /* domainGetInfo */ qemudDomainSave, /* domainSave */ qemudDomainRestore, /* domainRestore */ Index: libvirt-git/src/remote/remote_driver.c =================================================================== --- libvirt-git.orig/src/remote/remote_driver.c +++ libvirt-git/src/remote/remote_driver.c @@ -10868,6 +10868,7 @@ static virDriver remote_driver = { remoteDomainGetMaxMemory, /* domainGetMaxMemory */ remoteDomainSetMaxMemory, /* domainSetMaxMemory */ remoteDomainSetMemory, /* domainSetMemory */ + NULL, /* domainSetMemoryFlags */ remoteDomainGetInfo, /* domainGetInfo */ remoteDomainSave, /* domainSave */ remoteDomainRestore, /* domainRestore */ Index: libvirt-git/src/test/test_driver.c =================================================================== --- libvirt-git.orig/src/test/test_driver.c +++ libvirt-git/src/test/test_driver.c @@ -5365,6 +5365,7 @@ static virDriver testDriver = { testGetMaxMemory, /* domainGetMaxMemory */ testSetMaxMemory, /* domainSetMaxMemory */ testSetMemory, /* domainSetMemory */ + NULL, /* domainSetMemoryFlags */ testGetDomainInfo, /* domainGetInfo */ testDomainSave, /* domainSave */ testDomainRestore, /* domainRestore */ Index: libvirt-git/src/uml/uml_driver.c =================================================================== --- libvirt-git.orig/src/uml/uml_driver.c +++ libvirt-git/src/uml/uml_driver.c @@ -2167,6 +2167,7 @@ static virDriver umlDriver = { umlDomainGetMaxMemory, /* domainGetMaxMemory */ umlDomainSetMaxMemory, /* domainSetMaxMemory */ umlDomainSetMemory, /* domainSetMemory */ + NULL, /* domainSetMemoryFlags */ umlDomainGetInfo, /* domainGetInfo */ NULL, /* domainSave */ NULL, /* domainRestore */ Index: libvirt-git/src/vbox/vbox_tmpl.c =================================================================== --- libvirt-git.orig/src/vbox/vbox_tmpl.c +++ libvirt-git/src/vbox/vbox_tmpl.c @@ -8556,6 +8556,7 @@ virDriver NAME(Driver) = { NULL, /* domainGetMaxMemory */ NULL, /* domainSetMaxMemory */ vboxDomainSetMemory, /* domainSetMemory */ + NULL, /* domainSetMemoryFlags */ vboxDomainGetInfo, /* domainGetInfo */ vboxDomainSave, /* domainSave */ NULL, /* domainRestore */ Index: libvirt-git/src/xen/xen_driver.c =================================================================== --- libvirt-git.orig/src/xen/xen_driver.c +++ libvirt-git/src/xen/xen_driver.c @@ -2034,6 +2034,7 @@ static virDriver xenUnifiedDriver = { xenUnifiedDomainGetMaxMemory, /* domainGetMaxMemory */ xenUnifiedDomainSetMaxMemory, /* domainSetMaxMemory */ xenUnifiedDomainSetMemory, /* domainSetMemory */ + NULL, /*domainSetMemoryFlags */ xenUnifiedDomainGetInfo, /* domainGetInfo */ xenUnifiedDomainSave, /* domainSave */ xenUnifiedDomainRestore, /* domainRestore */ Index: libvirt-git/src/xenapi/xenapi_driver.c =================================================================== --- libvirt-git.orig/src/xenapi/xenapi_driver.c +++ libvirt-git/src/xenapi/xenapi_driver.c @@ -1803,6 +1803,7 @@ static virDriver xenapiDriver = { xenapiDomainGetMaxMemory, /* domainGetMaxMemory */ xenapiDomainSetMaxMemory, /* domainSetMaxMemory */ NULL, /* domainSetMemory */ + NULL, /* domainSetMemoryFlags */ xenapiDomainGetInfo, /* domainGetInfo */ NULL, /* domainSave */ NULL, /* domainRestore */ -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list