tools/libxc: Use featuresets rather than guesswork
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 7 Oct 2015 15:51:54 +0000 (16:51 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 8 Apr 2016 20:55:13 +0000 (21:55 +0100)
commit3e0c8272f200457d9a735070b66a0da808ac3924
tree06f9a15e07899c77b74f07b6cac29ae729d5aaa6
parent9e9500fa070726193c35b9f8a55c8e7a8110ca5c
tools/libxc: Use featuresets rather than guesswork

It is conceptually wrong to base a VM's featureset on the features visible to
the toolstack which happens to construct it.

Instead, the featureset used is either an explicit one passed by the
toolstack, or the default which Xen believes it can give to the guest.

Collect all the feature manipulation into a single function which adjusts the
featureset, and perform deep dependency removal.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxc/xc_cpuid_x86.c