diff options
author | Venkatesh Srinivas <venkateshs@google.com> | 2020-04-16 21:42:54 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-04-17 18:06:33 +0300 |
commit | 2ca1a06a5440ae8aa7bb0709336d759395b7bbb8 (patch) | |
tree | e2523202629412d88c4f430eba74d30e86eb2b3a /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 7289fdb5dcdbc5155b5531529c44105868a762f2 (diff) | |
download | linux-2ca1a06a5440ae8aa7bb0709336d759395b7bbb8.tar.xz |
kvm: Handle reads of SandyBridge RAPL PMU MSRs rather than injecting #GP
Linux 3.14 unconditionally reads the RAPL PMU MSRs on boot, without handling
General Protection Faults on reading those MSRs. Rather than injecting a #GP,
which prevents boot, handle the MSRs by returning 0 for their data. Zero was
checked to be safe by code review of the RAPL PMU driver and in discussion
with the original driver author (eranian@google.com).
Signed-off-by: Venkatesh Srinivas <venkateshs@google.com>
Signed-off-by: Jon Cargille <jcargill@google.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Message-Id: <20200416184254.248374-1-jcargill@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions