提交 4837328d 编写于 作者: I Ilias Stamatis 提交者: Erik Skultety

test_driver: testDomainSetMaxMemory should simply forward the call

Signed-off-by: NIlias Stamatis <stamatis.iliass@gmail.com>
Reviewed-by: NErik Skultety <eskultet@redhat.com>
上级 c8a46e0a
......@@ -2482,20 +2482,6 @@ testDomainGetMaxMemory(virDomainPtr domain)
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,
......@@ -2597,6 +2583,14 @@ static int testDomainSetMemory(virDomainPtr domain,
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
testDomainGetVcpusFlags(virDomainPtr domain, unsigned int flags)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册