KVM: selftests: Add macro for TSS selector, rename up code/data macros
authorSean Christopherson <seanjc@google.com>
Thu, 14 Mar 2024 23:26:35 +0000 (16:26 -0700)
committerSean Christopherson <seanjc@google.com>
Mon, 29 Apr 2024 19:55:20 +0000 (12:55 -0700)
commitf18ef97fc60217f648a910835c895cf27ba75a03
tree0a59167432a2f89d5d69eb33138c8473277c549c
parenta2834e6e0b98bc89b874aef15c99b23db5f438df
KVM: selftests: Add macro for TSS selector, rename up code/data macros

Add a proper #define for the TSS selector instead of open coding 0x18 and
hoping future developers don't use that selector for something else.

Opportunistically rename the code and data selector macros to shorten the
names, align the naming with the kernel's scheme, and capture that they
are *kernel* segments.

Reviewed-by: Ackerley Tng <ackerleytng@google.com>
Link: https://lore.kernel.org/r/20240314232637.2538648-17-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/lib/x86_64/processor.c