aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJiaqing Zhao <jiaqing.zhao@linux.intel.com>2025-05-09 17:06:33 +0000
committerBorislav Petkov (AMD) <bp@alien8.de>2025-05-12 13:04:40 +0200
commit824c6384e8d9275d4ec7204f3f79a4ac6bc10379 (patch)
tree7bef58fba2f2a048024cf699be5bcc652a863555 /tools/perf/scripts/python
parentLinux 6.15-rc6 (diff)
downloadlinux-824c6384e8d9275d4ec7204f3f79a4ac6bc10379.tar.gz
linux-824c6384e8d9275d4ec7204f3f79a4ac6bc10379.zip
x86/mtrr: Check if fixed-range MTRRs exist in mtrr_save_fixed_ranges()
When suspending, save_processor_state() calls mtrr_save_fixed_ranges() to save fixed-range MTRRs. On platforms without fixed-range MTRRs like the ACRN hypervisor which has removed fixed-range MTRR emulation, accessing these MSRs will trigger an unchecked MSR access error. Make sure fixed-range MTRRs are supported before access to prevent such error. Since mtrr_state.have_fixed is only set when MTRRs are present and enabled, checking the CPU feature flag in mtrr_save_fixed_ranges() is unnecessary. Fixes: 3ebad5905609 ("[PATCH] x86: Save and restore the fixed-range MTRRs of the BSP when suspending") Signed-off-by: Jiaqing Zhao <jiaqing.zhao@linux.intel.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/20250509170633.3411169-2-jiaqing.zhao@linux.intel.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
copy should return error of null rm->data.op_mmp_znotifierSowmini Varadhan1-1/+2 2018-02-23r8169: simplify and improve check for dashHeiner Kallweit1-30/+9 2018-02-23r8169: disable WOL per defaultHeiner Kallweit1-2/+3 2018-02-23gianfar: simplify FCS handling and fix memory leakAndy Spencer1-16/+7 2018-02-23ipv6 sit: work around bogus gcc-8 -Wrestrict warningArnd Bergmann1-1/+1 2018-02-23macvlan: fix use-after-free in macvlan_common_newlink()Alexey Kodanev1-1/+1 2018-02-23arm64: fix unwind_frame() for filtered out fn for function graph tracingPratyush Anand3-2/+7 2018-02-22integrity/security: fix digsig.c build error with header fileRandy Dunlap1-0/+1 2018-02-22MIPS: boot: Define __ASSEMBLY__ for its.S buildKees Cook1-0/+1 2018-02-22bpf, arm64: fix out of bounds access in tail callDaniel Borkmann2-2/+29 2018-02-22bpf, x64: implement retpoline for tail callDaniel Borkmann2-4/+42 2018-02-22fs/signalfd: fix build error for BUS_MCEERR_ARRandy Dunlap1-3/+12 2018-02-22rxrpc: Fix send in rxrpc_send_data_packet()David Howells1-1/+1 2018-02-22dsa: ptp: mark dummy helpers as 'inline'Arnd Bergmann2-6/+6 2018-02-22net: aquantia: Fix error handling in aq_pci_probe()Dan Carpenter1-4/+10 2018-02-22bpf: fix rcu lockdep warning for lpm_trie map_free callbackYonghong Song1-2/+1 2018-02-22bpf: add schedule points in percpu arrays managementEric Dumazet1-1/+4 2018-02-22nfp: advertise firmware for mixed 10G/25G modeDirk van der Merwe1-0/+1