Skip to content

Commit a673781

Browse files
Sebastien Boeufbryteise
authored andcommitted
ch: Add support for 'setvcpus'
Add the missing bits to let libvirt know that 'setvcpus' command is supported by the ch driver. This enables vCPU hotplug for the ch driver. Signed-off-by: Sebastien Boeuf <[email protected]>
1 parent fda2466 commit a673781

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/ch/ch_driver.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1899,6 +1899,12 @@ chDomainSetVcpusFlags(virDomainPtr dom,
18991899
return ret;
19001900
}
19011901

1902+
static int
1903+
chDomainSetVcpus(virDomainPtr dom, unsigned int nvcpus)
1904+
{
1905+
return chDomainSetVcpusFlags(dom, nvcpus, VIR_DOMAIN_AFFECT_LIVE);
1906+
}
1907+
19021908
static int chDomainSetAutostart(virDomainPtr dom,
19031909
int autostart)
19041910
{
@@ -2045,7 +2051,7 @@ static virHypervisorDriver chHypervisorDriver = {
20452051
.domainSetVcpusFlags = chDomainSetVcpusFlags, /* 6.7.0 */
20462052
.domainGetAutostart = chDomainGetAutostart, /* 6.7.0 */
20472053
.domainSetAutostart = chDomainSetAutostart, /* 6.7.0 */
2048-
2054+
.domainSetVcpus = chDomainSetVcpus, /* 6.7.0 */
20492055
};
20502056

20512057
static virConnectDriver chConnectDriver = {

0 commit comments

Comments
 (0)