]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xen/acpi: allow xen-acpi-processor driver to load on Xen 4.7
authorJan Beulich <JBeulich@suse.com>
Fri, 8 Jul 2016 12:15:07 +0000 (06:15 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jul 2016 15:42:24 +0000 (08:42 -0700)
commit039e2836ca00b45c5c67797a7f16d1c57288df9e
tree17f10d2d53cad7e95586f2bb56e332ea2a1d059e
parentb571b6a0a563a6f3b518b037d1b73baf1b1e1ad4
xen/acpi: allow xen-acpi-processor driver to load on Xen 4.7

commit 6f2d9d99213514360034c6d52d2c3919290b3504 upstream.

As of Xen 4.7 PV CPUID doesn't expose either of CPUID[1].ECX[7] and
CPUID[0x80000007].EDX[7] anymore, causing the driver to fail to load on
both Intel and AMD systems. Doing any kind of hardware capability
checks in the driver as a prerequisite was wrong anyway: With the
hypervisor being in charge, all such checking should be done by it. If
ACPI data gets uploaded despite some missing capability, the hypervisor
is free to ignore part or all of that data.

Ditch the entire check_prereq() function, and do the only valid check
(xen_initial_domain()) in the caller in its place.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/xen/xen-acpi-processor.c