Re: [PATCH 2/2] qemu: Enforce vCPU hotplug granularity constraints

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

 



On Fri, 2017-12-15 at 13:22 +0100, Peter Krempa wrote:
> > +
> > +    if (!def->cpu || def->cpu->sockets == 0)
> > +        return 1;
> 
> I think we assume '1' as threads here if it's not specified.

Okay.

> > +
> > +    if (qemuDomainIsPSeries(def))
> > +        *granularity = def->cpu->threads;
> > +    else
> > +        *granularity = 1;
> 
> Why not just return the granularity rather than this weirdness?

Sure, I can do that.

Does the rest of the patch look reasonable, or do you want to
point out anything else before I respin?

-- 
Andrea Bolognani / Red Hat / Virtualization

--
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]
  Powered by Linux