Re: [PATCH 02/10] KVM: x86/mmu: Replace hardcoded value 0 for the initial value for SPTE

From: Chao Gao
Date: Mon Apr 15 2024 - 09:11:28 EST


>@@ -194,7 +196,7 @@ extern u64 __read_mostly shadow_nonpresent_or_rsvd_mask;
> *
> * Only used by the TDP MMU.
> */
>-#define REMOVED_SPTE 0x5a0ULL
>+#define REMOVED_SPTE (SHADOW_NONPRESENT_VALUE | 0x5a0ULL)
>

"Use only low bits to avoid 64-bit immediates" in the comment above becomes
stale w/ patch 3 applied.