]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Add a field to control memslot rmap allocation
authorBen Gardon <bgardon@google.com>
Tue, 18 May 2021 17:34:12 +0000 (10:34 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Jun 2021 17:09:26 +0000 (13:09 -0400)
commitd54c9b6875c54178d2b064f59222510cd4a05128
tree6053a849eecf9964b4d0a28bcff167448ec0d5ed
parent2448be32c93abb27a3ce8c19b9e2c9934000090f
KVM: x86/mmu: Add a field to control memslot rmap allocation

Add a field to control whether new memslots should have rmaps allocated
for them. As of this change, it's not safe to skip allocating rmaps, so
the field is always set to allocate rmaps. Future changes will make it
safe to operate without rmaps, using the TDP MMU. Then further changes
will allow the rmaps to be allocated lazily when needed for nested
oprtation.

No functional change expected.

Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20210518173414.450044-6-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/x86.c