Skip to content

Commit

Permalink
KVM: PPC: Remove kvmppc_bad_hva()
Browse files Browse the repository at this point in the history
We have a proper define for invalid HVA numbers. Use those instead of the
ppc specific kvmppc_bad_hva().

Signed-off-by: Alexander Graf <[email protected]>
  • Loading branch information
agraf committed Jul 28, 2014
1 parent 35c4a73 commit 9897e88
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions arch/powerpc/kvm/powerpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,6 @@ int kvmppc_emulate_mmio(struct kvm_run *run, struct kvm_vcpu *vcpu)
}
EXPORT_SYMBOL_GPL(kvmppc_emulate_mmio);

static hva_t kvmppc_bad_hva(void)
{
return PAGE_OFFSET;
}

static hva_t kvmppc_pte_to_hva(struct kvm_vcpu *vcpu, struct kvmppc_pte *pte)
{
hva_t hpage;
Expand All @@ -324,7 +319,7 @@ static hva_t kvmppc_pte_to_hva(struct kvm_vcpu *vcpu, struct kvmppc_pte *pte)

return hpage | (pte->raddr & ~PAGE_MASK);
err:
return kvmppc_bad_hva();
return KVM_HVA_ERR_BAD;
}

int kvmppc_st(struct kvm_vcpu *vcpu, ulong *eaddr, int size, void *ptr,
Expand Down

0 comments on commit 9897e88

Please sign in to comment.