uint32_t domid)
{
libxl_ctx *ctx = libxl__gc_owner(gc);
- unsigned int shadow_mb = DIV_ROUNDUP(d_config->b_info.shadow_memkb, 1024);
+ unsigned long shadow_mb = DIV_ROUNDUP(d_config->b_info.shadow_memkb, 1024);
int r = xc_shadow_control(ctx->xch, domid,
XEN_DOMCTL_SHADOW_OP_SET_ALLOCATION,
- &shadow_mb, 0);
+ NULL, 0, &shadow_mb, 0, NULL);
if (r) {
LOGED(ERROR, domid,
- "Failed to set %u MiB shadow allocation", shadow_mb);
+ "Failed to set %lu MiB shadow allocation", shadow_mb);
return ERROR_FAIL;
}