KVM: x86/mmu: Document dependency bewteen TDP A/D type and saved bits
authorSean Christopherson <seanjc@google.com>
Thu, 25 Feb 2021 20:47:39 +0000 (12:47 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Mar 2021 08:43:45 +0000 (04:43 -0400)
commitc4827eabe1a89ca82335a9e90bf8ed19a63ba063
tree6d32c0c8df5d6d7b0bf7249bd21f6816fcbcc09b
parentb0de568018a6cd216ae060c33832e898f870abed
KVM: x86/mmu: Document dependency bewteen TDP A/D type and saved bits

Document that SHADOW_ACC_TRACK_SAVED_BITS_SHIFT is directly dependent on
bits 53:52 being used to track the A/D type.

Remove PT64_SECOND_AVAIL_BITS_SHIFT as it is at best misleading, and at
worst wrong.  For PAE paging, which arguably is a variant of PT64, the
bits are reserved.  For MMIO SPTEs the bits are not available as they're
used for the MMIO generation.  For access tracked SPTEs, they are also
not available as bits 56:54 are used to store the original RX bits.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210225204749.1512652-15-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/spte.h