kvm: Fix dirty log temporary buffer size
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 1 May 2009 18:52:47 +0000 (20:52 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 22 May 2009 15:50:33 +0000 (10:50 -0500)
commitf350944f27d56630b3349822cb3d9c27818abbec
treee4942fb579f1861d9e0a9861060db8c2e79a8fef
parentfec99c4c95aa8326df5d211c8e7a9fe21812584f
kvm: Fix dirty log temporary buffer size

The buffer passed to KVM_GET_DIRTY_LOG requires one bit per page. Fix
the size calculation in kvm_physical_sync_dirty_bitmap accordingly,
avoiding allocation of extremly oversized buffers.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
kvm-all.c