diff options
| author | 2026-09-02 16:09:32 -0700 | |
|---|---|---|
| committer | 2026-09-11 15:41:59 -0700 | |
| commit | 37e3197c50c824720c3af3118942bda3678f832a (patch) | |
| tree | a78246fb7751e1d979856b0a956b7d2ca19b77af /scripts/Makefile.thinlto | |
| parent | KVM: VMX: Explicitly track TDX VMs' root level instead of guessing it from CPUID (diff) | |
KVM: VMX: Drop TDX_SHARED_BIT_PWL_{4,5} and dedup related code
Fold the GPA => GFN conversion and bitshift logic for identifying the S-bit
given the EPT root level into tdx_set_mirror_root_level() to dedup the math
and drop TDX_SHARED_BIT_PWL_{4,5} in the process. In addition to deduping
a small amount of code, using the level to compute the S-bit position more
or less eliminates the risk of the mirror_root_level and gfn_direct_bits
getting out of sync.
Opportunistically switch the sanity check in tdx_load_mmu_pgd() to check
the mirror root level, not the S-Bit location, now that it's all but
impossible for the two things to get out of sync.
For all intents and purposes, no functional change intended.
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Link: https://patch.msgid.link/20260902230932.2760127-4-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
