diff options
author | Marc Zyngier <maz@kernel.org> | 2021-07-26 18:35:50 +0300 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2021-08-02 16:05:58 +0300 |
commit | 205d76ff0684a0b4fe3ff3a283d143a47439d191 (patch) | |
tree | 41ded42f0e2e9fc24c6f4a0a2eafccf037e5eb3c /virt | |
parent | f2cc327303b13a70311e823bd52aa0bca8c7ddbc (diff) | |
download | linux-205d76ff0684a0b4fe3ff3a283d143a47439d191.tar.xz |
KVM: Remove kvm_is_transparent_hugepage() and PageTransCompoundMap()
Now that arm64 has stopped using kvm_is_transparent_hugepage(),
we can remove it, as well as PageTransCompoundMap() which was
only used by the former.
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210726153552.1535838-5-maz@kernel.org
Diffstat (limited to 'virt')
-rw-r--r-- | virt/kvm/kvm_main.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index d20fba0fc290..7b72a2b35a7e 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -189,16 +189,6 @@ bool kvm_is_reserved_pfn(kvm_pfn_t pfn) return true; } -bool kvm_is_transparent_hugepage(kvm_pfn_t pfn) -{ - struct page *page = pfn_to_page(pfn); - - if (!PageTransCompoundMap(page)) - return false; - - return is_transparent_hugepage(compound_head(page)); -} - /* * Switches to specified vcpu, until a matching vcpu_put() */ |