Skip to content

Commit

Permalink
libxl: add PVH support to memory functions
Browse files Browse the repository at this point in the history
Signed-off-by: Roger Pau Monné <[email protected]>
Acked-by: Ian Jackson <[email protected]>
  • Loading branch information
royger committed Sep 28, 2017
1 parent 7eb9d5d commit 0adc950
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/libxl/libxl_mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ int libxl_domain_need_memory(libxl_ctx *ctx,

*need_memkb = b_info->target_memkb;
switch (b_info->type) {
case LIBXL_DOMAIN_TYPE_PVH:
case LIBXL_DOMAIN_TYPE_HVM:
*need_memkb += b_info->shadow_memkb + LIBXL_HVM_EXTRA_MEMORY;
if (libxl_defbool_val(b_info->device_model_stubdomain))
Expand Down

0 comments on commit 0adc950

Please sign in to comment.