use max(tg_mem,tot_mem) to caculate total memory

Signed-off-by: root3 <root3@root3-Server.(none)>
Merge branch 'master' of github.com:xiehuc/xenmm