diff options
author | Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> | 2013-07-30 21:01:59 +0800 |
---|---|---|
committer | Gleb Natapov <gleb@redhat.com> | 2013-08-29 10:17:42 +0300 |
commit | e5552fd252763c74ce6a6c27c7873939062b5038 (patch) | |
tree | 5c5222f4a1912818177707ba1ac27f59d01d1b49 /arch/x86/kvm | |
parent | 2e762ff79fd0793cfa71d3913e2eb664b7b11031 (diff) |
KVM: MMU: remove unused parameter
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>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r-- | arch/x86/kvm/mmu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 9651c9937588..6e2d2c8f230b 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -2781,7 +2781,7 @@ exit: 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 @@ -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); |