x86/shim: fix ballooning down the guest
authorSergey Dyasli <sergey.dyasli@citrix.com>
Thu, 26 Sep 2019 16:06:07 +0000 (18:06 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 26 Sep 2019 16:06:07 +0000 (18:06 +0200)
commitddc5a85fbcfbacc34bbd9abcdb12923de2fc27b3
treea1f1a22570d6ad5a171db26e79e83702d95d1f92
parentf28c4c4c10bdacb1e49cc6e9de57eb1f973cbdf6
x86/shim: fix ballooning down the guest

Currently ballooning down a pvshim guest causes the following errors
inside the shim:

    d3v0 failed to reserve 512 extents of order 512 for offlining

And the ballooned-out pages stay inside shim and don't reach L0 Xen.

Fix this by passing the correct arguments to pv_shim_offline_memory()
during a XENMEM_decrease_reservation request.

Fixes: b2245acc60c3 ('xen/pvshim: memory hotplug')
Signed-off-by: Sergey Dyasli <sergey.dyasli@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/common/memory.c