diff options
author | Boris Ostrovsky <[email protected]> | 2013-03-14 17:10:41 -0400 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2013-03-22 11:25:01 +0100 |
commit | bafcdd3b6cb86035cdb0511450961edcdc084c27 (patch) | |
tree | bd7882fdcc935705c41a54c66d13bebdade06e03 /lib/mpi/mpi-bit.c | |
parent | c76e81643c83a84d53a466de49baf38d5779c5ad (diff) |
x86, MCE, AMD: Use MCG_CAP MSR to find out number of banks on AMD
Currently number of error reporting register banks is hardcoded to
6 on AMD processors. This may break in virtualized scenarios when
a hypervisor prefers to report fewer banks than what the physical
HW provides.
Since number of supported banks is reported in MSR_IA32_MCG_CAP[7:0]
that's what we should use.
Signed-off-by: Boris Ostrovsky <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
[ reverse NULL ptr test logic ]
Signed-off-by: Borislav Petkov <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions