From: Alex Williamson Date: Fri, 21 Dec 2012 15:20:16 +0000 (-0700) Subject: kvm: Fix memory slot generation updates X-Git-Tag: v3.9-rc1~97^2~86 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=116c14c0191f3378e6567af296529ac287e85aa2;p=pandora-kernel.git kvm: Fix memory slot generation updates Previous patch "kvm: Minor memory slot optimization" (b7f69c555ca43) overlooked the generation field of the memory slots. Re-using the original memory slots left us with with two slightly different memory slots with the same generation. To fix this, make update_memslots() take a new parameter to specify the last generation. This also makes generation management more explicit to avoid such problems in the future. Reported-by: Takuya Yoshikawa Signed-off-by: Alex Williamson Signed-off-by: Gleb Natapov --- Reading git-diff-tree failed