diff options
author | Sean Christopherson <sean.j.christopherson@intel.com> | 2020-07-02 19:35:33 -0700 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-07-09 13:29:40 -0400 |
commit | 171a90d70f25c2501162aef5f42eba5fc91c054a (patch) | |
tree | 2e05af6939274d065f77f4adeae8147736686d46 /arch/x86/include/asm/kvm_host.h | |
parent | 531281ad98ba7e681e0f8fa3c6d216032a08a123 (diff) | |
download | linux-stable-171a90d70f25c2501162aef5f42eba5fc91c054a.tar.gz linux-stable-171a90d70f25c2501162aef5f42eba5fc91c054a.tar.bz2 linux-stable-171a90d70f25c2501162aef5f42eba5fc91c054a.zip |
KVM: x86/mmu: Separate the memory caches for shadow pages and gfn arrays
Use separate caches for allocating shadow pages versus gfn arrays. This
sets the stage for specifying __GFP_ZERO when allocating shadow pages
without incurring extra cost for gfn arrays.
No functional change intended.
Reviewed-by: Ben Gardon <bgardon@google.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20200703023545.8771-10-sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 6b4efe1c15ad..01f5c1508851 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -602,7 +602,8 @@ struct kvm_vcpu_arch { struct kvm_mmu *walk_mmu; struct kvm_mmu_memory_cache mmu_pte_list_desc_cache; - struct kvm_mmu_memory_cache mmu_page_cache; + struct kvm_mmu_memory_cache mmu_shadow_page_cache; + struct kvm_mmu_memory_cache mmu_gfn_array_cache; struct kvm_mmu_memory_cache mmu_page_header_cache; /* |