xen/pvshim: set max_pages to the value of tot_pages
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 11 Jan 2018 11:41:20 +0000 (11:41 +0000)
committerWei Liu <wei.liu2@citrix.com>
Tue, 16 Jan 2018 18:34:05 +0000 (18:34 +0000)
commitb667d9f62f17aa94c247a7774a09a624813e2e7e
treef9e5b9e240ded91ed8eb2acf7a01a53e532918c9
parentdaed6261fd1294bce3e103228c2f34732ef29a9e
xen/pvshim: set max_pages to the value of tot_pages

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>
xen/arch/x86/pv/shim.c