Re: [libvirt] [PATCH go v2] domain.go: construct cpumaps correctly for CPU pinning verbs

2017-02-15 Thread Daniel P. Berrange
On Tue, Feb 14, 2017 at 05:11:07PM -0500, Leonid Podolny wrote: > In PinEmulator() and PinIOThread() there is an identical code that > converts []bool into a bitmask. It calculates the location in the > bitmask and then sets it always to 1, instead of looking at the > actual bool value. > --- >

[libvirt] [PATCH go v2] domain.go: construct cpumaps correctly for CPU pinning verbs

2017-02-14 Thread Leonid Podolny
In PinEmulator() and PinIOThread() there is an identical code that converts []bool into a bitmask. It calculates the location in the bitmask and then sets it always to 1, instead of looking at the actual bool value. --- domain.go | 16 ++-- 1 file changed, 10 insertions(+), 6