Bug 26080 - [devel-6.6] Backported patches of Buslocktrap for OpenAnolis
Summary: [devel-6.6] Backported patches of Buslocktrap for OpenAnolis
Status: NEW
Alias: None
Product: ANCK 6.6 Dev
Classification: ANCK
Component: X86 (show other bugs) X86
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Guanjun
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-10 14:54 UTC by NarasimharaoPVS
Modified: 2025-10-11 18:22 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description NarasimharaoPVS 2025-10-10 14:54:24 UTC
Buslock trap patches for openAnolis 6.6 kernel:

KVM: SVM: Treat DEBUGCTL[5:2] as reserved
KVM: x86: Snapshot the host's DEBUGCTL after disabling IRQs
KVM: SVM: Manually context switch DEBUGCTL if LBR virtualization is disabled
KVM: x86: Snapshot the host's DEBUGCTL in common x86
x86/bus_lock: Add support for AMD
x86/split_lock: Move Split and Bus lock code to a dedicated file

Unit test Results:
[amd@anolis ~]$ cpuid -1 -l 0x7 -s 0x0 -r
CPU:
   0x00000007 0x00: eax=0x00000001 ebx=0xf1bf97ab ecx=0x19415fde edx=0x10000110
[amd@anolis ~]$ sudo rdmsr 0x01d9
4
[amd@anolis ~]$ ./buslocktrap
10
[amd@anolis ~]$ dmesg | grep -i buslock
[ 1206.227299] x86/split lock detection: #DB: buslocktrap/1413540 took a bus_lock trap at address: 0x55a207cd2166
[ 1254.699805] x86/split lock detection: #DB: buslocktrap/1413843 took a bus_lock trap at address: 0x55e823240166
[amd@anolis ~]$
Comment 1 小龙 admin 2025-10-11 18:22:45 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/5851