提交 e4e69b4b 编写于 作者: M Michal Privoznik

destroy: Implement internal API for phyp driver

上级 ab5eb92b
......@@ -3497,7 +3497,8 @@ phypDomainGetState(virDomainPtr dom,
}
static int
phypDomainDestroy(virDomainPtr dom)
phypDomainDestroyFlags(virDomainPtr dom,
unsigned int flags)
{
int result = -1;
ConnectionData *connection_data = dom->conn->networkPrivateData;
......@@ -3509,6 +3510,8 @@ phypDomainDestroy(virDomainPtr dom)
char *ret = NULL;
virBuffer buf = VIR_BUFFER_INITIALIZER;
virCheckFlags(0, -1);
virBufferAddLit(&buf, "rmsyscfg");
if (system_type == HMC)
virBufferAsprintf(&buf, " -m %s", managed_system);
......@@ -3530,6 +3533,12 @@ cleanup:
return result;
}
static int
phypDomainDestroy(virDomainPtr dom)
{
return phypDomainDestroyFlags(dom, 0);
}
static int
phypBuildLpar(virConnectPtr conn, virDomainDefPtr def)
{
......@@ -3763,6 +3772,7 @@ static virDriver phypDriver = {
.domainShutdown = phypDomainShutdown, /* 0.7.0 */
.domainReboot = phypDomainReboot, /* 0.9.1 */
.domainDestroy = phypDomainDestroy, /* 0.7.3 */
.domainDestroyFlags = phypDomainDestroyFlags, /* 0.9.4 */
.domainGetInfo = phypDomainGetInfo, /* 0.7.0 */
.domainGetState = phypDomainGetState, /* 0.9.2 */
.domainSetVcpus = phypDomainSetCPU, /* 0.7.3 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册