]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: selftests: Kill eptPageTablePointer
authorYosry Ahmed <yosry.ahmed@linux.dev>
Tue, 30 Dec 2025 23:01:33 +0000 (15:01 -0800)
committerSean Christopherson <seanjc@google.com>
Thu, 8 Jan 2026 20:02:06 +0000 (12:02 -0800)
commitb320c03d685704df51cf0774edd799e96c505c74
tree44e1cc2f242b7fa41e3af48094150433501c68d2
parent60de423781ad9967bfdd3a2f02ba0a31787b0d2c
KVM: selftests: Kill eptPageTablePointer

Replace the struct overlay with explicit bitmasks, which is clearer and
less error-prone. See commit f18b4aebe107 ("kvm: selftests: do not use
bitfields larger than 32-bits for PTEs") for an example of why bitfields
are not preferable.

Remove the unused PAGE_SHIFT_4K definition while at it.

No functional change intended.

Signed-off-by: Yosry Ahmed <yosry.ahmed@linux.dev>
Link: https://patch.msgid.link/20251230230150.4150236-5-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/lib/x86/vmx.c