]> git.karo-electronics.de Git - linux-beck.git/commit
x86/microcode/AMD: Use native_cpuid() in load_ucode_amd_bsp()
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Sun, 18 Dec 2016 16:44:14 +0000 (17:44 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 19 Dec 2016 09:46:20 +0000 (10:46 +0100)
commit2b4c91569a40c4512ea1b413e0c817d179ce9868
treee5fbc71b5b99ef05954438b413d6d1f04e72f710
parenta15a753539eca8ba243d576f02e7ca9c4b7d7042
x86/microcode/AMD: Use native_cpuid() in load_ucode_amd_bsp()

When CONFIG_PARAVIRT is selected, cpuid() becomes a call. Since
for 32-bit kernels load_ucode_amd_bsp() is executed before paging
is enabled the call cannot be completed (as kernel virtual addresses
are not reachable yet).

Use native_cpuid() instead which is an asm wrapper for the CPUID
instruction.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Jürgen Gross <jgross@suse.com>
Link: http://lkml.kernel.org/r/1481906392-3847-1-git-send-email-boris.ostrovsky@oracle.com
Link: http://lkml.kernel.org/r/20161218164414.9649-5-bp@alien8.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/cpu/microcode/amd.c