summary refs log tree commit diff
path: root/crypto/md5.c
diff options
context:
space:
mode:
authorBen Gardon <bgardon@google.com>2021-05-18 10:34:13 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2021-06-17 13:09:26 -0400
commite2209710ccc5d28d8b88c822d2f3e03b269a2856 (patch)
treef198fad36374a91f85df2e836f1f30c1b226e1fe /crypto/md5.c
parenta255740876f006eb9041fadcc4750557d26add5f (diff)
downloadlinux-e2209710ccc5d28d8b88c822d2f3e03b269a2856.tar.gz
KVM: x86/mmu: Skip rmap operations if rmaps not allocated
If only the TDP MMU is being used to manage the memory mappings for a VM,
then many rmap operations can be skipped as they are guaranteed to be
no-ops. This saves some time which would be spent on the rmap operation.
It also avoids acquiring the MMU lock in write mode for many operations.

This makes it safe to run the VM without rmaps allocated, when only
using the TDP MMU and sets the stage for waiting to allocate the rmaps
until they're needed.

Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20210518173414.450044-7-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'crypto/md5.c')
0 files changed, 0 insertions, 0 deletions