Re: [PATCH] perf/x86: check ucode before disabling PEBS on SandyBridge

From: Andi Kleen
Date: Tue Jun 12 2012 - 14:05:00 EST


> Also, you can create a pebs event while updating micro-code. There's a
> race window there if you don't check all cpus.

The best proposal I've seen so far was to track the minimum ucode
revision and check that on every syscall.

This can be a single global, so it should not be very exepsnive.

I can look at implementing that if that solution is agreeable with
everyone.

-Andi
--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/