mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-24 12:22:20 +00:00
parallels: prevent domain define only if NUMA is really specified
Signed-off-by: Maxim Nestratov <mnestratov@parallels.com>
This commit is contained in:
parent
2add64a0cf
commit
3f2d67bbfa
@ -1816,7 +1816,15 @@ prlsdkCheckUnsupportedParams(PRL_HANDLE sdkdom, virDomainDefPtr def)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (def->numa) {
|
|
||||||
|
/*
|
||||||
|
* Though we don't support NUMA configuration at the moment
|
||||||
|
* virDomainDefPtr always contain non zero NUMA configuration
|
||||||
|
* So, just make sure this configuration does't differ from auto generated.
|
||||||
|
*/
|
||||||
|
if ((virDomainNumatuneGetMode(def->numa, -1) !=
|
||||||
|
VIR_DOMAIN_NUMATUNE_MEM_STRICT) ||
|
||||||
|
virDomainNumatuneHasPerNodeBinding(def->numa)) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||||
_("numa parameters are not supported "
|
_("numa parameters are not supported "
|
||||||
"by parallels driver"));
|
"by parallels driver"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user