So that the guest is not able to deplete the memory pool of the shim
itself by trying to balloon up.
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
(hypercall_fn_t *)pv_shim_grant_table_op,
(hypercall_fn_t *)pv_shim_grant_table_op);
guest = d;
+
+ /*
+ * Set the max pages to the current number of pages to prevent the
+ * guest from depleting the shim memory pool.
+ */
+ d->max_pages = d->tot_pages;
}
static void write_start_info(struct domain *d)