]> www.infradead.org Git - users/jedix/linux-maple.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)
committerDhaval Giani <dhaval.giani@oracle.com>
Fri, 20 Jan 2017 22:22:05 +0000 (17:22 -0500)
commit501bd26673b4661f78ad3a934aae18dcdec56a01
treedc6ddec221cd6091a78614528d817ca9b1c9ad0e
parent07502b4983294445e1ee347f94d25b46f007c2d2
xen/acpi: allow xen-acpi-processor driver to load on Xen 4.7

Orabug: 25308099

[ Upstream commit 6f2d9d99213514360034c6d52d2c3919290b3504 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
(cherry picked from commit db86fac6fe0f05f02be9fbc5fcfa236f3209076c)
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/xen/xen-acpi-processor.c