mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
test_driver: testDomainSetMaxMemory should simply forward the call
Signed-off-by: Ilias Stamatis <stamatis.iliass@gmail.com> Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
c8a46e0a1d
commit
4837328d68
@ -2482,20 +2482,6 @@ testDomainGetMaxMemory(virDomainPtr domain)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int testDomainSetMaxMemory(virDomainPtr domain,
|
|
||||||
unsigned long memory)
|
|
||||||
{
|
|
||||||
virDomainObjPtr privdom;
|
|
||||||
|
|
||||||
if (!(privdom = testDomObjFromDomain(domain)))
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
/* XXX validate not over host memory wrt to other domains */
|
|
||||||
virDomainDefSetMemoryTotal(privdom->def, memory);
|
|
||||||
|
|
||||||
virDomainObjEndAPI(&privdom);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static int testDomainSetMemoryStatsPeriod(virDomainPtr dom,
|
static int testDomainSetMemoryStatsPeriod(virDomainPtr dom,
|
||||||
@ -2597,6 +2583,14 @@ static int testDomainSetMemory(virDomainPtr domain,
|
|||||||
return testDomainSetMemoryFlags(domain, memory, VIR_DOMAIN_AFFECT_LIVE);
|
return testDomainSetMemoryFlags(domain, memory, VIR_DOMAIN_AFFECT_LIVE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static int testDomainSetMaxMemory(virDomainPtr domain,
|
||||||
|
unsigned long memory)
|
||||||
|
{
|
||||||
|
return testDomainSetMemoryFlags(domain, memory, VIR_DOMAIN_MEM_MAXIMUM);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
testDomainGetVcpusFlags(virDomainPtr domain, unsigned int flags)
|
testDomainGetVcpusFlags(virDomainPtr domain, unsigned int flags)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user