Re: [Xen-devel] [PATCH] x86/microcode: Use native_cpuid() in load_ucode_amd_bsp()

2016-12-16 Thread Borislav Petkov
On Fri, Dec 16, 2016 at 11:39:52AM -0500, Boris Ostrovsky wrote: > 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). >

[Xen-devel] [PATCH] x86/microcode: Use native_cpuid() in load_ucode_amd_bsp()

2016-12-16 Thread Boris Ostrovsky
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 CPUID instruction.