]> xenbits.xensource.com Git - xen.git/commit
libxc: allow changing max number of hypervisor cpuid leaves
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Fri, 2 May 2014 10:03:36 +0000 (12:03 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 2 May 2014 10:03:36 +0000 (12:03 +0200)
commitdef0bbd31e8603fe39669d9d7595676e3688ab45
treeaa6d48de99e3fee4c5c295c7dfd0c103b8a2f138
parent9e52ad4f4d0d8051c9dd45a8b662cd1943ee486f
libxc: allow changing max number of hypervisor cpuid leaves

Add support for changing max number of hypervisor leaves from configuration
file.

This number can be specified using xl's standard 'cpuid' option. Only lowest
8 bits of leaf's 0x4000xx00 eax register are processed, all others are ignored.

The changes allow us to revert commit 80ecb40362365ba77e68fc609de8bd3b7208ae19
which is most likely no longer needed now anyway (Solaris bug that it addressed
has been fixed and backported to earlier releases) but leave possibility of
running unpatched version of Solaris by forcing number of leaves to 2 in the
configuration file.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
docs/man/xl.cfg.pod.5
tools/libxc/xc_cpuid_x86.c
tools/libxl/libxl_cpuid.c
xen/arch/x86/traps.c
xen/include/public/arch-x86/cpuid.h