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)
committerIan Jackson <iwj@xenproject.org>
Thu, 19 Aug 2021 16:47:20 +0000 (17:47 +0100)
commit61f28060d5b899c502e2b3bf45a39b1dd2a1224c
treea41237f4a7e405d3bf2b79d7e95a8c46f59317b9
parent49299c4813b7847d29df07bf790f5489060f2a9c
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>
backport-requested-by: Jan Beulich <jbeulich@suse.com>
(cherry picked from commit 0be5a00af590c97ea553aadb60f1e0b3af53d8f6)
(cherry picked from commit 6bbdcefd205903b2181b3b4fdc9503709ecdb7c4)
tools/libxl/libxl_x86.c