mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
libxl: fix libxl_set_memory_target
Commit26dbc93a("libxl: Remove pointless hypercall from libxl_set_memory_target") removed the call to xc_domain_getinfolist, but it failed to notice that "info" was actually needed later. Put that back. While at it, make the code conform to coding style requirement. Reported-by: Juergen Gross <jgross@suse.com> Signed-off-by: Wei Liu <wei.liu2@citrix.com> (cherry picked from commited5f19aea6) (cherry picked from commite1cefedd80) (cherry picked from commit013ee593ca)
This commit is contained in:
1 parent
ccb36fb43a
commit
3658f7a0bd
1 file changed
+7
@@ -4905,6 +4905,13 @@ retry_transaction:
|
||||
goto out;
|
||||
}
|
||||
|
||||
r = xc_domain_getinfolist(ctx->xch, domid, 1, &info);
|
||||
if (r != 1 || info.domain != domid) {
|
||||
abort_transaction = 1;
|
||||
rc = ERROR_FAIL;
|
||||
goto out;
|
||||
}
|
||||
|
||||
libxl_dominfo_init(&ptr);
|
||||
xcinfo2xlinfo(ctx, &info, &ptr);
|
||||
uuid = libxl__uuid2string(gc, ptr.uuid);
|
||||
|
||||