]> 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)
committerWei Liu <wei.liu2@citrix.com>
Tue, 9 Apr 2019 14:06:42 +0000 (15:06 +0100)
commit48dab9767d2eb173495707cb1fd8ceaf73604ac1
tree86f23d8062b2ff47fd6dc4d462351813fef4e5b7
parentefa7a7e288723c92f1ff9f706c94acd4ba1c5679
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>
tools/xl/xl_vcpu.c