]> git.baikalelectronics.ru Git - kernel.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)
committerDavid Vrabel <david.vrabel@citrix.com>
Fri, 8 Jul 2016 13:53:13 +0000 (14:53 +0100)
commitb6333f9baad93374deca6c079a37ebe4171f9ef9
treefaa4e38d174e7cfc648595307f61db26cbda1e98
parent4f34cdd5a7b55d628b08524bccf41206c223951a
xen/acpi: allow xen-acpi-processor driver to load on Xen 4.7

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>
Cc: <stable@vger.kernel.org>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
drivers/xen/xen-acpi-processor.c