]> xenbits.xensource.com Git - xen.git/commit
tools/libxc: Drop config_transformed parameter from xc_cpuid_set() 4.14.0-rc2
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 12 Jun 2020 10:55:19 +0000 (11:55 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Fri, 12 Jun 2020 15:54:25 +0000 (16:54 +0100)
commitb91825f628c9a62cf2a3a0d972ea81484a8b7fce
tree0eadf037d69a524d8c3bbb3c43a5478f01c4c973
parent2995d0afdf2d3fb44d07eada088db3613741db1e
tools/libxc: Drop config_transformed parameter from xc_cpuid_set()

libxl is now the sole caller of xc_cpuid_set().  The config_transformed output
is ignored, and this patch trivially highlights the resulting memory leak.

"transformed" config is now properly forwarded on migrate as part of the
general VM state, so delete the transformation logic completely, rather than
trying to adjust just libxl to avoid leaking memory.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Release-acked-by: Paul Durrant <paul@xen.org>
Reviewed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxc/include/xenctrl.h
tools/libxc/xc_cpuid_x86.c
tools/libxl/libxl_cpuid.c