Skip to content

Commit

Permalink
KVM: MMU: remove unused parameter
Browse files Browse the repository at this point in the history
vcpu in page_fault_can_be_fast() is not used so remove it

Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
  • Loading branch information
Xiao Guangrong authored and Gleb Natapov committed Aug 29, 2013
1 parent 2e762ff commit e5552fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/kvm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2781,7 +2781,7 @@ static bool handle_abnormal_pfn(struct kvm_vcpu *vcpu, gva_t gva, gfn_t gfn,
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
Expand Down Expand Up @@ -2834,7 +2834,7 @@ static bool fast_page_fault(struct kvm_vcpu *vcpu, gva_t gva, int level,
bool ret = false;
u64 spte = 0ull;

if (!page_fault_can_be_fast(vcpu, error_code))
if (!page_fault_can_be_fast(error_code))
return false;

walk_shadow_page_lockless_begin(vcpu);
Expand Down

0 comments on commit e5552fd

Please sign in to comment.