summaryrefslogtreecommitdiff
path: root/arch/x86/kvm
diff options
context:
space:
mode:
authorBen Gardon <bgardon@google.com>2021-01-07 03:19:35 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2021-01-08 02:11:32 +0300
commitc0dba6e46825716db15c4b3a8f05c85b4a59edda (patch)
tree2761a464180eeabd99d3dc53a344337f7daf2d0d /arch/x86/kvm
parenta889ea54b3daa63ee1463dc19ed699407d61458b (diff)
downloadlinux-c0dba6e46825716db15c4b3a8f05c85b4a59edda.tar.xz
KVM: x86/mmu: Clarify TDP MMU page list invariants
The tdp_mmu_roots and tdp_mmu_pages in struct kvm_arch should only contain pages with tdp_mmu_page set to true. tdp_mmu_pages should not contain any pages with a non-zero root_count and tdp_mmu_roots should only contain pages with a positive root_count, unless a thread holds the MMU lock and is in the process of modifying the list. Various functions expect these invariants to be maintained, but they are not explictily documented. Add to the comments on both fields to document the above invariants. Signed-off-by: Ben Gardon <bgardon@google.com> Message-Id: <20210107001935.3732070-2-bgardon@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm')
0 files changed, 0 insertions, 0 deletions