[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v4] libxl_set_memory_target: retain the same maxmem offset on top of the current target
On Thu, Feb 26, 2015 at 06:53:29PM +0000, Stefano Stabellini wrote: [...] > > > } > > > > > > - libxl_dominfo_init(&ptr); > > > - xcinfo2xlinfo(ctx, &info, &ptr); > > > > If I'm not mistaken, &info is only used here. I think you can delete > > info and relevant code all together. > > info is used later as an argument to xc_domain_getinfolist > > What I meant was, the sole purpose of info and two function calls xc_domain_getinfolist + xcinfo2xlinfo is to fill in ptr, which is done by a single call to libxl_domain_info at the beginning of your patch, so it's possible to remove info and those two function calls all together. Wei. > > > > > - uuid = libxl__uuid2string(gc, ptr.uuid); > > > libxl__xs_write(gc, t, libxl__sprintf(gc, "/vm/%s/memory", uuid), > > > "%"PRIu32, new_target_memkb / 1024); > > > - libxl_dominfo_dispose(&ptr); > > > > > > out: > > > if (!xs_transaction_end(ctx->xsh, t, abort_transaction) > > > -- > > > 1.7.10.4 > > _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |