提交 e5552fd2 编写于 作者: X Xiao Guangrong 提交者: Gleb Natapov

KVM: MMU: remove unused parameter

vcpu in page_fault_can_be_fast() is not used so remove it
Signed-off-by: NXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: NGleb Natapov <gleb@redhat.com>
上级 2e762ff7
...@@ -2781,7 +2781,7 @@ static bool handle_abnormal_pfn(struct kvm_vcpu *vcpu, gva_t gva, gfn_t gfn, ...@@ -2781,7 +2781,7 @@ static bool handle_abnormal_pfn(struct kvm_vcpu *vcpu, gva_t gva, gfn_t gfn,
return ret; return ret;
} }
static bool page_fault_can_be_fast(struct kvm_vcpu *vcpu, u32 error_code) static bool page_fault_can_be_fast(u32 error_code)
{ {
/* /*
* Do not fix the mmio spte with invalid generation number which * Do not fix the mmio spte with invalid generation number which
...@@ -2834,7 +2834,7 @@ static bool fast_page_fault(struct kvm_vcpu *vcpu, gva_t gva, int level, ...@@ -2834,7 +2834,7 @@ static bool fast_page_fault(struct kvm_vcpu *vcpu, gva_t gva, int level,
bool ret = false; bool ret = false;
u64 spte = 0ull; u64 spte = 0ull;
if (!page_fault_can_be_fast(vcpu, error_code)) if (!page_fault_can_be_fast(error_code))
return false; return false;
walk_shadow_page_lockless_begin(vcpu); walk_shadow_page_lockless_begin(vcpu);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册