]> xenbits.xensource.com Git - xen.git/commitdiff
libxl: Revert 3658f7a0bdd8 "libxl: fix libxl_set_memory_target"
authorIan Jackson <ian.jackson@eu.citrix.com>
Sat, 21 Jan 2017 19:03:23 +0000 (19:03 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Sat, 21 Jan 2017 19:43:59 +0000 (19:43 +0000)
I backported
  3658f7a0bdd8fcda217559927e25263a07398c27
  libxl: fix libxl_set_memory_target
but this was not necessary, because the commit it fixes is not in
Xen 4.6.

So the backport introduces a duplicate cal to xc_domain_getinfolist
and also breaks the build with
    libxl.c:4908:5: error: â€˜r’ undeclared (first use in this function)

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
(cherry picked from commit 09f521a077024d5955d766eef7a040d2af928ec2)

tools/libxl/libxl.c

index 910fa6847ce05e28926b627c6c578acd7ba8cb47..aa39e78c249c41817af150b976d56e7bdf9125b5 100644 (file)
@@ -4937,13 +4937,6 @@ 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);