]> xenbits.xensource.com Git - xen.git/commit
tools/xl: use libxl_domain_info to get domain type for vcpu-pin
authorIgor Druzhinin <igor.druzhinin@citrix.com>
Tue, 9 Apr 2019 12:01:58 +0000 (13:01 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Thu, 16 May 2019 16:13:32 +0000 (17:13 +0100)
commit989a2ec4f3ba9343eaeded847513202470d7be1e
treec041431f7b4c3524b24122179984fde444bd996b
parentb55ff4c879ac202c5d53ad1985f86cc0865edb2f
tools/xl: use libxl_domain_info to get domain type for vcpu-pin

Parsing the config seems to be an overkill for this particular task
and the config might simply be absent. Type returned from libxl_domain_info
should be either LIBXL_DOMAIN_TYPE_HVM or LIBXL_DOMAIN_TYPE_PV but in
that context distinction between PVH and HVM should be irrelevant.

Signed-off-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
(cherry picked from commit 48dab9767d2eb173495707cb1fd8ceaf73604ac1)
(cherry picked from commit c59579d8319b776ae6243da1999737e2b4737710)
tools/xl/xl_vcpu.c