diff options
author | Sean Christopherson <sean.j.christopherson@intel.com> | 2020-06-22 13:20:30 -0700 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-07-08 16:21:53 -0400 |
commit | afe8d7e611c4d59c0be8d67883a1a0e68df23425 (patch) | |
tree | 5f729ef0e3bcddb3ad45bc47ca945fe54f78778d /arch/x86/kvm/mmu.h | |
parent | 33e3042dac6bcc33b80835f7d7b502b1d74c457c (diff) | |
download | linux-stable-afe8d7e611c4d59c0be8d67883a1a0e68df23425.tar.gz linux-stable-afe8d7e611c4d59c0be8d67883a1a0e68df23425.tar.bz2 linux-stable-afe8d7e611c4d59c0be8d67883a1a0e68df23425.zip |
KVM: x86/mmu: Move kvm_mmu_available_pages() into mmu.c
Move kvm_mmu_available_pages() from mmu.h to mmu.c, it has a single
caller and has no business being exposed via mmu.h.
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20200622202034.15093-3-sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/mmu.h')
-rw-r--r-- | arch/x86/kvm/mmu.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/x86/kvm/mmu.h b/arch/x86/kvm/mmu.h index 81cafc937cfb..2b1e7cf7dbf6 100644 --- a/arch/x86/kvm/mmu.h +++ b/arch/x86/kvm/mmu.h @@ -64,15 +64,6 @@ bool kvm_can_do_async_pf(struct kvm_vcpu *vcpu); int kvm_handle_page_fault(struct kvm_vcpu *vcpu, u64 error_code, u64 fault_address, char *insn, int insn_len); -static inline unsigned long kvm_mmu_available_pages(struct kvm *kvm) -{ - if (kvm->arch.n_max_mmu_pages > kvm->arch.n_used_mmu_pages) - return kvm->arch.n_max_mmu_pages - - kvm->arch.n_used_mmu_pages; - - return 0; -} - static inline int kvm_mmu_reload(struct kvm_vcpu *vcpu) { if (likely(vcpu->arch.mmu->root_hpa != INVALID_PAGE)) |