]> xenbits.xensource.com Git - xen.git/commit
x86/cpuid: Only recalculate the shared feature bits once
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 17 Jan 2017 17:08:04 +0000 (17:08 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 25 Jan 2017 10:24:39 +0000 (10:24 +0000)
commit20e92c97f904aa460e2223c30dcad36c234496b6
treea71a730c8ef1636e8bf7f1edb71c27052e638368
parent9b6dea1859139fc823dedc30c177fcf8d308fdd7
x86/cpuid: Only recalculate the shared feature bits once

With accurate vendor information available, the shared bits can be sorted out
during recalculation, rather than at query time in the legacy cpuid path.

This means that:
 * Duplication can be dropped from the automatically generated cpuid data.
 * The toolstack need not worry about setting them appropriately.
 * They can be dropped from the system maximum featuresets.

While editing gen-cpuid.py, reflow some comments which exceeded the expected
line length.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Doug Goldstein <cardoe@cardoe.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
tools/libxc/xc_cpuid_x86.c
xen/arch/x86/cpuid.c
xen/tools/gen-cpuid.py