Re: [PATCH 22/34] conf: disallow empty cpusets for vcpu pinning when parsing XML

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 18, 2016 at 12:06:15 -0500, John Ferlan wrote:
> 
> 
> On 01/14/2016 11:27 AM, Peter Krempa wrote:
> > They are disallowed in the pinning API and as default cpuset.
> > 
> > Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1293241
> > ---
> >  src/conf/domain_conf.c | 6 ++++++
> >  1 file changed, 6 insertions(+)
> > 
> 
> Is this going to be problematic for a running domain? e.g., would it
> disappear now? I agree with the failure, just worried about the

If you use a bitmap string that ends up empty here, it will be parsed
correctly at first and the internal data would be valid. The saved xml
would not use the "0,^0" string when written to disk, but the bitmap
would format as "". When you attempt to parse such string, the parser
code errors out.

If you open the bugzilla, the situation is described pretty well in
there and the API, as said, does already the check.

So in a way a previously accepted config would be rejected in this case
but nobody used that since it would vanish.

> consequences.  Not that anyone should have done this, but seems to be
> one of those post parse, pre-run type checks since it's been allowed in
> the past.

Peter

Attachment: signature.asc
Description: Digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]