Re: [Qemu-devel] [PATCH] balloon: Fix overflow when reporting actual memory size

2010-03-27 Thread Aurelien Jarno
On Thu, Mar 25, 2010 at 08:58:17AM -0500, Adam Litke wrote: Beginning with its introduction, the virtio balloon has had an overflow error that causes 'info balloon' to misreport the actual memory size when the balloon itself becomes larger than 4G. Use a cast when converting dev-actual from

[Qemu-devel] [PATCH] balloon: Fix overflow when reporting actual memory size

2010-03-25 Thread Adam Litke
Beginning with its introduction, the virtio balloon has had an overflow error that causes 'info balloon' to misreport the actual memory size when the balloon itself becomes larger than 4G. Use a cast when converting dev-actual from pages to kB to prevent overflows. Before: (qemu) info balloon