From: Wei Liu Date: Tue, 27 Aug 2013 15:17:25 +0000 (+0100) Subject: xen/balloon: don't set P2M entry for auto translated guest X-Git-Tag: v3.12-rc1~144^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04660bb5d0e4104e01a8fc34e5d51de1d84c09bf;p=pandora-kernel.git xen/balloon: don't set P2M entry for auto translated guest In commit cd9151e2: xen/balloon: set a mapping for ballooned out pages we have the ballooned out page's mapping set to a scratch page. That commit also sets the P2M entry of ballooned out page to the scratch page's MFN. This is necessary for PV guest but not for HVM guest. On the other hand, setting the P2M entry would trigger BUG_ON in __set_phys_to_machine. The correct thing to do here is to avoid calling __set_phys_to_machine for auto translated guest. Signed-off-by: Wei Liu Cc: Stefano Stabellini Signed-off-by: Konrad Rzeszutek Wilk Acked-by: Stefano Stabellini --- Reading git-diff-tree failed