[CA-41286] Fixes a memory accounting error in the squeezing code.
[CA-41286] Fixes a memory accounting error in the squeezing code.

When calculating an upper bound for the memory usage of an HVM domain with no balloon driver, the squeezing code would double-count (inappropriately) the shadow memory area.
This caused the squeezing algorithm to underestimate the amount of usable memory of any host running one or more HVM domains without balloon drivers.
This change removes the double-counting error, and also fixes a bug that caused the squeezer to add (inappropriately) the shadow memory size to Xen maxmem.

Signed-off-by: Jonathan Knowles <47466d50a94574c6fb872a0e5feec104dcb68f29@eu.citrix.com>
Acked-by: Dave Scott <63c9eb0ea83039690fefa11afe17873ba8278a56@eu.citrix.com>

vasilenkomike/xen-api,srowe/xen-api,thomassa/xen-api,huizh/xen-api,djs55/xen-api,ravippandey/xen-api,thomassa/xen-api,srowe/xen-api,huizh/xen-api,huizh/xen-api,huizh/xen-api,guard163/xen-api,ravippandey/xen-api,jjd27/xen-api,guard163/xen-api,anoobs/xen-api,cheng-z/xen-api,salvocambria/xen-api,cheng-z/xen-api,Frezzle/xen-api,salvocambria/xen-api,cheng-z/xen-api,thomassa/xen-api,jjd27/xen-api,euanh/xen-api,koushikcgit/xen-api,cheng-z/xen-api,simonjbeaumont/xen-api,simonjbeaumont/xen-api,simonjbeaumont/xen-api,salvocambria/xen-api,cheng-z/xen-api,robertbreker/xen-api,jjd27/xen-api,huizh/xen-api,koushikcgit/xen-api,thomassa/xen-api,anoobs/xen-api,simonjbeaumont/xen-api,koushikcgit/xen-api,euanh/xen-api,anoobs/xen-api,rafalmiel/xen-api,salvocambria/xen-api,robertbreker/xen-api,agimofcarmen/xen-api,vasilenkomike/xen-api,simonjbeaumont/xen-api,euanh/xen-api,djs55/xen-api,agimofcarmen/xen-api,huizh/xen-api,cheng--zhang/xen-api,koushikcgit/xen-api,ravippandey/xen-api,ravippandey/xen-api,guard163/xen-api,robertbreker/xen-api,ravippandey/xen-api,cheng-z/xen-api,anoobs/xen-api,robertbreker/xen-api,vasilenkomike/xen-api,cheng--zhang/xen-api,rafalmiel/xen-api,koushikcgit/xen-api,Frezzle/xen-api,rafalmiel/xen-api,guard163/xen-api,jjd27/xen-api,guard163/xen-api,jjd27/xen-api,robertbreker/xen-api,Frezzle/xen-api,anoobs/xen-api,vasilenkomike/xen-api,rafalmiel/xen-api,ravippandey/xen-api,anoobs/xen-api,euanh/xen-api,robertbreker/xen-api,cheng--zhang/xen-api,thomassa/xen-api,thomassa/xen-api,salvocambria/xen-api,djs55/xen-api,djs55/xen-api,koushikcgit/xen-api,agimofcarmen/xen-api,jjd27/xen-api,cheng-z/xen-api,cheng--zhang/xen-api,simonjbeaumont/xen-api,vasilenkomike/xen-api,rafalmiel/xen-api,agimofcarmen/xen-api,salvocambria/xen-api,srowe/xen-api,Frezzle/xen-api,euanh/xen-api,vasilenkomike/xen-api,cheng--zhang/xen-api,rafalmiel/xen-api,srowe/xen-api,agimofcarmen/xen-api,guard163/xen-api,djs55/xen-api,euanh/xen-api,djs55/xen-api,srowe/xen-api,agimofcarmen/xen-api,Frezzle/xen-api,cheng--zhang/xen-api,cheng--zhang/xen-api