mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
ch_driver: enable typed param string for numatune
Enable support of VIR_DRV_FEATURE_TYPED_PARAM_STRING to enable numatune Signed-off-by: Vineeth Pillai <viremana@linux.microsoft.com> Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com> Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
d8343fb0ae
commit
06d5055136
@ -924,6 +924,37 @@ static int chStateInitialize(bool privileged,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Which features are supported by this driver? */
|
||||||
|
static int
|
||||||
|
chConnectSupportsFeature(virConnectPtr conn,
|
||||||
|
int feature)
|
||||||
|
{
|
||||||
|
if (virConnectSupportsFeatureEnsureACL(conn) < 0)
|
||||||
|
return -1;
|
||||||
|
|
||||||
|
switch ((virDrvFeature) feature) {
|
||||||
|
case VIR_DRV_FEATURE_TYPED_PARAM_STRING:
|
||||||
|
return 1;
|
||||||
|
case VIR_DRV_FEATURE_MIGRATION_V2:
|
||||||
|
case VIR_DRV_FEATURE_MIGRATION_V3:
|
||||||
|
case VIR_DRV_FEATURE_MIGRATION_P2P:
|
||||||
|
case VIR_DRV_FEATURE_MIGRATE_CHANGE_PROTECTION:
|
||||||
|
case VIR_DRV_FEATURE_FD_PASSING:
|
||||||
|
case VIR_DRV_FEATURE_XML_MIGRATABLE:
|
||||||
|
case VIR_DRV_FEATURE_MIGRATION_OFFLINE:
|
||||||
|
case VIR_DRV_FEATURE_MIGRATION_PARAMS:
|
||||||
|
case VIR_DRV_FEATURE_MIGRATION_DIRECT:
|
||||||
|
case VIR_DRV_FEATURE_MIGRATION_V1:
|
||||||
|
case VIR_DRV_FEATURE_PROGRAM_KEEPALIVE:
|
||||||
|
case VIR_DRV_FEATURE_REMOTE:
|
||||||
|
case VIR_DRV_FEATURE_REMOTE_CLOSE_CALLBACK:
|
||||||
|
case VIR_DRV_FEATURE_REMOTE_EVENT_CALLBACK:
|
||||||
|
case VIR_DRV_FEATURE_NETWORK_UPDATE_HAS_CORRECT_ORDER:
|
||||||
|
default:
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
chDomainGetVcpusFlags(virDomainPtr dom,
|
chDomainGetVcpusFlags(virDomainPtr dom,
|
||||||
unsigned int flags)
|
unsigned int flags)
|
||||||
@ -1261,6 +1292,7 @@ static virHypervisorDriver chHypervisorDriver = {
|
|||||||
.connectListAllDomains = chConnectListAllDomains, /* 7.5.0 */
|
.connectListAllDomains = chConnectListAllDomains, /* 7.5.0 */
|
||||||
.connectListDomains = chConnectListDomains, /* 7.5.0 */
|
.connectListDomains = chConnectListDomains, /* 7.5.0 */
|
||||||
.connectGetCapabilities = chConnectGetCapabilities, /* 7.5.0 */
|
.connectGetCapabilities = chConnectGetCapabilities, /* 7.5.0 */
|
||||||
|
.connectSupportsFeature = chConnectSupportsFeature, /* 8.1.0 */
|
||||||
.domainCreateXML = chDomainCreateXML, /* 7.5.0 */
|
.domainCreateXML = chDomainCreateXML, /* 7.5.0 */
|
||||||
.domainCreate = chDomainCreate, /* 7.5.0 */
|
.domainCreate = chDomainCreate, /* 7.5.0 */
|
||||||
.domainCreateWithFlags = chDomainCreateWithFlags, /* 7.5.0 */
|
.domainCreateWithFlags = chDomainCreateWithFlags, /* 7.5.0 */
|
||||||
|
Loading…
Reference in New Issue
Block a user