KVM: x86/mmu: Add a field to control memslot rmap allocation
mainline inclusion from mainline-v5.14-rc1 commit a2557408 category: feature bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I7S3VQ CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a255740876f006eb9041fadcc4750557d26add5f ---------------------------------------------------------------------- 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> conflict: arch/x86/include/asm/kvm_host.h Signed-off-by:
Yu Zhang <yu.c.zhang@linux.intel.com>
Loading
Please sign in to comment