Commit d2944deb authored by Leonid Podolny's avatar Leonid Podolny Committed by Daniel P. Berrange

domain.go: wrong calculation of bitmask in PinVcpuFlags()

parent b3d4f5dd
......@@ -1768,7 +1768,7 @@ func (d *Domain) PinVcpuFlags(vcpu uint, cpuMap []bool, flags DomainModification
ccpumap := make([]C.uchar, maplen)
for i := 0; i < len(cpuMap); i++ {
if cpuMap[i] {
byte := (i + 7) / 8
byte := i / 8
bit := i % 8
ccpumap[byte] |= (1 << uint(bit))
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment