lkml.org 
[lkml]   [2019]   [Dec]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[RFC PATCH] vmx: spp: kvm_spp_level_pages() can be static

Fixes: 5ab8f03b84b6 ("vmx: spp: Set up SPP paging table at vmentry/vmexit")
Signed-off-by: kbuild test robot <lkp@intel.com>
---
spp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kvm/mmu/spp.c b/arch/x86/kvm/mmu/spp.c
index 9d9edb295394c..3ec4341409674 100644
--- a/arch/x86/kvm/mmu/spp.c
+++ b/arch/x86/kvm/mmu/spp.c
@@ -199,7 +199,7 @@ bool is_spp_spte(struct kvm_mmu_page *sp)
return sp->role.spp;
}

-int kvm_spp_level_pages(gfn_t gfn_lower, gfn_t gfn_upper, int level)
+static int kvm_spp_level_pages(gfn_t gfn_lower, gfn_t gfn_upper, int level)
{
int page_num = KVM_PAGES_PER_HPAGE(level);
gfn_t gfn_max = (gfn_lower & ~(page_num - 1)) + page_num - 1;
@@ -416,7 +416,7 @@ static void kvm_spp_zap_pte(struct kvm *kvm, u64 *spte, int level)
}
}

-bool kvm_spp_flush_rmap(struct kvm *kvm, u64 gfn_min, u64 gfn_max)
+static bool kvm_spp_flush_rmap(struct kvm *kvm, u64 gfn_min, u64 gfn_max)
{
u64 *sptep;
struct rmap_iterator iter;
\
 
 \ /
  Last update: 2019-12-31 21:34    [W:0.055 / U:2.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site