]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: selftests: Add all (known) EFLAGS bit definitions
authorSean Christopherson <seanjc@google.com>
Fri, 15 May 2026 22:26:36 +0000 (15:26 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 21 May 2026 21:40:24 +0000 (14:40 -0700)
commit35c08038cbdc14d9d638c32d5663e043d607a314
tree0529c7a71a26d9c9b63d8bdf68c7bb9fb15a101f
parenta1e7aeb1be11386883f1c1928acde32dceaa9898
KVM: selftests: Add all (known) EFLAGS bit definitions

Add #defines for all known EFLAGS bit, e.g. so that tests can use things
like EFLAGS.TF to validate single-stepping behavior.  Opportunistically
use X86_EFLAGS_FIXED instead of an open-coded equivalent when stuffing
initial vCPU state.

No functional change intended.

Link: https://patch.msgid.link/20260515222638.1949982-9-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/include/x86/processor.h
tools/testing/selftests/kvm/lib/x86/processor.c
tools/testing/selftests/kvm/lib/x86/vmx.c