mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-14 23:24:23 +03:00
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…
x
Reference in New Issue
Block a user