Re: [libvirt] [PATCH 3/4] parallels: prevent domain define only if NUMA is really specified
On Tue, Mar 10, 2015 at 23:12:21 +0300, Maxim Nestratov wrote: > Signed-off-by: Maxim Nestratov > --- > src/parallels/parallels_sdk.c | 10 +- > 1 files changed, 9 insertions(+), 1 deletions(-) > > diff --git a/src/parallels/parallels_sdk.c b/src/parallels/parallels_sdk.c > index 5a3969e..4ec9161 100644 > --- a/src/parallels/parallels_sdk.c > +++ b/src/parallels/parallels_sdk.c > @@ -1816,7 +1816,15 @@ prlsdkCheckUnsupportedParams(PRL_HANDLE sdkdom, > virDomainDefPtr def) > return -1; > } > > -if (def->numa) { ACK, and sorry for breaking this code with my changes. Peter signature.asc Description: Digital signature -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
[libvirt] [PATCH 3/4] parallels: prevent domain define only if NUMA is really specified
Signed-off-by: Maxim Nestratov --- src/parallels/parallels_sdk.c | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/parallels/parallels_sdk.c b/src/parallels/parallels_sdk.c index 5a3969e..4ec9161 100644 --- a/src/parallels/parallels_sdk.c +++ b/src/parallels/parallels_sdk.c @@ -1816,7 +1816,15 @@ prlsdkCheckUnsupportedParams(PRL_HANDLE sdkdom, virDomainDefPtr def) 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", _("numa parameters are not supported " "by parallels driver")); -- 1.7.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list