linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86, microcode: Remove unnecessary paravirt_enabled check
@ 2016-02-11 15:13 Boris Ostrovsky
  2016-02-11 18:17 ` Borislav Petkov
  2016-02-19 10:06 ` Andy Shevchenko
  0 siblings, 2 replies; 11+ messages in thread
From: Boris Ostrovsky @ 2016-02-11 15:13 UTC (permalink / raw)
  To: bp, tglx, mingo, hpa
  Cc: x86, linux-kernel, david.vrabel, konrad.wilk, xen-devel,
	Boris Ostrovsky

Commit a18a0f6850d4 ("x86, microcode: Don't initialize microcode code on
paravirt") added a paravirt test in microcode_init(), primarily to avoid
making mc_bp_resume()->load_ucode_ap()->check_loader_disabled_ap() calls
On 32-bit kernels this callchain ends up using __pa_nodebug() macro
which is invalid for Xen PV guests.

A subsequent commit, fbae4ba8c4a3 ("x86, microcode: Reload microcode on
resume"), eliminated this callchain thus making a18a0f6850d4
unnecessary.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
---
 arch/x86/kernel/cpu/microcode/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/cpu/microcode/core.c b/arch/x86/kernel/cpu/microcode/core.c
index cea8552..ac360bf 100644
--- a/arch/x86/kernel/cpu/microcode/core.c
+++ b/arch/x86/kernel/cpu/microcode/core.c
@@ -623,7 +623,7 @@ int __init microcode_init(void)
 	struct cpuinfo_x86 *c = &boot_cpu_data;
 	int error;
 
-	if (paravirt_enabled() || dis_ucode_ldr)
+	if (dis_ucode_ldr)
 		return -EINVAL;
 
 	if (c->x86_vendor == X86_VENDOR_INTEL)
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-02-19 11:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-11 15:13 [PATCH] x86, microcode: Remove unnecessary paravirt_enabled check Boris Ostrovsky
2016-02-11 18:17 ` Borislav Petkov
2016-02-19 10:06 ` Andy Shevchenko
2016-02-19 10:18   ` Borislav Petkov
2016-02-19 10:33     ` Andy Shevchenko
2016-02-19 10:46       ` Borislav Petkov
2016-02-19 10:50         ` Andy Shevchenko
2016-02-19 11:00           ` Andy Shevchenko
2016-02-19 11:10             ` Borislav Petkov
2016-02-19 11:21               ` Andy Shevchenko
2016-02-19 11:36                 ` Borislav Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).