[Libvir] Here the patch for virtual CPU functions.

Daniel P. Berrange berrange at redhat.com
Mon Aug 7 13:41:51 UTC 2006

On Mon, Aug 07, 2006 at 01:46:19PM +0100, Daniel P. Berrange wrote:
> I've found the problem - in the last parameter to virDomainGetVcpuInfo
> I thought the cpumaplen parameter was spposed to be the size of the
> entire cpumap, when it is only supposed  to be the size of one dimension
> of it. So, inside virDomainGetVcpuInfo it then did a memset on the cpumap
> using cpumaplen * nrVirtCpu, which obviously overflowed if nrVirtCpu was
> greater than one. I'll fix this before committing.

The patch is now committed.

|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

More information about the libvir-list mailing list