Re: [PATCH 1/2] MSR: Add support for safe variants

From: Rudolf Marek
Date: Wed Mar 28 2007 - 17:05:26 EST


Hello Mikael,

Maybe I'm in the minority here, but I for one strongly believe
that any attempt to access an MSR "which might not be there" is
inherently wrong. It implies that your HW detection is incomplete,
which in combination with MSR accesses means that you may end up
accessing MSRs that aren't at all what you think they should be.

Well I have some info from Intel, but the register is simply not always there. So instead of oopsing kernel, handling the exception is much better.

For further details please check:
http://softwarecommunity.intel.com/isn/Community/en-US/forums/thread/30229027.aspx

(last page) I may have more info in the future.

Who supplies these imprecise MSR definitions anyway?

Yes Intel, please check the thread. Sometimes similar to catch 22 ;)

Rudolf
-
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/