tools: implement the new libxl get hw info interface
authorYi Sun <yi.y.sun@linux.intel.com>
Tue, 19 Dec 2017 00:42:17 +0000 (08:42 +0800)
committerWei Liu <wei.liu2@citrix.com>
Thu, 18 Jan 2018 11:32:27 +0000 (11:32 +0000)
commit603c81785de65094efd6b37b75f90db20edfd5da
tree995ea4e4f155eb39936140e812a4a05816d54ec2
parent9d35a9db36365a2d969cdb1af43921b708a8bb3e
tools: implement the new libxl get hw info interface

This patch implements the new libxl get hw info interface,
'libxl_psr_get_hw_info', which is suitable to all psr allocation
features. It also implements corresponding list free function,
'libxl_psr_hw_info_list_free' and makes 'libxl_psr_cat_get_info' call
'libxl_psr_get_hw_info' to avoid redundant code in libxl_psr.c.

Signed-off-by: Yi Sun <yi.y.sun@linux.intel.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_psr.c