mirror of https://gitee.com/openkylin/libvirt.git
vbox: Rewrite vboxDomainSetVcpus
This commit is contained in:
parent
da3b862aad
commit
35cb445a51
|
@ -2821,3 +2821,8 @@ int vboxDomainSetVcpusFlags(virDomainPtr dom, unsigned int nvcpus,
|
|||
vboxIIDUnalloc(&iid);
|
||||
return ret;
|
||||
}
|
||||
|
||||
int vboxDomainSetVcpus(virDomainPtr dom, unsigned int nvcpus)
|
||||
{
|
||||
return vboxDomainSetVcpusFlags(dom, nvcpus, VIR_DOMAIN_AFFECT_LIVE);
|
||||
}
|
||||
|
|
|
@ -955,12 +955,6 @@ static virDomainState _vboxConvertState(PRUint32 state)
|
|||
}
|
||||
}
|
||||
|
||||
static int
|
||||
vboxDomainSetVcpus(virDomainPtr dom, unsigned int nvcpus)
|
||||
{
|
||||
return vboxDomainSetVcpusFlags(dom, nvcpus, VIR_DOMAIN_AFFECT_LIVE);
|
||||
}
|
||||
|
||||
static int
|
||||
vboxDomainGetVcpusFlags(virDomainPtr dom, unsigned int flags)
|
||||
{
|
||||
|
|
|
@ -440,7 +440,7 @@ int vboxDomainGetState(virDomainPtr dom, int *state,
|
|||
int *reason, unsigned int flags);
|
||||
int vboxDomainSetVcpusFlags(virDomainPtr dom, unsigned int nvcpus,
|
||||
unsigned int flags);
|
||||
|
||||
int vboxDomainSetVcpus(virDomainPtr dom, unsigned int nvcpus);
|
||||
|
||||
/* Version specified functions for installing uniformed API */
|
||||
void vbox22InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
|
||||
|
|
Loading…
Reference in New Issue