]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: selftests: Dedup the gnarly constraints of the fastops tests (more macros!)
authorSean Christopherson <seanjc@google.com>
Tue, 9 Sep 2025 20:28:34 +0000 (13:28 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 11 Sep 2025 15:55:44 +0000 (08:55 -0700)
commitfe08478b1d51f3a984d0aed3e22e1809634dd232
tree3f99c4b4f3fe088fec851964ac86fcc37c156c8e
parent9bf5da1ca4275c0403de763547f21f29795f8366
KVM: selftests: Dedup the gnarly constraints of the fastops tests (more macros!)

Add a fastop() macro along with macros to define its required constraints,
and use the macros to dedup the innermost guts of the fastop testcases.

No functional change intended.

Link: https://lore.kernel.org/r/20250909202835.333554-4-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86/fastops_test.c