]> git.baikalelectronics.ru Git - kernel.git/commit
xen/balloon: don't set P2M entry for auto translated guest
authorWei Liu <wei.liu2@citrix.com>
Tue, 27 Aug 2013 15:17:25 +0000 (16:17 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 30 Aug 2013 17:24:13 +0000 (13:24 -0400)
commit9a37473fbdd466ccab42064f65f13fbd90b219c8
tree3d365f3820acaece5919d556667333fb600cc9f2
parent154782037086a6b96656f717a9175db4ab398ea6
xen/balloon: don't set P2M entry for auto translated guest

In commit 4e9e1d62: 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 <wei.liu2@citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
drivers/xen/balloon.c