libxl/x86: check return value of SHADOW_OP_SET_ALLOCATION domctl
authorJan Beulich <jbeulich@suse.com>
Mon, 19 Jul 2021 10:28:09 +0000 (12:28 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 19 Jul 2021 10:28:09 +0000 (12:28 +0200)
commit0be5a00af590c97ea553aadb60f1e0b3af53d8f6
treeff2da556fc741499042eb7735bdddebae1bff29e
parent3a98c1a4cec1a302beaddf944ded240b61173f87
libxl/x86: check return value of SHADOW_OP_SET_ALLOCATION domctl

The hypervisor may not have enough memory to satisfy the request. While
there, make the unit of the value clear by renaming the local variable.

Requested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
tools/libs/light/libxl_x86.c