Fix off-by-1 error in RAM migration code
commit7ec81e56edc2b2007ce0ae3982aa5c18af9546ab
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 4 Dec 2012 00:38:38 +0000 (4 11:38 +1100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 12 Dec 2012 21:03:31 +0000 (12 15:03 -0600)
treecf7086a39e1e4632ac34cbf6d6724f90f8c8adc9
parent1c97e303d4ea80a2691334b0febe87a50660f99d
Fix off-by-1 error in RAM migration code

The code for migrating (or savevm-ing) memory pages starts off by creating
a dirty bitmap and filling it with 1s.  Except, actually, because bit
addresses are 0-based it fills every bit except bit 0 with 1s and puts an
extra 1 beyond the end of the bitmap, potentially corrupting unrelated
memory.  Oops.  This patch fixes it.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
arch_init.c