aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/mutex.c
diff options
context:
space:
mode:
authorNikunj A Dadhania <[email protected]>2025-05-02 05:03:46 +0000
committerSean Christopherson <[email protected]>2025-05-19 18:05:19 +0000
commit72df72e1c6ddfb6e0c2bce174d5879bc095540c8 (patch)
tree4f4623ef338419873b62a05099543cab09622505 /rust/helpers/mutex.c
parentKVM: SVM: Add support for KVM_CAP_X86_BUS_LOCK_EXIT on SVM CPUs (diff)
downloadkernel-72df72e1c6ddfb6e0c2bce174d5879bc095540c8.tar.gz
kernel-72df72e1c6ddfb6e0c2bce174d5879bc095540c8.zip
KVM: selftests: Add test to verify KVM_CAP_X86_BUS_LOCK_EXIT
Add a test case to verify x86's bus lock exit functionality, which is now supported on both Intel and AMD. Trigger bus lock exits by performing a split-lock access, i.e. an atomic access that splits two cache lines. Verify that the correct number of bus lock exits are generated, and that the counter is incremented correctly and at the appropriate time based on the underlying architecture. Generate bus locks in both L1 and L2 (if nested virtualization is enabled), as SVM's functionality in particular requires non-trivial logic to do the right thing when running nested VMs. Signed-off-by: Nikunj A Dadhania <[email protected]> Co-developed-by: Manali Shukla <[email protected]> Signed-off-by: Manali Shukla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Co-developed-by: Sean Christopherson <[email protected]> Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions