tools/libxc: Remove xsave calculations from libxc
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 4 Jan 2017 15:07:02 +0000 (15:07 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 18 Jan 2017 14:32:30 +0000 (14:32 +0000)
commit103a1770fab99768ede3431e27e442ea2c407f7e
tree6feccfec04094839cbfb8b82cee6807eb2d44a2f
parentdd86adba79476aa9a294f335b5ff2ba9378e4976
tools/libxc: Remove xsave calculations from libxc

libxc performs a lot of calculations for the xstate leaf when generating a
guests cpuid policy.  To correctly construct a policy for an HVM guest, this
logic depends on native cpuid leaking through from real hardware.

In particular, the logic is potentially wrong for an HVM-based toolstack
domain (e.g. PVH dom0), and definitely wrong if cpuid faulting is applied to a
PV domain.

Xen now performs all the necessary calculations, using native values.  The
only piece of information the toolstack need worry about is single xstate
feature leaf.

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