mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
destroy: Implement internal API for phyp driver
This commit is contained in:
parent
ab5eb92bbd
commit
e4e69b4bb2
@ -3497,7 +3497,8 @@ phypDomainGetState(virDomainPtr dom,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
phypDomainDestroy(virDomainPtr dom)
|
phypDomainDestroyFlags(virDomainPtr dom,
|
||||||
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
int result = -1;
|
int result = -1;
|
||||||
ConnectionData *connection_data = dom->conn->networkPrivateData;
|
ConnectionData *connection_data = dom->conn->networkPrivateData;
|
||||||
@ -3509,6 +3510,8 @@ phypDomainDestroy(virDomainPtr dom)
|
|||||||
char *ret = NULL;
|
char *ret = NULL;
|
||||||
virBuffer buf = VIR_BUFFER_INITIALIZER;
|
virBuffer buf = VIR_BUFFER_INITIALIZER;
|
||||||
|
|
||||||
|
virCheckFlags(0, -1);
|
||||||
|
|
||||||
virBufferAddLit(&buf, "rmsyscfg");
|
virBufferAddLit(&buf, "rmsyscfg");
|
||||||
if (system_type == HMC)
|
if (system_type == HMC)
|
||||||
virBufferAsprintf(&buf, " -m %s", managed_system);
|
virBufferAsprintf(&buf, " -m %s", managed_system);
|
||||||
@ -3530,6 +3533,12 @@ cleanup:
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int
|
||||||
|
phypDomainDestroy(virDomainPtr dom)
|
||||||
|
{
|
||||||
|
return phypDomainDestroyFlags(dom, 0);
|
||||||
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
phypBuildLpar(virConnectPtr conn, virDomainDefPtr def)
|
phypBuildLpar(virConnectPtr conn, virDomainDefPtr def)
|
||||||
{
|
{
|
||||||
@ -3763,6 +3772,7 @@ static virDriver phypDriver = {
|
|||||||
.domainShutdown = phypDomainShutdown, /* 0.7.0 */
|
.domainShutdown = phypDomainShutdown, /* 0.7.0 */
|
||||||
.domainReboot = phypDomainReboot, /* 0.9.1 */
|
.domainReboot = phypDomainReboot, /* 0.9.1 */
|
||||||
.domainDestroy = phypDomainDestroy, /* 0.7.3 */
|
.domainDestroy = phypDomainDestroy, /* 0.7.3 */
|
||||||
|
.domainDestroyFlags = phypDomainDestroyFlags, /* 0.9.4 */
|
||||||
.domainGetInfo = phypDomainGetInfo, /* 0.7.0 */
|
.domainGetInfo = phypDomainGetInfo, /* 0.7.0 */
|
||||||
.domainGetState = phypDomainGetState, /* 0.9.2 */
|
.domainGetState = phypDomainGetState, /* 0.9.2 */
|
||||||
.domainSetVcpus = phypDomainSetCPU, /* 0.7.3 */
|
.domainSetVcpus = phypDomainSetCPU, /* 0.7.3 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user